Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Can't find anser for 1.4.x - Use HTML/PHP in image description  (Read 5101 times)

0 Members and 1 Guest are viewing this topic.

koocha

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

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.
Logged

koocha

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Can't find anser for 1.4.x - Use HTML/PHP in image description
« Reply #1 on: August 31, 2006, 11:41:06 pm »

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

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

Logged

Nibbler

  • Guest
Re: Can't find anser for 1.4.x - Use HTML/PHP in image description
« Reply #2 on: September 01, 2006, 12:26:10 am »

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.
Logged

koocha

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Can't find anser for 1.4.x - Use HTML/PHP in image description
« Reply #3 on: September 01, 2006, 12:37:26 am »

How would I go about doing that?

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

Thanks

Tim
Logged

Nibbler

  • Guest
Re: Can't find anser for 1.4.x - Use HTML/PHP in image description
« Reply #4 on: September 01, 2006, 12:44:28 am »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.