Version: 1.00, by Gary King
Developer Last Online: Jun 2020
Version: 3.0.0
Rating:
Released: 03-27-2004
Last Update: Never
Installs: 86
No support by the author.
NOTE: Make sure all your styles have different display orders (only if they are in the same grouping). For instance, don't have 2 styles each with the display order of '1' otherwise this hack will just show 'Style: ' and no style shown.
This hack will show each users current selected style when viewing a post.
If you want to see how this looks, take a look at the screenshot attached.
The style system is a little more complex than the vBulletin 2 one, but it's still pretty simple and straightforward.
My apologies if this has already been released! I must also note that all of this code is original, meaning I made it all myself, I didn't look at someone else's code if anyone was wondering, so that we don't play the 'blame game' later on.
NOTE: For those who are wondering, this hack adds NO EXTRA QUERIES to your pages! Meaning the load and processing time are about the same as usual, they don't change much
// check what style the user is viewing
if (!$post['styleid'])
{
$post['style'] = '(' . $vbphrase['not_specified'] . ')';
}
else
{
// loop thru the $stylechoosercache to see which style the user is using, has to loop thru a few times
foreach ($stylechoosercache as $parentstyle)
{
foreach ($parentstyle as $innerstyleid)
{
if ($innerstyleid[0]['styleid'] == $post['styleid'])
{
$post['style'] = '<a href="' . $vboptions['forumhome'] . '.php?' . $session['sessionurl'] . 'styleid=' . $post['styleid'] . '">' . $innerstyleid[0]['title'] . '</a>';
continue;
}
}
}
}
Open the postbit template (or postbit_legacy if you're using old-style postbits) and find
<!-- user forum style --><div>$vbphrase[style]: <if condition="$post[style] == '$vbphrase[not_specified]'"><a href="$vboptions[forumhome].php?styleid=$vboptions[styleid]">Default Style</a><else />$post[style]</if></div><!-- / user forum style -->
Now add the following phrase:
Phrase Type: GLOBAL
Title: not_specified Text: not specified
Title: style Text: Style
All done!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
The way to fix this is to make it so when a user selects a style in the quick dropdown menu on all pages, their selection would be saved in their user info. Otherwise it is just stored with a cookie. Regardless of whether or not someone has say "Default" or "Style A" selected in their UserCP, the hack will not show anything that they select in the dropdown menu. I think making the dropdown menu change the users style the same way it does in the UserCP is the next step for this hack, as that seems to be the problem.
Please fix.
Hacks works great ... Thanks
But like 006 said if u can fix it with the dropdown menu it will be great ..
one problem.. it will (as suppoed) work with chosen style in usercp (from profile) but if the user changes style from within the forum (quick style chooser) it will not reflect on this hack, the hack will still show whats in the profile !!!
I hope it can read from elsewhere instead.. I am working on that
I installed this a month or so ago -- and it worked great until last night when I installed the the avatar_opacity hack.
It appears that both hacks use style as a varible in addition to it also appearing to be a command. The avatar_opacity hack must define the style variable last as it works while the style a member uses is now left blank.
I tried to figure out how to rename the variable in this hack to once again display the style a member uses -- but I'm completely lost.
When I started retracing my steps -- I saw that I modified the version of the functions_showthread.php that was just prior to this hack. Rookie mistake that I seldom make. I try real hard to keep all of my programs in snyc -- but dropped the ball on this one.
Anyway -- so that everyone knows, this hack works great and I do not have a compatability issue. Thanx again for this hack.
BTW -- if anyone ever figures out how to make the style chooser save to the user's CP and not just as a cookie -- post it here as I'd like to really know what styles the users use.
Great hack mister! But I want ask is there a way to make the changing of dropdown menu un the bottom left of the forum update the usercp forum skin info?
Thanx in advance and congratulations for the hack
I installed the hack, but it didn't work for me; I have read this whole thread through and don't know what I have done wrong, however it is the first hack I have ever installed, so I'm not to confident. All I get is Style: Can anyone help?
I installed the hack, but it didn't work for me; I have read this whole thread through and don't know what I have done wrong, however it is the first hack I have ever installed, so I'm not to confident. All I get is Style: Can anyone help?
Are you sure to have read whole thread? I think no.
Go HERE,it's better refresh your memory