![]() |
Disable conditional function filters
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. |
mm coolies
/me runs off to test |
i'm not sure to understand here... do you have a patent example before i put this in ?
|
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. |
ok then... (i never code inside the templates, i prefer directly into files, so anyway...)
|
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)"> PHP Code:
|
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. |
Excellent work - what a great thought!
|
It's so simple and i didn't come across the idea myself. ^^
|
Excellent stuff Brad!! Will be using it from now on.
|
All times are GMT. The time now is 11:15 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|