Advanced search  

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

Pages: [1]   Go Down

Author Topic: Help - Trying to add some HTML below the image  (Read 4391 times)

0 Members and 1 Guest are viewing this topic.

stephunkin

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Help - Trying to add some HTML below the image
« on: February 11, 2004, 10:39:53 pm »

In displayimage.php in the html_picinfo() function there is some code which I think displays the following items in the following order:
        $params = array(
                '{CELL_HEIGHT}' => '100',
                '{IMAGE}' => $pic_html,
                '{ADMIN_MENU}' => $picture_menu,
                '{TITLE}' => $CURRENT_PIC_DATA['title'],
                '{CAPTION}' => bb_decode($CURRENT_PIC_DATA['caption']),
        );

I have added the following code above it:

$filename= $CURRENT_PIC_DATA['pname']; // doesnt get the filename :(
       
$buyme = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('http://www.mysite.com/catalog/advanced_search_result.php?keywords=". $filename."','buyMe','location=yes,toolbar=yes,status=yes,resizable=yes')\"><img src=\"/albums/button_buy_now.gif\" border=\"0\"></a><br />\n";        

in the array I am trying to add buyme like so:
$params = array(
                '{CELL_HEIGHT}' => '100',
                '{IMAGE}' => $pic_html,
           '{BUYME}' => $buyme,
                                '{ADMIN_MENU}' => $picture_menu,
                '{TITLE}' => $CURRENT_PIC_DATA['title'],
                '{CAPTION}' => bb_decode($CURRENT_PIC_DATA['caption']),
        );

I dont get a parse error but it also does not work.  If i just echo buyme it shows the button at the top L corner of the screen.  Is there a way to add it to the array?  Any ideas?          
Also, $CURRENT_PIC_DATA['pname'];  does not give me the filename.  Any idea where global variables are defined?
Thanks,
S
Logged

ShadowX

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Help - Trying to add some HTML below the image
« Reply #1 on: July 10, 2004, 08:18:49 pm »

Actually, I'm trying to do the same thing an I'm having a similar problem.  Anyone have any input on this?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Help - Trying to add some HTML below the image
« Reply #2 on: July 10, 2004, 08:47:49 pm »

try using  $pic_html instead of $CURRENT_PIC_DATA['pname'];
Adding your var to the params won't help you at all, since there's no corresponding code im your theme.php

Take a look at the mods section of this board as well, Casper just recently posted a hack that does something similar you're up to, using PayPal.

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.