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 Information" In A Table On Top Of The Showthread (https://vborg.vbsupport.ru/showthread.php?t=95663)

organik81 09-04-2005 10:00 PM

"Thread Information" In A Table On Top Of The Showthread
 
With this small modification, you can add some thread informations (title, vews, replies ...) at top pf the thread page.. I put a screenshot below...

- In SHOWTHREAD template find ;
HTML Code:

$navbar
Add below ;
HTML Code:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>

<td class="tcat"><span class="smallfont"><b><center>Thread Informations</center></b></span></td></tr>

<tr valign="middle"><td class="alt1">
<br />
<center><h3>$thread[title]</h3>
<h4>$vbphrase[views] : $thread[views]</h2>
<b>$vbphrase[replies] : $thread[replycount]</b><br /><br />
<b>Users Viewing This Thread : $activeusers</b></center>
</td>
</tr>
</table>
<br />

And make these settings below ;

- vBulletin Options >> Server Settings and Optimization Options >> Update Thread Views Immediately >> Yes

- vBulletin Options >> Thread Display Options (showthread) >> Show Users Browsing Threads >> Yes

guv2000 09-04-2005 11:21 PM

Cool ; different idea.. just installed. Thanx ;)

turksengel 09-05-2005 05:14 AM

yea thx a lot :) clicked install

HaYLaZ 09-05-2005 09:51 AM

thanks organik kardeşim:D

Tony G 09-05-2005 11:36 AM

Thank you for sharing your mod. Could you please also attach your instructions in a .txt file? Thank you.

organik81 09-05-2005 06:22 PM

Quote:

Originally Posted by Tony G
Could you please also attach your instructions in a .txt file? Thank you.

O.K.. I added... :squareeyed:

mikehawk 11-22-2005 12:06 AM

Ohhh.. I wish this was Big Title hack... like vbulletin.org used to have.

Good work though.

cbr929rrerion 11-24-2005 09:35 PM

I have the big title hack I think.. Forget where I found it.. but it shows thread title really big and shows replies and views too

Patria 11-24-2005 10:02 PM

The thread title on the top is enough information for me but thank you for the suggestion. :)

PHP Code:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder" width="100%">
<
tr>
<
td class="tcat"><span class="smallfont"><b><center>$vbphrase[thread]</center></b></span></td></tr>
<
tr valign="middle"><td class="alt1">
<
br />
<
center><h3>$thread[title]</h3>
</
center>
</
td>
</
tr>
</
table>
<
br /> 


KubiNetCafe 12-03-2005 11:32 PM

Thank You For Sharing This

GuaRRand 12-30-2005 07:47 AM

HOw can i change the fontsizes etc??
(sorry, not that big on codig myself :P )

GuaRRand 12-30-2005 08:38 AM

nvm, got it...

The <h2> etc.. :P

firstrebel 12-30-2005 10:23 AM

Nice *clicks install*

Bob

sistem73 02-17-2006 09:04 PM

thanks sağol adamım

Zowners 03-08-2006 08:56 PM

To get just a thread title like I did here: http://www.computercreators.com/showthread.php?t=448

Find:
Code:

$navbar
Add After

Code:

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

silurius 03-16-2006 10:19 PM

Great idea! Can someone help me with the syntax for using an <if> statement to make this only show up for a particular forum?

Freesteyelz 03-16-2006 10:52 PM

Try something like this:

Code:

<if condition="in_array($forumid, array(x, y, z))">
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>

<td class="tcat"><span class="smallfont"><b><center>Thread Informations</center></b></span></td></tr>

<tr valign="middle"><td class="alt1">
<br />
<center><h3>$thread[title]</h3>
<h4>$vbphrase[views] : $thread[views]</h2>
<b>$vbphrase[replies] : $thread[replycount]</b><br /><br />
<b>Users Viewing This Thread : $activeusers</b></center>
</td>
</tr>
</table>
<br />
</if>

I placed an "array" in case you wanted to add more forums. Where "x", "y" and "z" just replace them with the forumids. See if that works.

silurius 03-16-2006 11:40 PM

Works like a charm. Needed that for a few other hacks as well, so thank you very much!

Freesteyelz 03-16-2006 11:54 PM

Glad to have helped. :)


All times are GMT. The time now is 05:56 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.01465 seconds
  • Memory Usage 1,763KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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