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.)
|
RateU
Administrator
Posts: 2,350
Joined: Mar 2010 |
|
||
02-17-2018 01:39 AM |
|
Kiddo
Junior Member
Posts: 1
Joined: Apr 2018 |
|
||
04-25-2018 12:57 PM |
|
own3mall
Junior Member
Posts: 1
Joined: Nov 2018 |
|
||||
11-17-2018 11:23 AM |
|
ahmedwaill
Junior Member
Posts: 2
Joined: Dec 2018 |
|
||||||
12-28-2018 10:17 AM |
|
.mouni
Junior Member
Posts: 2
Joined: Feb 2015 |
|
||
12-29-2018 01:48 PM |
|
ahmedwaill
Junior Member
Posts: 2
Joined: Dec 2018 |
|
||
12-29-2018 08:32 PM |
|
Gerti
Junior Member
Posts: 7
Joined: Jun 2020 |
|
|||
06-16-2020 09:46 PM |
|
RateU
Administrator
Posts: 2,350
Joined: Mar 2010 |
|
||
06-21-2020 06:14 AM |
|
Gerti
Junior Member
Posts: 7
Joined: Jun 2020 |
|
||
06-22-2020 01:38 AM |
|
RateU
Administrator
Posts: 2,350
Joined: Mar 2010 |
|
||
06-22-2020 02:05 AM |
|
« Next Oldest | Next Newest »
|