vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   [HowTo] [3.0.0] Place and optimize the "Mark Forums Read - View Forum Leaders" bar. (https://vborg.vbsupport.ru/showthread.php?t=88923)

Floris 04-11-2004 10:00 PM

[HowTo] [3.0.0] Place and optimize the "Mark Forums Read - View Forum Leaders" bar.
 
[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.

Eplix.Studio 04-12-2004 03:23 PM

Thanks floris, I was going to request this but forgot thanks. Ill install in a bit.

Floris 04-12-2004 06:18 PM

No problem, thank you and I hope it works for you.

Tony G 04-13-2004 12:52 AM

I much prefer it this way, nice mod and thanks for sharing floris. :)

Floris 04-13-2004 07:25 AM

Nice to hear from you :)

Sharpsh00ter 04-17-2004 06:51 AM

great modification. thx ;)

cu
s.

btekcan 04-17-2004 10:53 AM

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

btekcan 04-18-2004 08:40 PM

Any suggestion ?

NYI Fan 12-05-2004 08:41 PM

Thank you! This is great!

imported_chuanse 12-09-2004 02:21 PM

Nice one, allthough there is a piece of code missing ;)
This one will log you out normally...

Code:

<a href="login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]"  onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a>


All times are GMT. The time now is 08:22 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01180 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete