4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started 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:
-
Open /includes/functions.php
Find: $thumb = "<a href=\"".$image_details_url."\">".$thumb."</a>";
Replace with: $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."postcards.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&mode=".$mode : ""))."\">".$thumb."</a>";
-
thanks vano
I changed the two following lines:
$thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&mode=".$mode : ""))."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";
and
$thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&mode=".$mode : ""))."\">".$thumb."</a>";