ZenphotoCMS Forum
Tipo: How to display allowed comment tags - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Tipo: How to display allowed comment tags (/thread-5.html)



Tipo: How to display allowed comment tags - Joen - 2005-09-19

If you want to display what commenting tags are allowed to use when leaving comments, paste the following PHP code in your image.php file where you want to display it.

[code][/code]

(remove the space after &lt )

Make sure you have the latest zenphoto (currently 0.8.2), or it won't work. The array of allowed tags was added to the config.php file in that version.

The config.php file is also where you want to look if you plan to allow more or less tags. Look for this:

$conf['allowed_tags'] = "";

The end result can look like this:
http://www.noscope.com/wallpapers/summer-2004/07.jpg
(scroll down and click on "Formatting your comment).




Tipo: How to display allowed comment tags - Joen - 2005-09-19

snip




Tipo: How to display allowed comment tags - trisweb - 2005-09-19

This might be better as an actual theme function. I'll just add it 'cause I can




Tipo: How to display allowed comment tags - Joen - 2005-09-20

Feel free

I figured you'd add it at one point anyway. This post is just for "bleeding edge" users