vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Move login/logout on Navbar (https://vborg.vbsupport.ru/showthread.php?t=174944)

Peterpan002 04-02-2008 06:42 PM

Move login/logout on Navbar
 
Currently the default logout/in button is situated on the far right of the navbar (3.7 RC2) I want to move this to the lefthand side. Suggestions?

dismas 04-02-2008 09:40 PM

Edit the navbar template.

Peterpan002 04-03-2008 09:38 AM

I guess I kind of left myself open to that response LOL. OK thats a good start, now which bit of code to I need to move and add what?

dismas 04-03-2008 12:32 PM

Okay, edit your navbar template.

Scroll down to where it says:
Code:

<if condition="$show['member']">
                <td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
</if>

Cut that out, DO NOT delete it as you'll be needing it in a minute.

Scroll back up to where the nav buttons bar starts, you'll know it when you see it because it will say:
Code:

<!-- nav buttons bar -->
Paste the segment of code that you cut earlier in between this:

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
        <tr align="center">

and this:

Code:

<if condition="$show['member']">
        <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>


Peterpan002 04-03-2008 02:43 PM

Yep that worked perfectly thank you dismas :)

--------------- Added [DATE]1207241284[/DATE] at [TIME]1207241284[/TIME] ---------------

One other request how can I make the links within the navbar smaller and push them along i.e. I would like

Quote:

Logout Help <-------------------------SPACE---------> Member List New Posts Search Quick Links
Thanks in advance

dismas 04-04-2008 02:20 AM

Not sure, never tried that. Maybe put some spaces in by using
Code:

&nbsp;
between the "Help" and "Member List" buttons?

SEOvB 04-04-2008 02:31 AM

adding a bunch of spaces like that to the end of the help link will do it.

Breaking the navbar down into two fixed width sections using floats should work to

Code:

<div style="width: 100px; float: left;">Logout Help Links</div>
Code:

<div style="width: 300px; float: right;">Rest of Links</div>
I have the utmost confidence you'll be able to figure out where to put the div code :D

Peterpan002 04-04-2008 08:20 AM

Thank you & done :)


All times are GMT. The time now is 12:13 AM.

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.01465 seconds
  • Memory Usage 1,724KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete