Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-25-2011, 04:50 PM
stevieAnn stevieAnn is offline
 
Join Date: May 2011
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Quick Style Chooser Not Saving For Guests

Hello -

I originally asked VBulletin.com support team for help on this issue but they referred me here due to the nature of the issue. Actually, due to the nature of the possible fix for my issue. You can read the original thread here:

http://www.vbulletin.com/forum/showt...ing-For-Guests

And here is a quick recap:

1. I have two styles.. Hero and Villain. Hero is the default.
2. When a guest <non logged in user> uses the quick style chooser to swap from Hero to Villain it works fine for the page that they are on.
3. When a guest moves to a different page the style is lost and it defaults back to Hero.

Things I know.
1. The db session table holds the styleid for the original changed page but once that user moves to a different page the styleid in the db session table reverts back to default.
2. When moving to a different page the styleid in the url is lost.
3. The styleid is also lost in the cookie when moving to a new page.

VBulletin.com was very quick in their response. They basically wanted me to rebuild the entire site and then test to see if it worked. That is a loooooot of work for me and I think I would just like to add some sort hook to tack the styleid to the end of every url.

So, can you help? Anyone? Beuller? Beuller? Beuller?

Thanks so much for your time.

Stevie
Reply With Quote
  #2  
Old 05-25-2011, 05:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try creating a default style (no parent) and make it selectable. If you select that as a guest and then change pages, does it still not stick?
Reply With Quote
  #3  
Old 05-25-2011, 05:28 PM
stevieAnn stevieAnn is offline
 
Join Date: May 2011
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, so I made a Test Default style, changed to to default and while testing as a guest I could choose the Test Default style and it would stick... a little too well. When selecting one of the non-default styles the same thing would happen as I was reporting. The page would swap to the correct style but when you move to a different page it does not stick. Also, I made sure all of my cookies and cache were clear before I tested.

Thank you!

--------------- Added [DATE]1306348919[/DATE] at [TIME]1306348919[/TIME] ---------------

Wait. I'm not sure that made too much sense.

All pages would revert to the default style <the new one I just created> when moving to a different page...
Reply With Quote
  #4  
Old 05-25-2011, 05:49 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not selectable right now so I'm unable to try this.
Reply With Quote
  #5  
Old 05-25-2011, 05:53 PM
stevieAnn stevieAnn is offline
 
Join Date: May 2011
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, I didn't change the live site. I'm using my own dev box. You can't test it there. You will just have to take my word for it. Sorry! I can send you screen shots and copies of the relevant http headers if you want?
Reply With Quote
  #6  
Old 05-25-2011, 05:54 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, if it's not a style problem, then try disabling your modifications/plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit includes/config.php and add this line right under <?php

PHP Code:
define('DISABLE_HOOKS'true); 
Reply With Quote
  #7  
Old 05-25-2011, 06:00 PM
stevieAnn stevieAnn is offline
 
Join Date: May 2011
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works properly if I disable the hooks. How can I fix it to keep my regular hooks <I have a few I need> and still make it work like this?

Thank you so much, btw.
Reply With Quote
  #8  
Old 05-25-2011, 06:03 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'll want to enable your modifications again and then disable them one-by-one and test after each one is disabled and see if you can figure out which one is causing the issue.
Reply With Quote
  #9  
Old 05-25-2011, 06:07 PM
stevieAnn stevieAnn is offline
 
Join Date: May 2011
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's great. I'll do that right away and let you know how it goes when I figure it out.
Reply With Quote
  #10  
Old 12-20-2011, 12:25 PM
senadxxx's Avatar
senadxxx senadxxx is offline
 
Join Date: Feb 2009
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello


I do not know what is happening and why we disappeared down "Quick Style Chooser" for quick change skins,can you help me for solve this problem thanks

here is link yo my board http://www.sat-planet.net/index2.php
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05300 seconds
  • Memory Usage 2,257KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete