Member
Member
Joen   2005-09-19, 09:51
#1
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]<?php

$text = preg_replace("[<]" , " &lt ;" , $conf['allowed_tags']);

echo $text;

?>[/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'] = "<a><i><em><b><strong><blockquote><abbr><acronym><ul><ol><li>";`

The end result can look like this:
http://www.noscope.com/wallpapers/summer-2004/07.jpg
(scroll down and click on "Formatting your comment).
Member
Member
Joen   2005-09-19, 09:57
#2
snip
Developer
Developer
trisweb   2005-09-19, 20:12
#3
This might be better as an actual theme function. I'll just add it 'cause I can Smile
Member
Member
Joen   2005-09-20, 07:16
#4
Feel free Smile

I figured you'd add it at one point anyway. This post is just for "bleeding edge" users Wink
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.