Support Forums

Photos in two columns

This is a discussion on Photos in two columns within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hi, In the viewlisting i currently have http://everythingsfree.org/image//images/742043have.jpg but i want to change it to http://everythingsfree.org/image//images/496601want.jpg The current code is ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 12-10-2008, 04:47 AM   #1
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default Photos in two columns

Hi,
In the viewlisting i currently have http://everythingsfree.org/image//images/742043have.jpg
but i want to change it to http://everythingsfree.org/image//images/496601want.jpg

The current code is
Code:
			  {foreach from=$data item=image}
				   <p><a href="photos/{$image.image}" onmouseover="window.status='View Large Image';return true" onmouseout="window.status='';return true" rel="lightbox" id="image{$image.id}" title="{$image.title}">
				    <img src="thumbs/small_{$image.image}" class="image" alt="{$image.title}" /></a><br />{$image.title}</p>
				    <div class="lightboxDesc image{$image.id}"></div>
				{foreachelse}
			 <img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/nophoto.gif" width="100" hspace="5" vspace="5" border="1" />
			  {/foreach}
How can i do this?
Cheers,
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 12-14-2008, 05:17 AM   #2
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default

Any ideas?
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 12-14-2008, 08:28 AM   #3
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

I have an idea but dont have working code. For starters the paragraph tag will make sure each new image is under the provious one so you would have to add some smarty logic get a count of the array contents and then employ some smarty logic to apply opening and closing P tags where needed.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 12-15-2008, 12:58 AM   #4
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default

Hi,
Thanks, i worked it out.
Code:
			  <a href="photos/{$data.0.image}"  id="fimg_{$data.0.id}"><img width="254" class="largeimage" src="photos/{$data.0.image}" /></a>
		{html_table_adv loop=$data cols=2 table_attr='width="100%"'}
<a href="photos/[[image]]" onmouseover="window.status='View Large Image';return true" onmouseout="window.status='';return true" rel="lightbox" id="image{$image.id}" title="{$image.title}">
<img src="thumbs/small_[[image]]" class="image" alt="{$image.title}" /></a>{$image.title}
<div class="lightboxDesc image{$image.id}"></div>
		{/html_table_adv}
	  {else}
	  	<img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/nophoto.gif" width="100" hspace="5" vspace="5" border="1" />
      {/if}
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Control width of table columns in category table domino Templates, HTML, CSS, and Design Help 2 09-07-2008 08:37 AM
photos oteenc Pre Sales Questions 2 07-31-2008 06:15 PM
diplaying categories in 3 columns suresh Technical Support 4 07-28-2008 10:17 AM


All times are GMT -4. The time now is 09:24 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0