View Full Version : process_template_conditionals doesn't work
harmor19
01 Jun 2007, 18:54
I am planning on using the function 'process_template_conditionals()' in a script I'm making for vBulletin. It's returning "Test" even though the conditional should return false.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
SirAdrian
01 Jun 2007, 19:20
Use single outer quotes instead of double... (so the condition is enclosed in double quotes). I haven't looked at the function, but I'm pretty sure that's how they are parsed.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
harmor19
01 Jun 2007, 19:28
It doesn't make a difference.
This Works
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I tested it out and added die(); in the column and it parses it as text :)
I'm not that good when it comes to writing tutorials but can you understand it OK?
================================================================
This tutorial will show you how to return data from a column you've created and parse template conditionals.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I have tested the security and it returns dangerous code as plain text. This means that no one can do mischievous actions towards your forums.
================================================================
vBulletin® v3.6.12, Copyright ©2000-2009, Jelsoft Enterprises Ltd.