Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-14-2002, 01:38 PM
midad midad is offline
 
Join Date: Apr 2002
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Threa title on the top of the page

Hey there...
I've noticed in this forum when open any threa, you find on the top of the page the name of the thread in a larg font. And this is very cute :classic:

How can I do such thing???

thank you in advance
Reply With Quote
  #2  
Old 04-15-2002, 09:14 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you dont need a hack.. it's a simple template modification.. Modify your relevant template and put your thread title between

<font size="5"><b>Titlevariable</b></font>

tags..
Reply With Quote
  #3  
Old 04-15-2002, 10:55 AM
midad midad is offline
 
Join Date: Apr 2002
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Logician so much...
I did what you told me, unfortunatily, I couldn't get rid of the forums name as well as other extensions. So, How can I get rid of those and just make the thread title there???
I have found that variable in navbar template. So, any help in that???
Reply With Quote
  #4  
Old 04-16-2002, 07:16 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry my bad. I think it requires hacking. Anyway here you go:

1- Edit your showthread.php and find:
-- cut --
$threadid = intval($threadid);
$thread = verifyid("thread",$threadid,1,1);
-- cut --

After that add:
-- cut --
$logtitle=$thread['title'];
-- cut --

2- Edit template "showthread", find:
-- cut --
<!-- breadcrumb, nav links -->
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td>$navbar</td>
$ratingdisplay
</tr>
</table>
-- cut--

After that add:
-- cut--
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td><h2><div align="center">$logtitle</div><h2></td>
</tr></table>
-- cut ---
(Alternative: replace "$navbar" with "$logtitle")

That's it.. Enjoy..
Reply With Quote
  #5  
Old 04-17-2002, 02:15 PM
midad midad is offline
 
Join Date: Apr 2002
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry LogicianI tried this but nothing happened
I did everything you told me but when I go to any thread it shows nothing on the top. Just the table when I make the border = 1
Maybe you forgot to mention something. I'm sure you did it and I DO appreciate your help to me, but would you mind helping me a little more
Reply With Quote
  #6  
Old 04-17-2002, 03:16 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by midad
Sorry LogicianI tried this but nothing happened
I did everything you told me but when I go to any thread it shows nothing on the top. Just the table when I make the border = 1
Maybe you forgot to mention something. I'm sure you did it and I DO appreciate your help to me, but would you mind helping me a little more
I think I figured out why: Because there are 2
$threadid = intval($threadid);
$thread = verifyid("thread",$threadid,1,1);
lines in showthread.php

Add the line BEFORE:
if ($wordwrap!=0) {
line..

This should work.. This hack is tested and sure it's running!
Attached Images
File Type: gif header1.gif (21.7 KB, 0 views)
Reply With Quote
  #7  
Old 04-17-2002, 03:25 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This does not require a single line of hacking logician

midad just use this. place it in your showthread template whereever you want it to show up.

PHP Code:
<font size="5"><b>$thread[title]</b></font
Reply With Quote
  #8  
Old 04-17-2002, 03:29 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by neo
This does not require a single line of hacking logician

midad just use this. place it in your showthread template whereever you want it to show up.

PHP Code:
<font size="5"><b>$thread[title]</b></font
Neo I thought this too.. This is why I wrote it's just a template change in my first reply..

But this is not working..

It gives an error and I think it's because "eval" command does not like "$thread[title]" array, dont know..

Anyway hack is working for sure..
Reply With Quote
  #9  
Old 04-17-2002, 03:31 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is not a hack and it will work perfectly with all versions Like mine, this sites and so on.
Reply With Quote
  #10  
Old 04-17-2002, 06:30 PM
Twig Deez's Avatar
Twig Deez Twig Deez is offline
 
Join Date: Nov 2001
Location: Aotearoa
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've had this working on my forums for a few months now,
just with the template change that neo indicated. so. yeah!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:41 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.05822 seconds
  • Memory Usage 2,282KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete