[How-To] Use Template Conditional in any Script
1 Attachment(s)
This tutorial will show you how to return data from a column you've created and parse template conditionals.
PHP Code:
For sake of this article let's say "$sql['my_field']" contains the following HTML Code:
<if condition="is_member_of($bbuseruserinfo, 12)"> You'll need to take the variable "$done" and place it in "my_template". HTML Code:
$stylevar[htmldoctype] View the attachment to see what the end result. I have tested the security and it returns dangerous code as plain text. This means that no one can perform mischievous actions towards your forums. |
Can you explain in detail WHY you would want to create such a tool?
Many members won't understand; therefore, limiting the help that you are trying to achieve. |
I'm sorry Princeton but I'm not good at explaining how stuff works.
|
I would have never thought of using a template conditinal in that manner, very interesting. Thanks!
|
I had no idea this could be done, which is ridiculous since it's perfectly obvious now it's been pointed out. Thank you, I've made good use of it.
|
All times are GMT. The time now is 08:48 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|