vBulletin ModsThe Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=328381 |
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 18:02 --------------- UPDATE This seems to work, OCCASSIONLY Sometimes I get an error
error:
still working on it if anyone else can help. |
All times are GMT. The time now is 00:31. |
Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.