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


Floris
12th April 2004, 04:53 PM
[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/ (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:

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

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

</table>
<br />
<!-- end what's going on box -->


Before that, on a new line, add the following 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!

vb-hispano
12th April 2004, 05:32 PM
thanks floris ;)

good work :D

vbulletin.nl is best jejeje

Floris
12th April 2004, 10:22 PM
Thank you for your kind feedback.

vb-hispano
12th April 2004, 11:15 PM
yeahhhhhhhhhh 126 points !!!!

thanks friends :D:D:D

Gio Takahashi
12th April 2004, 11:28 PM
good job, floris.

Admiral Spock
16th July 2004, 05:38 PM
Thanks, Floris for this mod. I just installed it. :)

SaN-DeeP
27th July 2004, 04:12 AM
floris is there a way to add these links to top of forums home ?
like invision forums have ?
its soo handy

Thnx
Sandy...

Floris
27th July 2004, 08:57 AM
I think it is quite clear that is possible. It isn't too hard to put it the top instead of at the footer.