The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Accept Style Code
Hello,
I am curious what the code is to force a section of code to accept the style information from the style chooser. It's in a ton of the add on's here. For example the Quick Register, the Radio/TV Add On, Inferno Shoutbox. Where basically if I change the style in my style chooser, it will change the layout of them as well. I need the code so I can force a non-vb add on script that I'm going to put on a vb custom page, so that it does the same thing. I hope you understand, if not, I'll show pictures. Thanks in advance, Legion |
#2
|
|||
|
|||
If I am understanding you correctly you want to set a style ID no matter what the user style is.
This is the code I found in the class_core.php to set the style of the user. PHP Code:
If that doesn't work you will probably find your answer somewhere in forumdisplay.php or showthread.php. |
#3
|
||||
|
||||
Thanks.
That might be it, but it seems like it's specifying the style. I don't want to specify necessarily. If I have a custom forum page such as this: http://www.legionofangels.net/forum/loalinks.php and you hit the style chooser on the bottom of the page, you can change the display of the box on the page. See this: http://img.photobucket.com/albums/v3...66/test2-3.jpg I need the code for how to force a code/script/product to change if a user changes there style ID. |
#4
|
|||
|
|||
Code:
<if condition="$bbuserinfo[styleid] == 1"> code to only show only on style id 1 <else /> <if condtion="$bbuserinfo[styleid] == 2"> code to show show only on style id 2 </if> </if> |
#5
|
||||
|
||||
You rule!
Do I have to do that for all my style id's, the separate "if it's this, show this". Or does that code cover all of them? I'm guessing do it for each of my style id's. |
#6
|
|||
|
|||
No you have to keep adding more if you have more style ids but you can use a else to cover many styles.
Code:
<if condition="$bbuserinfo[styleid] == 1"> code to only show only on style id 1 <else /> <if condtion="$bbuserinfo[styleid] == 2"> code to show show only on style id 2 <else /> use on any style except 1 or 2 </if> </if> |
#7
|
||||
|
||||
I'd give you rep or thanks if I could.
Very much appreciated!!! (( 1 last thing and I got all my stuff )) sweet!! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|