Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications

Reply
 
Thread Tools
[HowTo] [3.0.3] Add 'Forum Info' to the forums! Details »»
[HowTo] [3.0.3] Add 'Forum Info' to the forums!
Version: 1.00, by Floris Floris is offline
Developer Last Online: Mar 2021 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-06-2004 Last Update: Never Installs: 3
 
No support by the author.

[HowTo] [3.0.3] Add 'Forum Info' to the forums!
By: Floris - 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: Users viewing: 1 - 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:

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

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

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

HTML 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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-21-2005, 05:06 AM
gldtn gldtn is offline
 
Join Date: Apr 2003
Location: US
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod. Floris

I wish I had read the part to edit the forum_info phrase.. I added a new phrase to get it to work.. :P

Works well in vB3.0.6
Reply With Quote
  #3  
Old 02-21-2005, 05:51 AM
gldtn gldtn is offline
 
Join Date: Apr 2003
Location: US
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've noticed something else.. when I subscribe to a catergory and look at my subscriptions under my profile that the Thread/Reply column is still there. So Floris, would you know wich template I'll have to edit it to remove the columns?

Note: all though the columns are there, the thread/reply count does not show under the columns.
Reply With Quote
  #4  
Old 03-27-2005, 12:13 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about doing this hack to sub forums as well.
Reply With Quote
  #5  
Old 03-28-2005, 01:33 AM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Realist
What about doing this hack to sub forums as well.
the attachment shows subforums will this work with 3.0.7 ? i was searching for the 1st phrase in FORUMHOME and didn't find it?
looks like a usefully mod tho
Reply With Quote
  #6  
Old 04-22-2005, 08:47 PM
JagFan JagFan is offline
 
Join Date: Jul 2002
Location: Arizona
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am also wondering if it works with 3.0.7?
Reply With Quote
  #7  
Old 05-26-2005, 10:48 PM
Sooner95 Sooner95 is offline
 
Join Date: Apr 2003
Location: I don't know
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this should be an option in the Admin CP.. beauty!
Reply With Quote
  #8  
Old 05-27-2005, 08:53 PM
:Judge:'s Avatar
:Judge: :Judge: is offline
 
Join Date: Jan 2003
Location: USA ~ MD
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have not tested this myself but yes it should work with 3.0.7
Reply With Quote
  #9  
Old 06-11-2005, 09:06 PM
congpine congpine is offline
 
Join Date: May 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gldtn
I've noticed something else.. when I subscribe to a catergory and look at my subscriptions under my profile that the Thread/Reply column is still there. So Floris, would you know wich template I'll have to edit it to remove the columns?

Note: all though the columns are there, the thread/reply count does not show under the columns.
that is my problem . Anyone know how to do it ?
and I do not understand here:
Code:
* 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)
can you explain?
Reply With Quote
  #10  
Old 06-23-2005, 01:24 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I can't seem to locate the first find/remove, I'm running 3.0.7.
Reply With Quote
Reply

Thread Tools

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 08:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04869 seconds
  • Memory Usage 2,296KB
  • Queries Executed 23 (?)
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)bbcode_code
  • (4)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete