vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   how to get logout hash (https://vborg.vbsupport.ru/showthread.php?t=123637)

Kungfu 08-11-2006 05:02 AM

how to get logout hash
 
How can i get the logout hash without including global. I included the init script but whenever i include global it just overloads. its too much for the site and i think somethings conflicting. So is there anyway to get the logout has so i can logout properly.

Or will i just need to create a custom page or something in forums and make a pop up window and people logout from there.

thanks.

RS_Jelle 08-11-2006 12:32 PM

$bbuserinfo[logouthash] for use in the templates ;)

So you get something like this:
HTML Code:

<a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a>
So you can use $vbulletin->userinfo['logouthash'] in PHP files, but the template way is a bit cleaner ofcourse.

Kungfu 08-12-2006 05:48 AM

Quote:

Originally Posted by RS_Jelle
$bbuserinfo[logouthash] for use in the templates ;)

So you get something like this:
HTML Code:

<a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a>
So you can use $vbulletin->userinfo['logouthash'] in PHP files, but the template way is a bit cleaner ofcourse.


cool thanks, i wasnt sure if i needed to included global as well.
$bbuserinfo[logouthash] worked fine as in the script i have it builds an array bbuserinfo and then i use global to include it. works great now thanks.

Zei 06-16-2007 08:36 AM

Are there any things I need to call before I can get the $bbuserinfo? I know the cookie is set and I see them in phpinfo but I'm not sure why I can't echo them in PHP.

Dismounted 06-16-2007 09:36 AM

$vbulletin->userinfo

$bbuserinfo is used in templates.


All times are GMT. The time now is 04:51 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.01091 seconds
  • Memory Usage 1,721KB
  • 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_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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