Author Topic: using 4images to send ecards  (Read 3840 times)

0 Members and 1 Guest are viewing this topic.

Offline gti-the-sexy

  • Newbie
  • *
  • Posts: 33
    • View Profile
using 4images to send ecards
« on: February 10, 2003, 02:56:13 PM »
I want to use 4images to send ecards and when we click the images, postcard pages must be seen instead of images details and comment section.

for example I click an image , normally image details and comment section come like:
http://mydomain.com/4images/details.php?image_id=41

but I must see like directly:
http://mydomain.com/4images/postcards.php?image_id=41

how could I do this?

I think this is very simple but my php is bad  :evil:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
using 4images to send ecards
« Reply #1 on: February 10, 2003, 04:52:09 PM »
Open /includes/functions.php

Find:
Code: [Select]
    $thumb = "<a href=\"".$image_details_url."\">".$thumb."</a>";

Replace with:
Code: [Select]
 $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."postcards.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$thumb."</a>";
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline gti-the-sexy

  • Newbie
  • *
  • Posts: 33
    • View Profile
using 4images to send ecards
« Reply #2 on: February 10, 2003, 07:07:20 PM »
thanks vano
I changed the two following lines:

Code: [Select]
$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>";


and
Code: [Select]
     $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$thumb."</a>";