68 Classifieds Forums  

Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Questions & Support
Register Projects FAQ Members List Calendar Search Today's Posts Mark Forums Read

v3.1 Questions & Support Help and support for 68 Classifieds v3.1.x

 
Thread Tools Display Modes
  #1  
Old Yesterday, 07:50 PM
barrysmith barrysmith is offline
Senior Member
 
Join Date: Jun 2006
Posts: 105
Default Setting up Light Box

Hi

Can anyone explain how i can convert this bit of code from viewlisting.tpl.php (its the bit that shows the Thumbnailimages)

Quote:
<p><a href="#" onMouseOver="window.status='View Large Image';return true" onMouseOut="window.status='';return true" onClick="window.open('{$smarty.const.URL}/viewimage.php?photo={$image.id}','_popup','width=4 50,height=500,directories=no,location=no,menubar=n o,scrollbars=yes,status=no,toolbar=no,resizable=no ,left=0,top=0,screenx=50,screeny=50');return false"> <img src="thumbs/small_{$image.image}" hspace="5" vspace="5" class="image" border="0" /></a><br />{$image.title}</p>
I want to add the following to the <a> tag and remove the Javascript stuff.

<a href="images/image-1.jpg" rel="lightbox">

Now i think my problem so far as i have played around a bit is to get the correct bit of code that will place the path to the large image into the a tag.

Thanks in advance.
Reply With Quote
  #2  
Old Yesterday, 09:16 PM
louad louad is offline
Member
 
Join Date: Feb 2007
Posts: 59
Default

Here is what I did:
<a href="photos/[[image]]" rel="lightbox[roadtrip]"><img src="thumbs/small_[[image]]" hspace="5" vspace="5" class="image" border="0" alt="View Large Image" /></a><br />[[title]]
__________________

Wayne - LouAD.com (louisville, ky classifieds) 3.1.5b dev under construction.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting IPN in Paypal barrysmith v3.1 Questions & Support 6 02-17-2007 07:10 AM
Setting logged in status MVBaker v3.1 Questions & Support 10 11-09-2006 11:47 PM
Setting up on a Windows Server... barrysmith v3.1 Questions & Support 51 09-21-2006 05:37 PM
Problems setting a range field rockabilly v3.1 Questions & Support 2 09-13-2006 12:30 PM
Problems Setting Up Local Host art v3.1 Questions & Support 10 07-08-2006 02:53 AM


All times are GMT -4. The time now is 03:18 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.