vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   correct formation of the session data for a plugin (https://vborg.vbsupport.ru/showthread.php?t=213373)

stardotstar 05-11-2009 07:43 AM

correct formation of the session data for a plugin
 
I am hacking together a plugin to get the portal page to display properly as a location - rather than location unknown in the who is online page and I can't form the URL properly since I suspect it has changed since the original hack was written.

I have this
Code:

    $userinfo['where'] = '<a href="/forum/welcome.php?' . $vbulletin->session->vars['sessionurl'].'">Portal</a>';
and it returns a malformed url - I suspect that I need the vbulletin 3.8.2 formation of
Code:

$vbulletin->session->vars['sessionurl']
is that right? and can anyone assist me please?

Thanks in (vb)advance guys!

Dismounted 05-11-2009 09:58 AM

What is the displayed URL?

Lynne 05-11-2009 01:57 PM

I use the same session var on my 3.8.0 site.

stardotstar 05-12-2009 05:20 AM

The URL it returns is:

http://www.archeli.com.au/forum/welcome.php?

do I need to declare the variable for it to be usable or something when making a custom plugin??

Dismounted 05-12-2009 06:38 AM

Code:

$userinfo['where'] = '<a href="/forum/welcome.php' . $vbulletin->session->vars['sessionurl_q'] . '">Portal</a>';

stardotstar 05-13-2009 07:58 AM

Thank you ! That has fixed it!


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.02386 seconds
  • Memory Usage 1,716KB
  • 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
  • (3)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