View Full Version : [HowTo] [3.0.3] Add 'Forum Info' to the forums!


Floris
7th October 2004, 03:04 PM
[HowTo] [3.0.3] Add 'Forum Info' to the forums!
By: Floris - http://www.vBulletin-Fans.com/ (http://www.vbulletin-fans.com/)

Description: This tutorial shows you how to remove the last 3 threads/posts/moderators columns to create more space (especially handy for cluthered fixed width forums) and put the data on a single row below the forums on forumhome.

Example of how it looks: Check the screenshots, but should look like this:
Forum Info: Threads: x - Posts: y - Viewers: z - Moderators: a,b,c

Note: Moderators and Users viewing parts will only show if there is any data for it, so it won't display if the value is empty.

Installation instructions:

* Open the template FORUMHOME

* Find this code and delete it:


<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>


* Save the FORUMHOME template.

* Open the template: forumhome_forumbit_level2_post

* Find this code and delete it:


<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
</if>


* Now find this code:


<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>


* Below this, on a new line, add this code:


<div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><span class="time">$vbphrase[forum_info]:</span> <if condition="$show['browsers']"><phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase> -</if> $vbphrase[threads]: $forum[threadcount] - $vbphrase[posts]: $forum[replycount] <if condition="$vboptions['showmoderatorcolumn']"><if condition="$forum[moderators] == ''"><else />- $vbphrase[moderators]: $forum[moderators]</if></if></div>


* Save the forumhome_forumbit_level2_post template

* Now goto "search phrases" and find this phrase variable name: forum_info

* Edit the phrase and change the phrase type from user tools to 'GLOBAL' from the MASTER language.

NOTE: You may need to add
$debug = '1';
to your includes/config.php file (somewhere in the middle on a new line)
(remove that line when done)

* Save the phrase

* Finally find this phrase variable name: x_viewing

* Edit the phrase and change the phrase to this: (replace total content with..)

Users viewing: {1}

* Save the phrase x_viewing and you are DONE.

Brian
7th October 2004, 06:34 PM
Nice one! Thanks for sharing it with us. :)

HiDeo
7th October 2004, 11:29 PM
Nice job floris

thanks

Azhria Lilu
12th October 2004, 01:48 PM
Great mod.. butttttt I think I messed up somewhere ROFLMAO....

Before installing this one everything looked pretty normal...but now my thread views and last post columns are mucked up :D

Any pointers??

Floris
12th October 2004, 02:00 PM
Could be a bug? Is that on index.php or forumdisplay.php?
When you list threads?

Azhria Lilu
12th October 2004, 06:05 PM
forumdisplay...the index page is perfect :)

Lord Brar
13th October 2004, 06:56 PM
Whoa. Waiting for somthing like this for ages :D

here's my problem -


* Edit the phrase and change the phrase type from user tools to 'GLOBAL' from the MASTER language.

NOTE: You may need to add
$debug = '1';
to your includes/config.php file (somewhere in the middle on a new line)
(remove that line when done)

* Save the phrase


2. How do I change the phrase type from user tools to 'GLOBAL' from the MASTER language.


:D

Azhria Lilu
14th October 2004, 12:13 PM
You need to do this

NOTE: You may need to add
$debug = '1';
to your includes/config.php file (somewhere in the middle on a new line)
(remove that line when done)

Azhria Lilu
15th October 2004, 12:34 PM
just an update on the problem I had.. looks like it was a skin problem :) didn't think it'd be the template mod somehow! Fixed and sorted now :D

teamrocketman
24th November 2004, 05:36 PM
I keep having the same problem with the below skin

Alkah
12th December 2006, 09:29 PM
Im having trouble with this part.


* Edit the phrase and change the phrase type from user tools to 'GLOBAL' from the MASTER language.

NOTE: You may need to add
$debug = '1';
to your includes/config.php file (somewhere in the middle on a new line)
(remove that line when done)

* Save the phrase

Ive added the $debug but I dont see anything different? I cant change it to GLOBAL

Edit: Nevermind, I got it.