The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
if and else conditional help
I have 2 scripts in one template that I want to use. One shows buttons and one shows text links. I am trying to make it so the user can choose which one they want to use in their forum. So I am trying to make it so that they can turn off the buttons and the text links will turn on. So I thought the <if> and <else /> conditional would work. Well it doesn't unless I did it wrong.
So what is the proper way to get this to work? Is there an easier way? Thanks and I hope I explained this good enough. |
#2
|
|||
|
|||
You can do it this way.
Add a new profile field (Single-Selection Radio Buttons) --------------------------------------------- Title: Buttons/Text Description: Select Yes to use buttons. Choose No to use text. Options: Yes No --------------------------------------------- You can leave everything else the same. In the template of the custom page add PHP Code:
|
#3
|
|||
|
|||
Thanks and I had thought about that. But I would rather have it so the admin can control what is used on their forum not the user.
I added a vboption with the yes and no radio buttons and tried it that way to but no luck. Some reason it won't work. Thanks for the info. I am open to more ideas. |
#4
|
|||
|
|||
If you have enabled Debug Mode you should be able to add settings when you go to vBulletion Options. The best place to add your new option would be "General Settings".
So go to vBulletin Option --> General Settings Varname: switch_buttons_text Title: Switch Buttons/Text Description: Select Yes to use buttons. Choose No to use text. Option Code: yesno Data Validation Type: Boolean In your template add PHP Code:
|
#5
|
|||
|
|||
OK I got it. Your post got me back in line again. Guess I am to tired to be working tonight. LOL
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|