Support Forums

Photo and listings slide show

This is a discussion on Photo and listings slide show within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Anybody got a nice bit of java code or module to share for making a slideshow of say featured or ...


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

Reply
 
Thread Tools Display Modes
Old 07-30-2008, 12:10 PM   #1
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,238
Rep Power: 53
seymourjames has a spectacular aura about
Default Photo and listings slide show

Anybody got a nice bit of java code or module to share for making a slideshow of say featured or newlistings. I would like if possible to make the current photo linked if possible to its listing.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds, Matching WordPress Themes & Magento Online Stores
seymourjames is offline   Reply With Quote
Old 07-30-2008, 02:25 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,316
Rep Power: 125
Eric Barnes is a jewel in the rough
Default

I haven't seen anything like this. I am sure it is possible but you would have to create some type of Smarty plugin to get it to work.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 07-30-2008, 02:33 PM   #3
Coder
 
Join Date: Mar 2006
Posts: 4,982
Rep Power: 121
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by suzkaw
I haven't seen anything like this. I am sure it is possible but you would have to create some type of Smarty plugin to get it to work.
Thats what I was thinking too.

Find the slideshow JS and I am sure we can modify one of the plugins to make use of it.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 07-30-2008, 07:32 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,238
Rep Power: 53
seymourjames has a spectacular aura about
Default

I did it by bolting this onto the end of a showlistings page to see if it would work (easy to test as well if it is a featured or new listings type of showlistings). It does work but I did not like the result for my site in the end. It didn't gel well. Too different a style. I am sure it will be useful to others though. The code comes from http://slideshow.triptracker.net/index.html .

script type="text/javascript"
src="http://slideshow.triptracker.net/slide.js"></script>
<script type="text/javascript">
<!--

var viewer = new PhotoViewer();viewer.enableLoop();
viewer.disableEmailLink();
viewer.disablePhotoLink();
viewer.setFontSize(12);
viewer.setShadeColor('#CCCCCC');
{foreach from=$results item="entry"}

viewer.add('photos/{$entry.image|escape:"url"}', '<a href="{$entry.link}" title="{$entry.title}" target="_blank">{$entry.title}</a>');
{/foreach}
//--></script>

<a href="javascript:void(viewer.show(0))">Slideshow</a>
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds, Matching WordPress Themes & Magento Online Stores
seymourjames is offline   Reply With Quote
Old 07-31-2008, 05:52 AM   #5
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 947
Rep Power: 25
bowers01 is on a distinguished road
Default

Hi,
I want a popup with the photos inside like this http://truckandmachinery.com.au/image.jpg
i have asked many times but no one wants to code it.
Nick
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 07-31-2008, 06:45 AM   #6
Hunter Classifieds.com.au
 
 
Join Date: Mar 2008
Posts: 101
Rep Power: 10
newcastledirectory is on a distinguished road
Default Hi Nick

This image is one of my classified listings!
I did send you the code for it last time you asked!
sam
newcastledirectory is offline   Reply With Quote
Old 07-31-2008, 07:19 AM   #7
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 947
Rep Power: 25
bowers01 is on a distinguished road
Default

Hi,
Yes thanks for that but the code only works in the viewlisting.tpl. I contacted support about putting it in the popup and they said it might not be possible.
I tried and i tried to get it to work but it just didnt happen. So i am willing to pay someone to code something that will as long as it has the same results.
Cheers,
Nick
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 07-31-2008, 01:46 PM   #8
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,238
Rep Power: 53
seymourjames has a spectacular aura about
Default

Just pop the window for the slideshow link. At present if you put the code in showlistings, it pops a viewer window and greys out the background. Pretty much the same effect.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds, Matching WordPress Themes & Magento Online Stores
seymourjames is offline   Reply With Quote
Old 07-31-2008, 04:05 PM   #9
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,748
Rep Power: 51
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

I just stole... erm, I mean borrowed the code from the the 3.x versions and modified my viewimage.php and viewimage.tpl file to work the way that it used to which is a pop-up window with a next and previous at the bottom as needed.

-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified)
Sandbox (v3.1.10, v4.0.9, 4.1.5)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 07-31-2008, 06:32 PM   #10
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 947
Rep Power: 25
bowers01 is on a distinguished road
Default

Hi,
Here is the code that makes the nice gallery, if someone could help me put it into the popup that would be great. Credit goes to newcastledirectory.

Code:
{if $preview!="Y"}
{* Display the breadcrumb *}
{include file="categories/breadcrumb.tpl"}
{* Are you an administrator? *}
{if $smarty.session.userlevel==1}
{include file="viewlisting/listingadminlinks.tpl"}
{/if}
{/if}
{* Now show the main table *}
<table class="tableborder">
<tr>
<th colspan="2"><strong>{$title}</strong></th>
</tr>
<tr>
<td valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="3" class="norm">
{if $viewseller=="Y"}
<tr> 
<td><strong>{$smarty.const.LANG_SELLER}:</strong></td>
<td>
{if $preview!="Y"}
<a href="viewmember.php?member={$owner}">{$username}</a>
{else}
{$username}
{/if}
</td>
</tr>
{/if}
{* This the image display portion *}
<script type="text/javascript" language="javascript">
{literal}
function showPic (whichpic) {
if (document.getElementById) {
document.getElementById('placeholder').src = whichpic.href;
return false;
} else {
return true;
}
}
{/literal}
</script>
{if $viewphotos=="Y"}
{if $data<>""}
<table width="450" height="400" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="400" height="350" align="center">
{section name=image loop=$data max=1}
<table border="1" align="center" cellpadding="5" cellspacing="0" bordercolor="#FFFBE7" bgcolor="#333333" style="border-collapse: collapse">
<tr>
<td>
<p align="center">
<img id="placeholder" src="photos/{$data[image].image}" alt="" class="imageborder" style="border-left:2px solid #999999; border-right:2px solid #999999; border-top:2px solid #999999; border-bottom:2px solid #999999; " width="450" />{/section}</p> </td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top" height="60" align="center">
<table border="0" cellpadding="10" cellspacing="0" bgcolor="#E3E4E6">
<tr>
<td height="10">
{foreach from=$data item="entry"}
<a onClick="return showPic(this)" href="photos/{$entry.image}">
<img src="thumbs/small_{$entry.image}" hspace="0" vspace="0" border="0" class="imageborder" width="60" height="45" alt="" align="center" style="border: 2px solid #666666; "/></a>
{/foreach} </td>
</tr>
</table>
</div></td>
</tr>
</table>
{/if}
{/if}
{* This ends the image display portion *}
{if $viewaddress=="Y"}
<tr>
<td><strong>{$smarty.const.LANG_ADDRESS}:</strong></td>
<td>{$address}</td>
</tr>
{/if}
{if $viewcity=="Y"}
<tr>
<td><strong>{$smarty.const.LANG_CITY}:</strong></td>
<td>{$city}</td>
</tr>
{/if}
{if $viewstate=="Y"}
<tr>
<td><strong>{$smarty.const.LANG_STATE}:</strong></td>
<td>{$state}</td>
</tr>
{/if}
{if $viewcountry=="Y"}
<tr> 
<td><strong>{$smarty.const.LANG_COUNTRY}:</strong></td>
<td>{$country}</td>
</tr>
{/if}
{if $viewphone=="Y"}
<tr> 
<td><strong>{$smarty.const.LANG_PHONE}:</strong></td>
<td>{$phone}</td>
</tr>
{/if}
{if $viewprice=="Y"}
<tr> 
<td><strong>{$smarty.const.LANG_PRICE}:</strong></td>
<td>{$price|format_money}</td>
</tr>
{/if}
{if $viewdate=="Y"}
<tr>
<td><strong>{$smarty.const.LANG_DATE_ADDED}:</strong></td>
<td>{$dateadded|date_format:$dateformat}</td>
</tr>
{/if}
{if $viewexpiration=="Y"}
<tr> 
<td><strong>{$smarty.const.LANG_EXPIRATION}:</strong></td>
<td>{$expirationdays} Day(s)</td>
</tr>
{/if}
{if $url<>""}
<tr> 
<td><strong>{$smarty.const.LANG_EXT_URL}:</strong></td>
<td>{$url|linkurl:30}</td>
</tr>
{/if}
{if $viewhits=="Y"}
<tr> 
<td><strong>{$smarty.const.LANG_VIEWS}:</strong></td>
<td>{$hitcount}</td>
</tr>
{/if}
{* Extra Fields *}
{foreach from=$extrafields item=extras}
<tr>
<td><strong>{$extras.title}:</strong></td>
<td>
{if isset($extras.value)}
{foreach key=key item=item from=$extras.value}
{$item}<br />
{foreachelse}
{$extras.value}
{/foreach}
{/if}
</td>
</tr>
{/foreach}
{* End Extra Fields *}
{if $description<>""}
<tr> 
<td colspan="2"><strong>{$smarty.const.LANG_DESCRIPTIO N}: </strong><br />{$description|nl2br}</td>
</tr>
{/if}
</table>
<br />
</td>
<td valign="top"> {if $viewphotos=="Y" && $data <> ''}
{foreach from=$data item=image}
<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}&width={$image. width}&height={$image.height}','_popup','width ={$image.width},height={$image.height},directories =no,location=no,menubar=no,scrollbars=yes,status=n o,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" alt="{$image.title}" /></a><br />{$image.title}</p>
{foreachelse}
<img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/nophoto.gif" width="100" hspace="5" vspace="5" border="1" />
{/foreach}
{else}
<img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/nophoto.gif" width="100" hspace="5" vspace="5" border="1" />
{/if}
<p> </p>
</td>
</tr>
</table>
{if $preview!="Y"}
{include file=viewlisting/listingextras.tpl}
{/if}
<p> </p>
{if $pmon=="Y" && $smarty.session.uid > 0}
{elseif $allowcontact=="Y" && $display=="Y"}
{include file=contact/contactowner.tpl}
{/if}
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi Photo Upload bowers01 Technical Support 4 06-26-2008 07:55 PM


All times are GMT -4. The time now is 12:12 AM.


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