The Arcive of vBulletin Modifications Site. |
|
Disable conditional function filters Details »»
|
|||||||||||||||||||||||||
This hack will allow you to by-pass the function filters built into the template conditional's. Currently you are restricted to the following functions:
PHP Code:
PHP Code:
This hack is ment to be used on test boards for functionality testing, do not run it in production enviroments. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
mm coolies
/me runs off to test |
|
#3
|
|||
|
|||
|
i'm not sure to understand here... do you have a patent example before i put this in ?
|
|
#4
|
|||
|
|||
|
Quote:
This is just something to make it a little eaiser on developers, I found it to save some time while developing with vBulletin on local test copies. |
|
#5
|
|||
|
|||
|
ok then... (i never code inside the templates, i prefer directly into files, so anyway...)
|
|
#6
|
|||
|
|||
|
Checking with the templates has its benifits in some cases, lets say I created some new functions to be used to display differing html inside forums depending on what the forumid is.
So lets asume I have two functions i've inserted into functions.php: PHP Code:
HTML Code:
<if conditional="match_forums($forumid)"> // do special forum display here <else /> // do normal forum display here </if> PHP Code:
|
|
#7
|
|||
|
|||
|
Nice.
Unless there are cases where the user can inject code, the default should be less restrictive. It is very handy to have more power on the template side. |
|
#8
|
||||
|
||||
|
Excellent work - what a great thought!
|
|
#9
|
||||
|
||||
|
It's so simple and i didn't come across the idea myself. ^^
|
|
#10
|
|||
|
|||
|
Excellent stuff Brad!! Will be using it from now on.
|
![]() |
|
|