4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: gti-the-sexy on February 10, 2003, 02:56:13 PM

Title: using 4images to send ecards
Post by: gti-the-sexy 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:
Title: using 4images to send ecards
Post by: V@no 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>";
Title: using 4images to send ecards
Post by: gti-the-sexy 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>";