View Full Version : Easier Changing of Styles
assassingod
03-27-2003, 10:00 PM
Easier changing of styles
Author: assassingod
Description: This is a little hack that saves time when wanting to change a style.
Screenshots:
https://vborg.vbsupport.ru/attachment.php?s=&postid=374705
Download:
https://vborg.vbsupport.ru/attachment.php?s=&postid=374703
Tested on vB version:
2.3.0 https://vborg.vbsupport.ru/
2.2.9 https://vborg.vbsupport.ru/
If you use this hack please click the INSTALL (https://vborg.vbsupport.ru/misc.php?s=&action=install&threadid=50930) button - thank you!
assassingod
03-28-2003, 09:32 PM
ScreenShot:
Intex
03-28-2003, 09:56 PM
Simple and effective. Thanks for sharing that assassingod :).
Tested on vB version:
2.3.0 https://vborg.vbsupport.ru/ hahaha, love the check!
filburt1
03-28-2003, 10:04 PM
Uh yeah, it made me ROFL personally...
Disturbed
03-28-2003, 10:07 PM
lol
uhh ahem, nice hack assassin, will use it :)
Davey
03-28-2003, 10:54 PM
That's a nice little addition.
Both the check and the hack :p.
Dave.
assassingod
03-28-2003, 11:32 PM
Thanks:D I thought that tick feature would please some people;)
Thanks for the feedback - Don't forget to click the install (https://vborg.vbsupport.ru/misc.php?s=&action=install&threadid=50930) button if you use it:)
-Sidekick-
03-29-2003, 12:34 AM
Anyway to make this hack effect the actual cookie with your style information?
g-force2k2
03-29-2003, 04:19 AM
not really sure... but as sidekick stated this may affect actual cookie data...
i personally have tested such results before by a url combined with ?s=&styleid=1
and it would change the style to style id 1... but then your cookie data is messed up and its impossible to rechange styles until the cookie data is fixed or deleted or whatever...
no offense to assassingod because it looks like he did a good job... but i think that it will defect any cookie information stored about styles...
regards,
g-force2k2
Dean C
03-29-2003, 11:46 AM
* Mist loves the tick ;)
Nice hack Steven, we were talking about it on AIM last night, I never got time to check it out here. Looks like it's turned out well. Yet another userCP hack from assassingod ;).
assassingod
03-29-2003, 12:09 PM
-Sidekick- ; I knew this would come up. I have not yet found a way round it. And g-force2k2 is absolutly correct. I'll try looking into it more.
N9ne ; Thanks:D And I have plenty more to come;)
-Sidekick-
03-30-2003, 01:35 AM
Maybe some vB guy could pop on this one and help us out. Cause I'd love to use this hack along with the style shown with link in the postbit, but I don't want to confuse message board users with their style settings.
filburt1
03-30-2003, 01:39 AM
vB by design prefers the styleid cookie over the user cp setting. The only way to fix it is to log out which destroys the cookie. Of course in this hack you can delete the cookie, too, which will do it.
Brian Briscoe
03-30-2003, 12:44 PM
AssassinGod,
I tested this on 2.2.9 and it seems to work fine. So you can go ahead and tick off 2.2.9 also :D
assassingod
03-30-2003, 04:38 PM
Thanks Phrozen1221:)
Mathiau
04-10-2003, 08:31 AM
Curious, how could this be put into the welcome panel (control panel part works
i have it in the welcome panel now - but i have no pull down menu as of yet - i assume that is because i need to put the code i put into usercp.php in another php file?
http://200.12.238.21:6543/welcomepanel.jpg
now, once it is there, any chance that once someone changes the style it will permanently save it like that? i think this was the case with another style selector hack, is it possible with yours?
thnx.
Mathiau
04-10-2003, 08:38 AM
okay - i put
$stylesetlist = "";
if ($allowchangestyles==1) {
$stylesets=$DB_site->query("SELECT * FROM style WHERE userselect=1 ORDER BY title");
if ( !isset($bbuserinfo['realstyleid']) ) {
$bbuserinfo['realstyleid'] = $bbuserinfo['styleid'];
}
while($thisset=$DB_site->fetch_array($stylesets)) {
if ($bbuserinfo['realstyleid']==$thisset['styleid']) {
$selected = "selected";
} else {
$selected = "";
}
$thisid = $thisset['styleid'];
$thisstylename = $thisset['title'];
eval ("\$stylesetlist .= \"".gettemplate("usercp_styleset")."\";");
eval ("\$stylecell = \"".gettemplate("usercp_stylecell")."\";");
}
} else {
$stylecell = "";
}
into index.php after
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);
it now shows in welcome panel a pull down with currently "defualt " in it
will this be okay where i posted the code ? or is there a better place i could - also, will this, if someon chooses another style - kep that style permanently, or only as long as that session?
assassingod
04-17-2003, 08:05 AM
That should work. If it doesnt, I will have a go:)
sharib
05-20-2003, 02:18 PM
I'm using vBulletin version 2.2.9. Installed this hack and although the style changes when I select a new style from the drop-down, the style name always displays the first one in the list. So it's a little confusing as to which colour is currently displaying. For exalmple, if I choose 'Default', the style does change, but the style name in the drop-down reads 'Corporate'. Can you please help? Thanks.
sharib
05-20-2003, 02:38 PM
I want to post a follow-up. Changing the styles works perfectly when accessed via the Edit Options page, and the style name displays properly in the drop-down. However, if I then change the style via the hack version, then I go back to having the same problems as reported in post #21. Which is the style name does not display correctly, and sometimes the style doesn't even change to what I selected.
Any tips/hints??
assassingod
05-20-2003, 04:46 PM
I believe your problem has been explained before. My hack doesnt properly update your cookies (And I may sort this out in the future) but the simpliest way is to update the style, twice, that sorts out the problem
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.