vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Thread Title Big, Top, and Center (https://vborg.vbsupport.ru/showthread.php?t=101739)

King Kovifor 11-27-2005 10:00 PM

Thread Title Big, Top, and Center
 
THis was asked for at vb.com. Quick Whip Up.

in SHOWTHREAD Template:

Find:

HTML Code:

<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:

HTML Code:

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

twincamfxd 11-28-2005 01:35 AM

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 11-28-2005 03:02 AM

change
Code:

<center><big><big><big>$thread[title]</big></big></big></center>
to

Code:

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

Moparx 11-28-2005 03:14 AM

this would be better:
HTML Code:

<div align="center"><h1>$thread[title]</h1></div>

Yorixz 11-28-2005 04:59 AM

Indeed using 3 times the same tag doesn't look that nice, I actually doubt it's valid html then.

Thansk though ;)

kadafi_alive 11-28-2005 05:54 AM

Quote:

Originally Posted by Moparx
this would be better:
HTML Code:

<div align="center"><h1>$thread[title]</h1></div>

But using that tag, it becomes bigger and distorts the navigation bar

Moparx 11-28-2005 10:44 AM

Quote:

Originally Posted by kadafi_alive
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 11-28-2005 10:47 AM

Text file, please? ;)

Rickie3 11-28-2005 11:21 AM

*installed* i used the bigger bold thankyou

Sooner95 11-28-2005 11:28 AM

Done, thx

Rich 11-28-2005 11:35 AM

Hello,

I use this:

Code:

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 11-28-2005 01:40 PM

Quote:

Originally Posted by iguanairs
Hello,

I use this:

Code:

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.

https://vborg.vbsupport.ru/showthrea...threadid=99504

Qwest 11-28-2005 02:53 PM

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 11-29-2005 06:46 AM

Cool, thanks!

Snake 11-29-2005 11:40 AM

Cool one!

folkish 11-30-2005 11:41 PM

Installed, thanks.

mikehawk 12-03-2005 04:17 AM

:rolleyes: Been waiting for this...

thanks!

Boofo 12-03-2005 04:30 AM

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 12-10-2005 01:58 PM

Yeah. I totally forgot I did this. Sorry Boofo! I gotta run but I'll get it in soon!

King Kovifor 12-10-2005 04:46 PM

Took out the <big> tags.

Boofo 12-10-2005 05:49 PM

Quote:

Originally Posted by King Kovifor
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 12-11-2005 02:27 AM

Done.

dackdigital 06-14-2007 07:26 AM

ok gracias istalado

hardiksadaria 06-12-2012 09:49 AM

I am not able to find this code in 4.1.12...

JalsaTime 09-10-2013 10:28 AM

How do i make the thread content (whole) to be in align in Center ?


All times are GMT. The time now is 05:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01156 seconds
  • Memory Usage 1,767KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete