vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Logout function (https://vborg.vbsupport.ru/showthread.php?t=170929)

odln018 02-19-2008 01:30 PM

Logout function
 
I'm wanting to put a logout button on my navbar, I see the "\index.php?logout" but that apparently isn't the way to call it from within the template.

How would I do this?

odln018 02-20-2008 02:47 PM

Here's the code I'm trying to use, could I please get some advice?

Code:

<if condition="$show['member']">
<a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><img src="...logout-center.gif" alt="" border="0" /></a>
</if>


Lynne 02-20-2008 03:02 PM

That looks like the logout code.... what happens when a user clicks on it? And what page are you using it on?

odln018 02-20-2008 03:13 PM

Thanks for the response!

I'm trying to incorporate it into the first navbar, and have placed the code in my header template.

I'm not able to view the button at all.

Lynne 02-20-2008 03:27 PM

It looks like you are using an image for your LogOut button? "<img src="...logout-center.gif" alt="" border="0" />" That is not a valid path, so you won't see a thing. You need to correct your image path.

odln018 02-20-2008 03:37 PM

Second one I tried:

Code:

<if condition="$show['member']">
<td align="center><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><img src="{if}/logout-center.gif" alt="" border="0" /></a></td>
</if>



All times are GMT. The time now is 05:35 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.01103 seconds
  • Memory Usage 1,715KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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