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 10-13-2007, 07:50 PM
barrysmith barrysmith is offline
Senior Member
 
Join Date: Jun 2006
Posts: 109
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 10-13-2007, 09:16 PM
louad louad is offline
Member
 
Join Date: Feb 2007
Posts: 63
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
  #3  
Old 10-14-2007, 05:28 PM
barrysmith barrysmith is offline
Senior Member
 
Join Date: Jun 2006
Posts: 109
Default

Hi

Thank you very much, you have gone one step ahead with that answer, as it helps for having the gallery part of that modification.

barry
Reply With Quote
  #4  
Old 10-15-2007, 07:23 PM
barrysmith barrysmith is offline
Senior Member
 
Join Date: Jun 2006
Posts: 109
Smile

HI Wayne

I applied the code you suggested but it will not work, all i get is the greyed out screen with the image not loading.

Tell me, did you upload all your js files and css to the root, or to the template folder, mine are at root level.

Perhaps i have done somethin wrong here, well obviously i have ...

Many Thanks
Reply With Quote
  #5  
Old 10-15-2007, 07:28 PM
barrysmith barrysmith is offline
Senior Member
 
Join Date: Jun 2006
Posts: 109
Default

Hi

Got it...

Not working
<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]]

Working
<a href="photos/{$image.image}" rel="lightbox[roadtrip]"><img src="thumbs/small_{$image.image}" hspace="5" vspace="5" class="image" border="0" /></a><br />{$image.title}
Reply With Quote
  #6  
Old 10-16-2007, 12:20 AM
louad louad is offline
Member
 
Join Date: Feb 2007
Posts: 63
Default

I think I am using veiwlisting2.tpl.php and you viewlisting.tpl.php sorry for the mix up.
__________________

Wayne - LouAD.com (louisville, ky classifieds) 3.1.5b dev under construction.
Reply With Quote
  #7  
Old 10-17-2007, 05:45 AM
barrysmith barrysmith is offline
Senior Member
 
Join Date: Jun 2006
Posts: 109
Default

Hi Wayne

No problem at all, atleast you pointed me 99% in the right direction, so thanks in any way.

All the best
Barry
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 07:23 PM.


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