vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How Can I Change the Style via Navbar and Retain Page Settings? (https://vborg.vbsupport.ru/showthread.php?t=188983)

Dr. Bantham 08-24-2008 01:02 PM

How Can I Change the Style via Navbar and Retain Page Settings?
 
I have integrated a style selection column within Navbar, but my current version resets the page to home:
Code:

<tr><td class="vbmenu_option"><a href="cmps_index.php$session[sessionurl]?styleid=21">Teatro Grottesco</a></td></tr
I discovered that if I include $vbpage in lieu of a file address that the current page location will be pulled. However, it does not retain the variables.
Code:

<tr><td class="vbmenu_option"><a href="$vbpage$session[sessionurl]?styleid=21">Teatro Grottesco</a></td></tr
In other words, it does not return you to the correct content view if you are viewing a forum, thread, post, etc. What are the variables necessary to allow this to function like the style selector box relative to retaining the current content view?

Opserty 08-24-2008 07:22 PM

Try:
Code:

<tr><td class="vbmenu_option"><a href="cmps_index.php?styleid=21&amp;$session[sessionurl_q]">Teatro Grottesco</a></td></tr>

Dr. Bantham 08-24-2008 10:42 PM

Quote:

Originally Posted by Opserty (Post 1606029)
Try:
Code:

<tr><td class="vbmenu_option"><a href="cmps_index.php?styleid=21&amp;$session[sessionurl_q]">Teatro Grottesco</a></td></tr>

Thank you for the tip, but this did not work. The only impact it seemed to have was appending an "&" symbol at the end of the URL string. I tried the $vbpage variant as well, which again seemed to pull the correct file being used, but not the subsequent reference information.

Opserty 08-24-2008 11:21 PM

Oh sorry I misunderstood the question. Try something like:
Code:

<tr><td class="vbmenu_option"><a href="$vbpage$session[sessionurl]&amp;styleid=21&amp;{$_SERVER['QUERY_STRING']}">Teatro Grottesco</a></td></tr>
{$_SERVER['QUERY_STRING']} should give you the extra reference variable things that you want. I'm not sure whether there maybe security implications or not for this.

Dr. Bantham 08-25-2008 12:16 AM

Almost there, if you can manage another look. It pulls most of the info, though it has now dropped the file reference.

For instance, if I am viewing the following page:
showthread.php?p=11831#post11831

It now becomes:
&styleid=21&p=11831

The traditional style changer would result in the following:
showthread.php?p=11831&styleid=21#post11831

I do appreciate the attentiveness. If you cannot spare another look, perhaps someone else may offer another hint.

Dr. Bantham 09-03-2008 11:44 AM

Can anyone provide suggestions for this? It appears that I am close, though nonetheless stuck.


All times are GMT. The time now is 07:55 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.00990 seconds
  • Memory Usage 1,725KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_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