vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Make quick style chooser update user settings (https://vborg.vbsupport.ru/showthread.php?t=133831)

Bison 12-16-2006 03:24 PM

I thought this was just a posbit hack?

Xoligy 12-16-2006 03:58 PM

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.

Bison 12-17-2006 11:52 PM

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.

Xoligy 12-18-2006 01:29 PM

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).

Xoligy 12-18-2006 05:53 PM

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.

Bison 12-18-2006 08:39 PM

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?

Xoligy 12-19-2006 08:59 AM

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.

da420 12-19-2006 07:40 PM

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.

Bison 12-19-2006 09:09 PM

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.

Xoligy 12-20-2006 10:11 AM

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.


All times are GMT. The time now is 05:09 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.01024 seconds
  • Memory Usage 1,733KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete