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 force users to change styles in their cookie? (https://vborg.vbsupport.ru/showthread.php?t=77157)

tgmorris 02-27-2005 08:00 PM

How to force users to change styles in their cookie?
 
If I install new styles and delete some existing styles what's the best way to get users to update their selection so the styleid stored in the cookie changes?

It seems like one could update all the users default selections in the DB and then force a logout using phpinclude_start if the styleid isn't available. When they log back in they'd get their "new" default style. Right? This would appear as a small "hiccup" in the system to them but would seem to accomplish the task. After a while the code could be removed from phpinclude_start.

Marco van Herwaarden 02-28-2005 03:49 AM

Just run a one time query to update the style in the user table.

tgmorris 02-28-2005 04:04 AM

Quote:

Originally Posted by MarcoH64
Just run a one time query to update the style in the user table.

I've done that in the past. The problem is that it doesn't change the styleid stored in the cookie. If they don't log out between visits then when they come back in they use the same value as previously stored in the cookie - which now doesn't exist.

What I'm looking for is a way to force the value in the cookie to change.

Marco van Herwaarden 02-28-2005 06:21 AM

Hmm good question, wouldn't know the answer then.


All times are GMT. The time now is 01:10 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.00995 seconds
  • Memory Usage 1,712KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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