The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[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.
Developer Last Online: Mar 2021
[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> <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> | <a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a> <if condition="!$show['guest']"> | <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']"> | <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
|
Comments |
#12
|
||||
|
||||
Quote:
|
#13
|
|||
|
|||
Does this work for 3.0.7??
|
#14
|
|||
|
|||
how come my log out does not go along with those two?
|
#15
|
|||
|
|||
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> | <a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a> <if condition="!$show['guest']"> | <!-- member logout --> <a href="login.php?$session[sessionurl]do=logout&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> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|