![]() |
|
Thread Tools |
#1
|
||||||||
|
||||||||
using template conditionals within an option
I want to create say an additional html option, and allow template conditionals within this option. The html renders fine, but template conditionals are not being rendered.
Is there a way to use template conditionals within an option? I know I can just create a template and do this in a template, there's just so much more to this I would like to be able to achieve this desired outcome. A made up example of what's not related to what I'm actually doing: Option - Additional header block on forumhome. Contents of option: <if condition="$bbuserinfo['userid'] == 1">Admin<else />Member</if> Then in the template I would use $vboptions[add_header] --------------- Added 29 Nov 2020 at 19:02 --------------- UPDATE This seems to work, OCCASSIONLY Sometimes I get an error
error:
still working on it if anyone else can help.
__________________
12/12/2020 - My PC has crashed, I have narrowed it down to the PSU, MB, or CPU. I believe it is the PSU (EVGA NEX750B) This is my job, creating free products and offering my services. With a daughter to be here any day I have very limited cash flow right now. If you wish to help me get a new PSU I would be greatly appreciative. PM me or read more here Dirt RIF CustUmz No members have liked this post.
|
![]() |
Tags |
conditionals, options, template |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 09:19.