Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[HowTo] [3.0.0] Place and optimize the "Mark Forums Read - View Forum Leaders" bar. Details »»
[HowTo] [3.0.0] Place and optimize the "Mark Forums Read - View Forum Leaders" bar.
Version: 1.00, by Floris Floris is offline
Developer Last Online: Mar 2021 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-11-2004 Last Update: Never Installs: 5
 
No support by the author.

[HowTo] [3.0.0] Place and optimize the "Mark Forums Read - View Forum Leaders" bar.

Title: Place and optimize the "Mark Forums Read - View Forum Leaders" bar.
Version: 1.0.0
Category: Template Modification for vBulletin version 3.0.0 (Gold)
Author: Floris (http://www.vBulletin.nl/)
Description: This modification removes the "Mark Forums Read - View Forum Leaders" bar from below the forum (where it behaves as footer) and places it as footer to the "What is going on" box. It will get optimized and will include a small tweak: When you are not logged in it will display the 'register' text and once logged in it will display 'Log out <username>'. Finally it will cleanup the leftover 'Log out' which hovers on the right bottom of the forum icons.

Installation instructions

Goto the Admin Control Panel > Styles & Templates > Style Manager and from the dropdown box select "Edit Templates" to expand the style you want to modify.

Select the "Forum Home Templates" and expand the group.

Select the template "FORUMHOME".

Find the following code:
Code:
<tbody>
<tr>
<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a>
&nbsp; &nbsp;
<a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a>
</strong></div></td>
</tr>
</tbody>


Delete it from the template.

Now also in the "FORUMHOME" template find the following code:
Code:
<if condition="!$show['guest']">
<!-- member logout -->
<td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout" onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
<!-- end member logout -->
</if>


Delete it from the template.

Still in the "FORUMHOME" template find the following code:
Code:
</table>
<br />
<!-- end what's going on box -->


Before that, on a new line, add the following code:
Code:
<tbody>
<tr>
<td class="thead" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a>
&nbsp;|&nbsp;
<a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a>
<if condition="!$show['guest']">&nbsp;|&nbsp;
<a href="login.php?$session[sessionurl]do=logout" onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a>
<else /><if condition="$show['registerbutton']">&nbsp;|&nbsp; <a href="register.php?$session[sessionurl]">$vbphrase[register]</a></if></if>
</strong></div></td>
</tr>
</tbody>


Save the "FORUMHOME" template

You are done!


Don't ask for screenshots because I can't attach them for some strange reason.

Show Your Support

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

Comments
  #12  
Old 12-18-2004, 08:42 AM
Surtain23's Avatar
Surtain23 Surtain23 is offline
 
Join Date: Sep 2004
Location: Western New York
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by turkeyforum
An error occurred while attempting to log you out. Click here to log out.

I received this message 1.st,why ? My forum is VB3.0.1

Thanks
I believe that is caused by having blank spaces at the end of a file... I might be wrong though.
Reply With Quote
  #13  
Old 03-19-2005, 08:27 PM
Pion Pion is offline
 
Join Date: May 2005
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work for 3.0.7??
Reply With Quote
  #14  
Old 01-26-2007, 02:14 AM
stan111 stan111 is offline
 
Join Date: Aug 2005
Location: CA
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how come my log out does not go along with those two?
Reply With Quote
  #15  
Old 07-18-2007, 11:22 PM
Mischievious Mischievious is offline
 
Join Date: Feb 2004
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a revised version of the code that goes below the 'What's Going On Box' that I fixed for the logout error, which works perfectly with 3.6.7!

Code:
<tbody>
<tr>
<td class="thead" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
<a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a>
&nbsp;|&nbsp;
<a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a>
<if condition="!$show['guest']">&nbsp;|&nbsp;
		<!-- member logout -->
		<a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
		<!-- end member logout -->
	</if>
</tr>
</tbody>
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 02:22 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.06508 seconds
  • Memory Usage 2,260KB
  • Queries Executed 21 (?)
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
  • (5)bbcode_code
  • (1)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
  • (1)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete