Home Support Forum
CMS Realty Support Forum
September 10, 2010, 09:41:32 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Click thumbnail to open property images in a new window?  (Read 13949 times)
acesea
Newbie
*
Posts: 13


« on: October 26, 2007, 09:26:48 PM »

I've got CMSRealty v1.1.1 working with Joomla 1.0.13 and I really like high resolution photos. Currently, with the Joomla template I am using, when a photo is clicked when browsing a properties image gallery the image opens inside joomla and half of the image is off the screen to the right due to the size. Furthermore, this screws up my columns etc and joomla looks distorted. I have no experience in coding or php and want to know how to change the function so that when I click on a photo it would open in a new window. It would be real nice if this was an option in the admin panel.

Thanks.
acesea
Newbie
*
Posts: 13


« Reply #1 on: October 28, 2007, 03:46:42 PM »

Well. I found 'images.inc.php' in the /include directory and see that it contains the javascript code in creating the slideshow listing template which allows to cycle through your listing pics by pressing- previous, play, pause, next etc. When you press the actual thumbnail image the javascript code refreshes the page and displays the large version of the image.

This code is found roughly halfway down images.inc.php. I don't know the line, but search for:
$output .= '<div class="slideshow_img"><a href="javascript:SLIDES.hotlink()">

This appears to be the code that controls this. If anyone knows how, can you modify it so that when the thumbnail is clicked a *new* window is opened which displays the large image?
php-dawg
Developer
Newbie
*
Posts: 3


« Reply #2 on: November 16, 2007, 10:12:30 AM »

There is an add-on for Open-Realty that will handle pop-up images - it is located here:

http://openrealty.programma-web.com/index.php?action=page_display&PageID=2
Pages: [1]
  Print