vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Show Thread Title On Top of the Page =) (https://vborg.vbsupport.ru/showthread.php?t=39185)

Mone' 05-29-2002 12:49 PM

Show Thread Title On Top of the Page =)
 
1 Attachment(s)
Show Thread Title On Top of the Page =)


I've been looking around the hack forum for a easy way to show the title of the thread at the top of the page like here at vb.org

Only way that i found was with the forum intro hack wich added more function then i needed so i came out with a template modification that work 100%


1 open showthread template

and look for:

Code:

<!-- spacer -->
<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0">
<tr><td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td><td width="100%">
<!-- /spacer -->

after the code you just found, add:

Code:

<center><normalfont><font SIZE=5><b>$thread[title]</B></font></normalfont><center>

Finish !


Mone'

Boofo 05-29-2002 01:41 PM

The code you posted was basically the same code I redid from that hack. The only difference is, with the way I did it, if you wanted to change the Title for the thread, you could do it without changing the actual thread title itself. Use it for announcements or whatever. If you wanted the original thread title to show, all you would have to do is erase the thread intro and the title would reappear. It is alot more flexible the way I did it. :) Plus the code you just did, was already posted in the Thread Intro thread. :)

Mone' 05-29-2002 01:49 PM

all I'm saying is for what I wanted there was no need of hacking any .php files
this is a simple template modification
the code is inserted in a different position so it doesn't broke the tables like the Thread Intro hack did :)

This is just a easy way to achieve the same result as your modification just without hacking :)

Mone

Boofo 05-29-2002 01:55 PM

I understand what you are saying here. And, yes, it is a simple modification if all you want is the same thread title to show just in bigger letters in the center. But if you'll look at the file (the part where I modified the code for my site) it doesn't mess with the table like the full thread intro hack would. It does the same thing as the code you posted does but gives you the flexibility to change it if you ever needed or wanted to. I bypassed the box altogether because I wanted what you did here but the ability to modify it too. :) I am looking for a way to do the same thing with the forum intro, but the table in that is really different and hard to get around. :)

DudeSicko 05-29-2002 03:30 PM

Thx, sure was a easy way to do it :)

Boofo 05-29-2002 10:04 PM

Quote:

This is just a easy way to achieve the same result as your modification just without hacking :)
Mone
Sorry, they are not even close to being the same. Mine can read whatever I want it to and be changed and still leave the thead title in tact. All this does is read the same thread title that you already have. :)

Rapdis 06-01-2002 03:26 PM

I LOVE THA EASY WAYS... lol

Thanks alot...

it works however i pasted it before the
PHP Code:

!-- spacer -->
<
table bgcolor="#0E3652" width="100%" cellpadding="0" cellspacing="0" border="0">
<
tr><td width="10"><img width="10" height="1" src="https://vborg.vbsupport.ru/images/space.gif" alt=""></td><td width="100%">
<!-- /
spacer --> 

and now it looks perfect!

Thanks

Boofo 06-01-2002 03:52 PM

I have to admit, putting it below the second table does make it looked more evenly spaced. Great suggestion! :)

Quote:

Originally posted by Rapdis
I LOVE THA EASY WAYS... lol

Thanks alot...

it works however i pasted it before the
PHP Code:

!-- spacer -->
<
table bgcolor="#0E3652" width="100%" cellpadding="0" cellspacing="0" border="0">
<
tr><td width="10"><img width="10" height="1" src="https://vborg.vbsupport.ru/images/space.gif" alt=""></td><td width="100%">
<!-- /
spacer --> 

and now it looks perfect!

Thanks



All times are GMT. The time now is 10:03 AM.

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.02455 seconds
  • Memory Usage 1,742KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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