vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   [vB3.0.9] Remember a $_REQUEST variable in the URL, not cookies? (https://vborg.vbsupport.ru/showthread.php?t=97272)

liquidx 10-01-2005 07:48 AM

[vB3.0.9] Remember a $_REQUEST variable in the URL, not cookies?
 
Here's my situation..

I integrate my forums with my website, the website forces the user to use a specific style that matches with the website.
The website does not just issue styleid=## because that would cookie the user on the website's style.
I only want the user to be forced to use that style while they are on the website.
If they go to the forums directly, they should be able to use whatever style they want.. And it should not be reset each time they view the main page.

I got half of this working, I use a request variable $_REQUEST['forcestyleid'], and 3 lines of code in global.php:

if ($_REQUEST['forcestyleid']) {
$codestyleid = $_REQUEST['forcestyleid'];
}

Basically adding onto the system in place for forums which force users to use a specific style only while viewing that specific forum.

The problem I have is that if they click a link (the forums are displayed in an iframe on the website) it loads using their user-selected style..

Is there any way I can make forcestyleid= be passed through all the URLs in vbulletin, kinda like how s= is used to store the session id for as long as they visit the site with that request variable?

I don't know if I explained this properly, if you need clarification just ask.

Also, if this would be possible or easier in vBulletin 3.5, please do tell how.. I plan on upgrading as soon as my styles are ported over.


All times are GMT. The time now is 07:48 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.02456 seconds
  • Memory Usage 1,704KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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