PDA

View Full Version : Thread Title Big, Top, and Center


King Kovifor
28 Nov 2005, 03:03
THis was asked for at vb.com. Quick Whip Up.

in SHOWTHREAD Template:

Find:

<a name="poststop" id="poststop"></a>

<!-- controls above postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
<else />
<td class="smallfont">&nbsp;</td>
</if>


After that add:

<center><h4>$thread[title]</h4></center>

twincamfxd
28 Nov 2005, 03:35
Very cool! I like it. Quick question, I would like mine to display in blue, how would I do that? (sorry for the noob question, I am really new at all of this)

donBLACK
28 Nov 2005, 05:02
change
<center><big><big><big>$thread[title]</big></big></big></center>

to

<center><big><big><big><font color="blue">$thread[title]</font></big></big></big></center>

Moparx
28 Nov 2005, 05:14
this would be better:
<div align="center"><h1>$thread[title]</h1></div>

Yorixz
28 Nov 2005, 06:59
Indeed using 3 times the same tag doesn't look that nice, I actually doubt it's valid html then.

Thansk though ;)

kadafi_alive
28 Nov 2005, 07:54
this would be better:
<div align="center"><h1>$thread[title]</h1></div>
But using that tag, it becomes bigger and distorts the navigation bar

Moparx
28 Nov 2005, 12:44
But using that tag, it becomes bigger and distorts the navigation bar

this hack isnt for the navbar.
however if you want to use it there all you need to do is a simple change to your css

Boofo
28 Nov 2005, 12:47
Text file, please? ;)

Rickie3
28 Nov 2005, 13:21
*installed* i used the bigger bold thankyou

Sooner95
28 Nov 2005, 13:28
Done, thx

Rich
28 Nov 2005, 13:35
Hello,

I use this:


In the "SHOWTHREAD" template find:

$poll

add ABOVE it:

<h2>$thread[title]</h2>
<div id="h2stats">This thread has $thread[replycount] replies and has been viewed $thread[views] times.</div>

That will out put this:

THREAD TITLE
This thread has "X" replies and has been viewed "X" times.

now add to your additional css definitions:

h2
{
font-size: 14px;
text-align: center;
margin: 0;
padding: 0;
}

#h2stats
{
font-size: 10px;
text-align: center;
}


I got this off of this site somewhere. You can modify the size of the text displayed and even remove the "replies" section if you like. This is MUCH more efficient and customizeable. You can add additional css definitions to add colors and effects if you like.

sabret00the
28 Nov 2005, 15:40
Hello,

I use this:


In the "SHOWTHREAD" template find:

$poll

add ABOVE it:

<h2>$thread[title]</h2>
<div id="h2stats">This thread has $thread[replycount] replies and has been viewed $thread[views] times.</div>

That will out put this:

THREAD TITLE
This thread has "X" replies and has been viewed "X" times.

now add to your additional css definitions:

h2
{
font-size: 14px;
text-align: center;
margin: 0;
padding: 0;
}

#h2stats
{
font-size: 10px;
text-align: center;
}


I got this off of this site somewhere. You can modify the size of the text displayed and even remove the "replies" section if you like. This is MUCH more efficient and customizeable. You can add additional css definitions to add colors and effects if you like.
you forgot to mention alot more SEO friendly.

http://www.vbulletin.org/forum/showthread.php?s=&threadid=99504

Qwest
28 Nov 2005, 16:53
If it's too big for you, you can also use other H tags.

i.e.: <H2> <H3> <H4>

I like this one better so this thread gets the *install*.
Simple and to the point. I dont need all that clutter from the other one. This is supposed to be for SEO purposes not actually something your readers should care about.

twincamfxd
29 Nov 2005, 08:46
Cool, thanks!

Snake
29 Nov 2005, 13:40
Cool one!

folkish
01 Dec 2005, 01:41
Installed, thanks.

mikehawk
03 Dec 2005, 06:17
:rolleyes: Been waiting for this...

thanks!

Boofo
03 Dec 2005, 06:30
Would you please attach a text file with the instructions in it for those that need to re-do the template edit after an upgrade? ;)

King Kovifor
10 Dec 2005, 15:58
Yeah. I totally forgot I did this. Sorry Boofo! I gotta run but I'll get it in soon!

King Kovifor
10 Dec 2005, 18:46
Took out the <big> tags.

Boofo
10 Dec 2005, 19:49
Yeah. I totally forgot I did this. Sorry Boofo! I gotta run but I'll get it in soon!

Ok, but it might not be here if you wait too long.

King Kovifor
11 Dec 2005, 04:27
Done.

dackdigital
14 Jun 2007, 09:26
ok gracias istalado

hardiksadaria
12 Jun 2012, 11:49
I am not able to find this code in 4.1.12...

JalsaTime
10 Sep 2013, 12:28
How do i make the thread content (whole) to be in align in Center ?