![]() |
What style are we all using?
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 :) Okay anyhow, here we go: Instructions Open includes/functions_showthread.php and find PHP Code:
PHP Code:
PHP Code:
PHP Code:
HTML Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div> HTML Code:
<!-- user forum style --> Phrase Type: GLOBAL Title: not_specified Text: not specified Title: style Text: Style All done! :) |
Alright first install. . . I love this hack!
Thanks!! :) |
Looks good. Excellent job ^_^
|
Well done!
BTW, is there any way that could be able to made that as a link? Whereby user can click on it ? Exactly like what Vb.org having now. thanks |
Ok :) It does not work with childstyles though :( How to do this?
|
strange i did everything and checked it twice but only get a ":" where it is suposed to go?
|
Quote:
|
Quote:
|
Quote:
there is only 1 phrase correct? Any other ideas? |
Quote:
|
Quote:
the Style part is not generated, but it's a big if condition test in postbit, (as it was done during the Beta when we didn't want to hack where not needed) |
Quote:
with global $stylechoosercache, $vbphrase; |
Quote:
Updated but still get teh same thing?? |
Yes the same here. Or you see a : (when a child style whas chosen) or the phrase '(not_specified)' but if they choose a master style it's correct displayed.
|
Sorry about that guys :)
Add the following phrase: Title: style Text: Style |
Well...it's the same only now it;s: Style:
|
How about this? Is it possible or not?
Thanks. :) Quote:
|
Quote:
|
Quote:
|
:( I can't see the chosen styles (see attach)
|
Quote:
|
Quote:
|
Quote:
|
Pretty cool.
|
This sounds like a greta hack.
Unfortunately i only have 1 style on my board so it's pretty obvious what style everybody uses :D [high]* BarBeQue is too lazy to install multiple styles and apply have to apply template hacks to all the styles :([/high] |
Quote:
|
I installed it...but for any style but the Parent, it leaves a blank space...no text...help
|
Quote:
|
OK...here's the screenie for you to look at
|
Quote:
How does that work if another style has slight changes in the hacks.. for example take vb.org here.. I noticed that the green style uses w ared /me line while the blue style has a yellow line |
Quote:
|
Ya this isn't working properly i think.
It says Style: But for some users, it will show the style for them because they choose a certain style which is the forum's default one that I specified in the vboptions. If they choose another style (not child of any style), it will not show it properly. |
Quote:
Replace PHP Code:
PHP Code:
|
no that didn't fix it,
some people have Style: (not specified) Some people have Style: XXXXXXXX Some peopel just straight up have Style: and that's it, lol. I don't understand this hack at all www.squareultima.com if you wanna take a look at it. The Green style is the original style and the default one and if people choose that style, it will work nice and dandy but if you choose any others, it doesn't show up at all, very odd. |
It does not work with dependent styles
|
Quote:
|
something is most definitely wrong wiht the code in this hack. I installed it again and the exact same results, it's not even that confusing to instlal.
|
Quote:
|
Quote:
|
Quote:
[high]* Dart1337 clicks uninstall for now.[/high] |
All times are GMT. The time now is 10:25 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|