PHP in Templates / Complex Templates
|
|
Author | Message |
This is a relatively small plugin, but seems that a number of people wanted such a thing, so... here it is.
This plugin will allow you to use:
For those that do not wish to allow arbitrary PHP code execution that this plugin offers, take a look at the Template Conditionals plugin. Here's an example of some of the functions that this can be used for - for example, you may use this code in your postbit: HTML Code
The functions available, with the shortcut, are: htmlspecialchars, htmlspecialchars_uni, intval, file_get_contents, floatval, urlencode, rawurlencode, addslashes, stripslashes, trim, crc32, ltrim, rtrim, chop, md5, nl2br, strrev, strtoupper, strtolower, my_strtoupper, my_strtolower, alt_trow, get_friendly_size, filesize, strlen, my_strlen, my_wordwrap, random_str, unicode_chr, bin2hex, str_rot13, str_shuffle, strip_tags, ucfirst, ucwords, basename, dirname, unhtmlentities
(This post was last modified: 06-26-2023 10:42 PM by ZiNgA BuRgA.)
|
ZiNgA BuRgA
|
|
||
01-09-2012 08:53 PM |
|
newbie
Junior Member
Posts: 1
Joined: Jan 2012 |
|
||
01-21-2012 03:20 AM |
|
ZiNgA BuRgA
|
|
||
01-21-2012 08:14 AM |
|
Dannymh
Junior Member
Posts: 2
Joined: Mar 2012 |
|
||
03-07-2012 12:19 PM |
|
ZiNgA BuRgA
|
|
||
03-07-2012 03:14 PM |
|
Earl Grey
Junior Member
Posts: 12
Joined: Nov 2011 |
|
|||||||
04-10-2012 09:52 AM |
|
ZiNgA BuRgA
|
|
||
04-10-2012 11:42 AM |
|
Earl Grey
Junior Member
Posts: 12
Joined: Nov 2011 |
|
||
04-10-2012 09:48 PM |
|
lutherking
Junior Member
Posts: 1
Joined: Apr 2012 |
|
||
04-12-2012 07:07 AM |
|
ZiNgA BuRgA
|
|
||
04-12-2012 07:30 AM |
|
« Next Oldest | Next Newest »
|