The Arcive of vBulletin Modifications Site. |
|
What style are we all using? Details »»
|
|||||||||||||||||||||||||
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 --> <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 --> Phrase Type: GLOBAL Title: not_specified Text: not specified Title: style Text: Style All done! ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Alright first install. . . I love this hack!
Thanks!!
|
|
#3
|
|||
|
|||
|
Looks good. Excellent job ^_^
|
|
#4
|
||||
|
||||
|
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 |
|
#5
|
||||
|
||||
|
Ok
It does not work with childstyles though How to do this?
|
|
#6
|
|||
|
|||
|
strange i did everything and checked it twice but only get a ":" where it is suposed to go?
|
|
#7
|
||||
|
||||
|
Quote:
|
|
#8
|
||||
|
||||
|
Quote:
Show me a screenshot of the style manager so I can see all your styles and childs, etc.
|
|
#9
|
|||
|
|||
|
Quote:
there is only 1 phrase correct? Any other ideas? |
|
#10
|
||||
|
||||
|
Quote:
|
![]() |
|
|