The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Show users Theme...
On this site in the postbit you can see the users theme, where is there a hack for this?
|
#2
|
|||
|
|||
Don't see one. vB.org is probably keeping it proprietary, but I could be wrong. Im sure if you knew more about the coding it could be done fairly easily.
|
#3
|
|||
|
|||
I'm going to start searching for code I guess... sigh.
|
#4
|
||||
|
||||
This has been asked before, I've never seen it released anywhere, but there is nothing special about it - a members styleid is already available for every post - we just have a lookup array from id to name, and display it.
|
#5
|
|||
|
|||
Ok, so it's simple? Can you post the simple code please? Cause I have been trying $stylename and $styleid and get no output in the postbit.
|
#6
|
|||
|
|||
You can do it like this, it's not the cleanest way of doing it but it works and needs no plugins etc.
In this code x is the id number of your default style, y is the id number of an alternative style. Repeat the second conditional for any other styles you have, changing the id number and style name. Stick the code in the postbit or postbit_legacy templates. Code:
<div class="smallfont"> Style: <if condition="$post[styleid]==0"><a href="$vboptions[forumhome].php?$session[sessionurl]&styleid=x">default</a></if> <if condition="$post[styleid]==y"><a href="$vboptions[forumhome].php?$session[sessionurl]&styleid=$post[styleid]">style name</a></if> </div> |
#7
|
|||
|
|||
Actually upon further testing this doesn't work. I have changed styles, and it keeps showing the first one it detected, even after refreshing. Sigh.
I tried using this too, and no good... anyone know how to do this? Code:
<if condition="in_array($styleid, array(1,0))"><a href="$vboptions[forumhome].php?$session[sessionurl]&styleid=1">AMAC Blue</a></if> <if condition="in_array($styleid, array(5))"><a href="$vboptions[forumhome].php?$session[sessionurl]&styleid=$post[styleid]">AMAC Midnight</a></if> <if condition="in_array($styleid, array(17))"><a href="$vboptions[forumhome].php?$session[sessionurl]&styleid=$post[styleid]">AMAC Butterflies</a></if> |
#8
|
|||
|
|||
Quote:
However, it's important to note it only shows the style as set in the user cp...it won't detect any changes made using the quick chooser dropdown, as these are simply cookie changes. It'd be nice if there was a way to detect those, but I don't know of one. |
#9
|
|||
|
|||
Ahhhh, and that's what I was doing to change the styles, I see said the blind man. Ok, so, maybe if I replace my dropdown with a link to the UserCP, or make an interface that will update it, I can detect it easier. Thanks.
|
#10
|
||||
|
||||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|