![]() |
How to make a simple 'option'
Hey all.
Say I make a really simply template change that I want to be optional. ( the case in question, I want users to be able to choose to have the forum catergory icons on or off ) Currently I've done this in a rather messy way, having one skin set with the forum catergory icons, each skin set with a child skin with the mod to remove those icons. Now surely I should be able to stick a yes/no choice in somewhere, say on the user optionsm say in the visible post elements section of the usercp: /forum/profile.php?do=editoptions Quote:
|
In your template, use a conditional:
HTML Code:
<if condition="$bbuserinfo['fieldn']"> |
^ ^
okay, that makes sense, thanks. But how do I then add the necessary line of code to allow user selection of that choice? |
It does it automaticly when adding a new field ;)
|
Sorry, I'm still not following. I do understand you stick the if statement around the code in question.
Where do the options for user selection then become avalible? :( |
Sorry for bumping this up, but this seems such an easy thing to do... yet I'm lost :(
|
Really sorry for bumping my thread yet again, but I wrapped a conditional around my statement and did -not- find an option suddenly appear? What on earth am I doing wrong?
|
You must add a profile field (via the admin cp) so the user can have the option to select. That's the fieldn that filburt referred to.
|
oooh, I will give it a go...
|
Is this valid code then?
Code:
<if condition="$bbuserinfo['field15']"> Cause I'm getting a parse error :( |
All times are GMT. The time now is 01:12 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:
|