Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Make quick style chooser update user settings Details »»
Make quick style chooser update user settings
Version: 1.00, by Xoligy Xoligy is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.4 Rating:
Released: 12-11-2006 Last Update: 01-09-2007 Installs: 75
Uses Plugins
 
No support by the author.

The Quick style chooser relies on sessions rather than updating the actual user's settings. This means when you want to see what skin a user is using, it's usually not correct. Since most users tend to change skins using just the Quick Style Chooser, this plug-in updates their settings to match it. It's specifically for use with my skin view plug-in, but also could be handy for other forums. Simply install it using the product manager.

Note: This will not update a user's settings until they re-visit your forums. It is also said to fix issues with psiStats giving inaccurate results.

Update: This now lets users easily reset their options back to the default style.

You're free to do what you like with this code, although credit is appreciated, it's not required.

Brought to you by eXaltic - vBulletin skins.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 12-16-2006, 03:24 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I thought this was just a posbit hack?
Reply With Quote
  #23  
Old 12-16-2006, 03:58 PM
Xoligy Xoligy is offline
 
Join Date: Jun 2006
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're getting confused between this hack and my other hack which shows their skin in the postbit.

Bison is right, it will only appear in their postbit, not their member info. I may add the ability to show it in their member info if I get time.
Reply With Quote
  #24  
Old 12-17-2006, 11:52 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack has is not properly working well with your other hack. I suggest that you pull this hack until you can fix the problem. I have disabled the hack to see if your other hack would work like it did before I installed this one, but now its broken too.

I am not good with writing SQL code, but there's something wrong with this query.

Code:
global $styleid; 

// Are they the same? 
if (isset($styleid) && $user['styleid'] != $styleid){ 
    $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET styleid = " . $styleid . " WHERE userid = ". $user['userid']); 
}
Like I mentioned in another thread, once I change my style while inside a thread, everyone elses style name changes in the same thread to my previous style. If I refresh the thread once more, then they all inherit the style name I just selected. The funny thing about it is that they still can visually see the one that they originally selected, but their chooser points to the one I'm currently using.
Reply With Quote
  #25  
Old 12-18-2006, 01:29 PM
Xoligy Xoligy is offline
 
Join Date: Jun 2006
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I spent 2 hours trying to debug the problem, but couldn't even reproduce it. I've added some extra checks, but I don't think they'll do much good.

If you don't mind, could you answer the following questions:
What is your userid on your forums?
Is it just you that can change other people's themes?
What other plug-ins do you have installed?
Would it be possible for me to register on your forums and experience the problem?

If you want, we can take this to PM or MSN (or another IM network).
Reply With Quote
  #26  
Old 12-18-2006, 05:53 PM
Xoligy Xoligy is offline
 
Join Date: Jun 2006
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated to allow users to reset their skin to the forum default skin from the quick style chooser.

Make sure you remove the previous plug-in.
Reply With Quote
  #27  
Old 12-18-2006, 08:39 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Question(s):
  1. Does removing the plugin reset their skin to the one that's currently set in their options?
  2. Are there any templates or phrases associated with this plugin?
  3. When applying the revised plugin, will the user need to do an overwrite?
Reply With Quote
  #28  
Old 12-19-2006, 08:59 AM
Xoligy Xoligy is offline
 
Join Date: Jun 2006
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. No
2. The previous plug-in had no templates or phrases.
3. The user won't need to do anything.

Also, I uploaded the wrong version. The latest version has been uploaded now.
Reply With Quote
  #29  
Old 12-19-2006, 07:40 PM
da420 da420 is offline
 
Join Date: Nov 2005
Posts: 1,232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, but when i updated to the latest version it will not save the style when i choose the style in the style chooser. I choose it, it goes to the style, but when i click on new posts or any forum it goes right back to what I had it to. Disable the product and all is well again.
Reply With Quote
  #30  
Old 12-19-2006, 09:09 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This guy is very smart and I think he's close to figuring this one out. The problem lies in the query which changes the styleid for the user. He's going to have to join a few tables to get this one to work ... only for the person who changes his style. Right now, its changing everyone's style in the chooser.
Reply With Quote
  #31  
Old 12-20-2006, 10:11 AM
Xoligy Xoligy is offline
 
Join Date: Jun 2006
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The query only changes the user's style, no-one elses. The where clause specifies only the current user's style will be changed, so that's not the problem.

I believe it may be something to do with the user's realistyleid variable not being updated - but I can't see why that changes what everyone elses style is specified as, I shall check it out and see, but I'm very busy at the moment so I can't promise anything. It could also be caching, since if you refresh it seems to rectify Bison's problem.
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 11:02 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.04268 seconds
  • Memory Usage 2,300KB
  • Queries Executed 25 (?)
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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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