Support Forums


Go Back   68 Classifieds Forums > Help & Support > Modules / Plugins / Modifications

Notices

 
LinkBack Thread Tools Display Modes
Old 08-13-2008, 08:11 PM   #11
Member
 
Join Date: Jul 2008
Posts: 37
Rep Power: 4
suav is on a distinguished road
Default

Quote:
Originally Posted by seymourjames View Post
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>

This does not work for me. Where in the showlisting.tpl file does this code gets inserted?
__________________
Running v4.0.8 Dev with the default template.
suav is offline   Reply With Quote
Old 08-14-2008, 04:25 PM   #12
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,022
Rep Power: 27
seymourjames has a spectacular aura about
Default

If memory serves me correctly I put it right at the end just to test it out that it would work. It worked for me but i did not like the style or action of it.
__________________
TemplateCodes.com
seymourjames is online now   Reply With Quote
Old 02-24-2009, 12:50 PM   #13
Member
 
Fatih67's Avatar
 
Join Date: Jun 2008
Location: TURKEY
Posts: 48
Rep Power: 5
Fatih67 is on a distinguished road
Default

Quote:
Originally Posted by bowers01 View Post
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}
I use this type of showlisting.php but when there is no image added , there was not any nophoto.jpg.
I want to show big nophoto images or I want to add adsense codes instead of ads photo when there is no added images

thank you for reading
__________________
� 2007 68 Classifieds - A division of 68 Designs, LLC - v4.0.3 Developer
Another 68C site ; ikinci el kamyonlar
Fatih67 is offline   Reply With Quote
Old 02-27-2009, 05:00 PM   #14
Member
 
Fatih67's Avatar
 
Join Date: Jun 2008
Location: TURKEY
Posts: 48
Rep Power: 5
Fatih67 is on a distinguished road
Default

not down
__________________
� 2007 68 Classifieds - A division of 68 Designs, LLC - v4.0.3 Developer
Another 68C site ; ikinci el kamyonlar
Fatih67 is offline   Reply With Quote

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


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


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