Member
Member
forbish07   20-10-2012, 09:02
#1

Hello, as it stands by default in zpMinimal the main image on the index page links to itself inside the gallery (its own image page). I am trying to figure out how to change the link on the main image to simply take you into the main gallery page and NOT the specific image page (the same page that the "Enter Gallery" link at the very bottom takes you to). I cannot come up with the proper change to the code to allow this to happen. I am pretty sure the first set of is what needs to be changed but I just cannot figure it out. Here is the full code from the bottom of index.php (not like you don't have it already though)

`
echo 'getTitle())) . '">';
$html = "getCustomImage(535, NULL, NULL, NULL, NULL, NULL, NULL, TRUE))."\" alt=\"" . html_encode($randomImage->getTitle()) . "\" />\n";
echo zp_apply_filter('custom_image_html', $html, false);
echo "";
echo 'getTitle())) . '">'.html_encode($randomImage->getTitle()).'';
echo "". zpFormattedDate(getOption('date_format'),strtotime($randomImage->getDateTime()))."
";
} else { echo gettext('No Images Exist...'); }
} ?>

                    ">

`
Hope I did that right. Thanks for your help!

Administrator
Administrator
fretzl   20-10-2012, 23:15
#2

On the first line of your posted code change $randomImageURL to
getGalleryIndexURL()

Member
Member
forbish07   26-10-2012, 17:24
#3

Thank you very much, I will give it a try!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.