![]() |
Make quick style chooser update user settings
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. |
|
It doesn't matter what order you install them in :)
|
I have installed the 2 mod and i little problem :p
In postbit template, i have added this: Code:
Style: $post[stylename] |
As mentioned in the other thread, you should wrap <if condition="$post[stylename]"> </if> round it, so you'd have:
<if condition="$post[stylename]">Style: $post[stylename]</if> |
Works like a charm!!!!!
|
I'm stupid, excuse me, it work now :)
|
I dont understand...I installed them both and added that <if condition="$post[stylename]">Style: $post[stylename]</if> in the postbit template. What did I do wrong?
|
Quote:
|
If your site uses the 2 column view like vbulletin.org does, then you need to edit postbit_legacy.
|
Thanks for this (install it later), never understood that this isn't vbulletin default because how should the default user know it's only a temporary change if he use the quick style chooser?
|
Ramsesx, yes I agree. I guess it saves writing to the database when people are just checking out the other skins. I guess there should really be a notice saying it's only a temporary change and with a link/button to save the changes. But for most forums, this plug-in will be effective enough, as it only updates the database when needed.
|
For some unkown reason, but when I change my style, everyone else's style name inside a thead changes to my previous style.
|
Thanks, I'll check it out. Does it change their actual style, or it just shows up in the postbit as their style being different?
|
Just the style name, I had one user report that in the chooser, the name changed, but his style remained visable.
|
Strange, I'll try and reproduce & fix it.
|
What hook location should be used when installing this plug-in???
|
ok wait do I need that other one you made to? or can I just use this one?
|
Quote:
"ok wait do I need that other one you made to? or can I just use this one?" This plug-in is to be used in conjunction with the "show user style in postbit" plug-in. I released it separate as it also provides a fix for other plug-ins. |
i go to add to member info temp using
Code:
<if condition="$post[stylename]"><strong>Forum Style Used:</strong> $post[stylename]</if> |
I thought this was just a posbit hack?
|
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. |
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; |
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). |
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. |
Question(s):
|
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. |
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.
|
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.
|
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. |
Happy New Year y'all!
Any progress on fixing this hack, Xoligy? |
I'm now about to take a look at it. I know there are problems with it as I have been experiencing them myself.
Update: Ok I've fixed all the problems and it works like normal. Now I just need to fix the bugs with the other one. |
INSTALLED!
|
works like a charm
thanks again for not giving up :D |
im still not sure what this does exactly lol but atleast the 'show skin in postbit' works properly now! thanks for this!
|
hi, i've a trouble with this fix, it fix correctly in the postbit the style that an user uses, BUT when an user reconnect on the board his style is changed automatically ...
|
Great, great, great add-on. I always lamented the fact that I could never get accurate stats on what skins were in use, since so many users tend to override their User Settings via the QuickChooser. Thanks to this, the stats will be more accurate.
/clicks install Oh... will it work with this hack? Show Users using Style in Stylechooser |
Now that the user settings are somewhat more accurate, is there a way to discover specifically which users are using what skin? Like a search in the AdminCP or something? In other words, if psiStats reports there are two users who have chosen "style Z" is there a way to find out who those two users are?
I'm searching but not finding anything. |
Quote:
I totally agree. Would be nice if I could quickly find out how many members are using each style. |
Quote:
Quote:
|
All times are GMT. The time now is 06:02 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|