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.)
|
Pirata Nervo
Member
Posts: 235
Joined: Jan 2008 |
|
||
08-15-2010 01:51 AM |
|
leefish
|
|
||
08-15-2010 02:21 AM |
|
leefish
|
|
||||
08-17-2010 02:35 AM |
|
RateU
Administrator
Posts: 2,350
Joined: Mar 2010 |
|
|||
08-17-2010 04:21 AM |
|
leefish
|
|
||
08-17-2010 04:46 AM |
|
ZiNgA BuRgA
|
|
||
09-15-2010 02:35 PM |
|
Pirata Nervo
Member
Posts: 235
Joined: Jan 2008 |
|
||
09-16-2010 12:44 AM |
|
RateU
Administrator
Posts: 2,350
Joined: Mar 2010 |
|
||
09-17-2010 04:46 AM |
|
mike22
Junior Member
Posts: 1
Joined: Oct 2010 |
|
||
10-04-2010 03:36 AM |
|
x2srj
Junior Member
Posts: 1
Joined: Oct 2010 |
|
||
10-07-2010 11:23 PM |
|
« Next Oldest | Next Newest »
|