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: File location needed  (Read 3109 times)

0 Members and 1 Guest are viewing this topic.

Zaaka

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
File location needed
« on: March 10, 2007, 10:02:38 pm »

I am wanting to place a small button under each thumbnail (and main picture) but which files do I need to edit?
Logged

Nibbler

  • Guest
Re: File location needed
« Reply #1 on: March 10, 2007, 10:07:53 pm »

Locate the templates you need to change in the sample theme's theme.php, copy them to your theme.php and modify your copy. Look for

Code: [Select]
// HTML template for thumbnails display
and

Code: [Select]
// HTML template for intermediate image display
Logged

Zaaka

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: File location needed
« Reply #2 on: March 11, 2007, 02:25:56 pm »

Managed to do that, however i Have a query, how would I insert the picture filename, into a form fields value?

eg. I would need the filename instead of the ########


<input type="hidden" name="item_number" value="########">
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: File location needed
« Reply #3 on: March 12, 2007, 08:29:36 am »

Depends on where you want to use that piece of code.
Logged

Zaaka

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: File location needed
« Reply #4 on: March 18, 2007, 05:47:09 pm »

What I am trying to do is sell my photo's on my site, I have all the code etc to use paypal (places a Buy Now button below the picture), however I need to insert the photo's filename as a URL parameter when passing the paypal details to paypal.

you can view what I have done so far by visiting www.clubsnortheast.com/g
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: File location needed
« Reply #5 on: March 18, 2007, 06:58:28 pm »

Actually, there's a load of mods that do what you're trying to accomplish. Why not try one of them instead of re-inventing the wheel?
"coppermine-gallery.net > No Support > Modifications/Add-Ons/Hacks > Mods: Selling pictures" and "coppermine-gallery.net > Support > cpg1.4.x Support > cpg1.4 plugins > cpg1.4 plugin contributions > Shopping cart"
Logged
Pages: [1]   Go Up
 

Page created in 0.037 seconds with 22 queries.