Author Topic: How do I set up 4images as an ecard site?  (Read 2502 times)

0 Members and 1 Guest are viewing this topic.

Offline ianric

  • Pre-Newbie
  • Posts: 1
    • View Profile
How do I set up 4images as an ecard site?
« on: March 01, 2008, 09:11:57 PM »
Hi, I would like to use 4images to send eCards from my site but I cannot see how to do it. Is there a script that I need, if so, where can I get it?

Also, is there a template that is dedicated to an eCard sending site. If not, does anybody know which template is best to use for this purpose?

Many thanks for your help.

Ianric

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: How do I set up 4images as an ecard site?
« Reply #1 on: March 07, 2008, 02:24:51 PM »
Hi,

it is possible to link direct from thumbs to postcards...
 
in includes/functions.php
search:
Code: [Select]
  if ($show_link) {
    if ($open_window) {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";
    }
    else {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$thumb."</a>";
    }
  }
  return $thumb;
replace with:
Code: [Select]
  if ($show_link) {
    if ($open_window) {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."postcards.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";
    }
    else {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."postcards.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$thumb."</a>";
    }
  }
  return $thumb;


KurtW