Author Topic: Adding buttons to Image display  (Read 7092 times)

0 Members and 1 Guest are viewing this topic.

Offline Jayeth33

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • http://www.tophotos.com
Adding buttons to Image display
« on: September 12, 2002, 09:57:41 PM »
I want to add a button similar to the ones for light table, download and e-card for adding a shopping cart for ordering photos.

The button would need to pass the catagory and the image name/number.

What template would i need to edit?

Also i am looking at integrating 4images with phpwebsite ahs anyone done this already?

What type of things would i be looking at?

Jaye

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Adding buttons to Image display
« Reply #1 on: September 13, 2002, 12:06:18 AM »
If you need buttons, see: http://www.4homepages.de/forum/viewtopic.php?t=1094

You can add this button to details.html and/or thumbnail_bit.html. Jusst add a link like this:

Code: [Select]
http://www.yourdomain.com/shopping_cart.php?image_id={image_id}&cat_id={cat_id}

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Jayeth33

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • http://www.tophotos.com
Where to change code
« Reply #2 on: September 13, 2002, 03:17:34 AM »
I have looked at the code in the detail template, and have found the section where the other buttons are located (light table, e-card, download, but in the template it only has what looks like a function call.

Is this correct? do i eed to create a function?

or can i add just regular anchor tag <a href=...

and still get it to work?

Jaye

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Adding buttons to Image display
« Reply #3 on: September 13, 2002, 08:19:03 AM »
Just try it ;)

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Jayeth33

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • http://www.tophotos.com
It worked
« Reply #4 on: September 13, 2002, 06:56:40 PM »
I tried it an it did work, but i was just trying to stay consistant with the style of the templates.