Can't find anser for 1.4.x - Use HTML/PHP in image description Can't find anser for 1.4.x - Use HTML/PHP in image description
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Can't find anser for 1.4.x - Use HTML/PHP in image description

Started by koocha, August 27, 2006, 08:56:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

koocha

I need to use HTML/PHP in my image description but can't find a way in 1.4.x to do this.  I've have had a look on the board and on Google for a way to do it, but I've found nothing that works.

Any help would be much appreciated

Thanks

Tim

EDIT: It's jsut me uploading images and nobody else can edit the descriptions.

koocha

Does nobody have the answer?  All I want to put into the image description is:

<?php
include_once "/home/XXXXXXXX/public_html/poll/booth.php";
echo 
$php_poll->poll_process(4);
?>


Nibbler

You can't use php in an image description since the image description is never parsed as php. I would suggest implementing a new bbcode for what you want to do.

koocha

How would I go about doing that?

And if it won't get parsed is there any point?

Thanks

Tim

Nibbler

The idea is that you would use something like [poll] in the description which would get handled by Coppermine using the bb_decode() function. You would add in code to that function to do the include and call the method you specified above. It would then return the html output of the call into the displayed image description. I can't code this for you now however. Bump the thread in a few days if you don't get any reply.