![]() |
![]() |
![]() |
|
|||||||
| User interface Discuss eSyndiCat templates here. All the questions regarding eSyndiCat [FREE] Front end |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Feb 2008
Posts: 25
![]() |
Hi,
Please - let me know (script ver 1.6): 1. After we click "Listing Details" we can see thumbshots picture. Is it possible to see them on other pages (e.g. home, new listings, top listing, etc...)? Where can I add the code for it? 2. Is it possible to cache thumbshots pictures on local server? Thanks, Adalb. |
|
|
|
|
|
#2 |
|
Join Date: Jul 2006
Location: St. Petersburg
Posts: 2,568
![]() |
Hello Adalb,
1. ***Open template/yourTemplate/view-listing.tpl and find tag:*** [code] <tr> [code] ***in the top of the page, below the tag add:*** Code:
<td valign="top" style="padding: 0 0 0 10px;" >{$listing.thumb_preview}</td>
2. No, script does not have such ability. |
|
|
|
|
|
#3 |
|
eSyndiCat Support Team
Join Date: Sep 2006
Posts: 384
![]() |
Hi zsoi3,
I'd like just to add that you'd better specify a definite width to avoid table cell's auto resizing: Code:
<td valign="top" style="padding: 0 0 0 10px; width: 130px;" >{$listing.thumb_preview}</td>
__________________
Regards, Tilek Eshenaliev eSyndiCat Templates Customizations: just submit a ticket to "Custom Modification Requests"!
|
|
|
|
|
|
#4 |
|
Join Date: Feb 2008
Posts: 25
![]() |
Thanks!
And what about the code for 2.2 script? |
|
|
|
|
|
#5 |
|
eSyndiCat Support Team
Join Date: Sep 2006
Posts: 384
![]() |
This mod is intended for displaying site thumbnails near title, description etc. (version 2.2.XX)
#1. Please open featured-listing-display.tpl or partner-listing-display.tpl or sponsored-listing-display.tpl file. It depends on what types of listings thumbs should be displayed. #2. Insert the highlighted lines: (here is featured-listing-display.tpl) Code:
<tr>
<td class="listing {$listing.status}" id="tdlisting{$listing.id}">
<fieldset class="{$listing.status}">
<legend align="right"><img src="{$img}featured.png" alt="{$lang.featured}" title="{$lang.featured}" /></legend>
<div class="title">
{if $listing.crossed}@{/if}
<a href="{if $config.forward_to_listing_details}
{if $config.mod_rewrite}
{$config.base}{$config.dir}{$listing.path}{convertStr string=$listing.title}-l{$listing.id}.html"
{else}
{$config.base}{$config.dir}view-listing.php?id={$listing.id}"
{/if}
{else}
{$listing.url}" id="l{$listing.id}" {if $config.new_window}target="_blank"{/if}
{/if} class="title" >{$listing.title}</a>
{section name=star loop=$listing.rank}<img src="{$img}star.png" alt="" />{/section}
</div>
<div class="description">
<img src="http://open.thumbshots.org/image.pxf?url={$listing.url}" align="left" style="margin: 5px 5px 5px 0;" />
{if $config.html_tags}
{$listing.description|replace:"\r\n":"<br />"}
{else}
{$listing.description|escape:"html"|replace:"\r\n":"<br />"}
{/if}
</div>
<div style="clear: both;"></div>
<div class="url">{$listing.url}</div>
{if $config.pagerank}
<div class="pr-text">{$lang.pagerank}: {if $listing.pagerank eq '-1'}{$lang.not_available}{else}{$listing.pagerank}/10{/if}</div> <div style="float: left;">{printPagerank pr=$listing.pagerank}</div>
{/if}
<div class="stat">({$lang.clicks}: {$listing.clicks};
{$lang.comments}: {$listing.comments};
{esynHooker name="listingDisplayFieldsArea"}
{$lang.listing_added}: {$listing.date|date_format:$config.date_format})
{if $config.mod_rewrite}
<a href="{$config.base}{$config.dir}{$listing.path}{convertStr string=$listing.title}-l{$listing.id}.html"><img src="{$img}info_16.png" alt="{$lang.listing_details}" title="{$lang.listing_details}" /></a>
{else}
<a href="{$config.base}{$config.dir}view-listing.php?id={$listing.id}" rel="nofollow"><img src="{$img}info_16.png" alt="{$lang.listing_details}" title="{$lang.listing_details}" /></a>
{/if}
{if ($account.id eq $listing.account_id) || ($listing.id_account_edit eq '1')}
<a href="{$config.base}{$config.dir}edit-listing.php?id={$listing.id}"><img src="{$img}edit_16.png" alt="{$lang.edit_listing}" title="{$lang.edit_listing}" /></a>
{/if}
{if (($account.id eq $listing.account_id) || ($listing.account_id_edit eq '1')) AND $config.sponsored_listings}
<a href="{$config.base}{$config.dir}upgrade-listing.php?id={$listing.id}"><img src="{$img}finance_16.png" alt="{$lang.upgrade_listing}" title="{$lang.upgrade_listing}" /></a>
{/if}
{if $config.broken_listings_report && not ($account.id eq $listing.account_id)}
<a href="javascript:void(0)" onclick="reportBrokenListing('{$listing.id}', '{$lang.do_you_want_report_broken}')" rel="nofollow"><img src="{$img}report_16.png" alt="{$lang.report_broken_listing}" title="{$lang.report_broken_listing}" /></a>
{/if}
{if $account}
{if $account.id neq $listing.account_id}
<span id="af_{$listing.id}">
{if !$listing.favorite}
<a href="javascript:void(0)" onclick="actionFavorites('{$listing.id}', '{$account.id}', 'add', false, '{$lang.remove_favorite}', '{$lang.add_favorite}');" rel="nofollow"><img src="{$img}favorites-add_16.png" alt="{$lang.add_to_favorites}" title="{$lang.add_to_favorites}" /></a>
{else}
<a href="javascript: void(0);" onclick="actionFavorites('{$listing.id}', '{$account.id}', 'remove', true, '{$lang.remove_favorite}', '{$lang.add_favorite}');" rel="nofollow"><img src="{$img}favorites-remove_16.png" alt="{$lang.remove_from_favorites}" title="{$lang.remove_from_favorites}" /></a>
{/if}
</span>
{/if}
{/if}
{if not $listing.crossed && (($account.id eq $listing.account_id) || ($listing.id_account_edit eq '1'))}
<a href="javascript: void(0);" onclick="moveListing({$listing.id});"><img src="{$img}move_16.png" alt="{$lang.move_listing}" title="{$lang.move_listing}" /></a>
{if $tab eq 'account-listings'}{$lang.category}: {$listing.category_title|escape:"html"}<br />{/if}
<div id="moveto{$listing.id}" style="display:none;" class="moveto"> </div>
{/if}
{esynHooker name="listingDisplayLinksArea"}
</div>
</fieldset>
</td>
</tr>
#3. If you want to display thumbs for regular listings as well please open regular-listing-display.tpl file and insert the highlighted code: Code:
<tr>
<td class="listing {$listing.status}" id="tdlisting{$listing.id}" style="padding-bottom: 10px;">
<div class="title">
{if $listing.crossed}@{/if}
<a href="{if $config.forward_to_listing_details}
{if $config.mod_rewrite}
{$config.base}{$config.dir}{$listing.path}{convertStr string=$listing.title}-l{$listing.id}.html"
{else}
{$config.base}{$config.dir}view-listing.php?id={$listing.id}"
{/if}
{else}
{$listing.url}" id="l{$listing.id}" {if $config.new_window}target="_blank"{/if}
{/if} class="title" >{$listing.title}</a>
{section name=star loop=$listing.rank}<img src="{$img}star.png" alt="" />{/section}
</div>
<div class="description">
<img src="http://open.thumbshots.org/image.pxf?url={$listing.url}" align="left" style="margin: 5px 5px 5px 0;" />
{if $config.html_tags}
{$listing.description|replace:"\r\n":"<br />"}
{else}
{$listing.description|escape:"html"|replace:"\r\n":"<br />"}
{/if}
</div>
<div style="clear: both;"></div>
<div class="url">{$listing.url}</div>
{if $config.pagerank}
<div class="pr-text">{$lang.pagerank}: {if $listing.pagerank eq '-1'}{$lang.not_available}{else}{$listing.pagerank}/10{/if}</div> <div style="float: left;">{printPagerank pr=$listing.pagerank}</div>
{/if}
<div class="stat">({$lang.clicks}: {$listing.clicks};
{$lang.comments}: {$listing.comments};
{esynHooker name="listingDisplayFieldsArea"}
{$lang.listing_added}: {$listing.date|date_format:$config.date_format})
{if $config.mod_rewrite}
<a href="{$config.base}{$config.dir}{$listing.path}{convertStr string=$listing.title}-l{$listing.id}.html"><img src="{$img}info_16.png" alt="{$lang.listing_details}" title="{$lang.listing_details}" /></a>
{else}
<a href="{$config.base}{$config.dir}view-listing.php?id={$listing.id}" rel="nofollow"><img src="{$img}info_16.png" alt="{$lang.listing_details}" title="{$lang.listing_details}" /></a>
{/if}
{if ($account.id eq $listing.account_id) || ($listing.id_account_edit eq '1')}
<a href="{$config.base}{$config.dir}edit-listing.php?id={$listing.id}"><img src="{$img}edit_16.png" alt="{$lang.edit_listing}" title="{$lang.edit_listing}" /></a>
{/if}
{if (($account.id eq $listing.account_id) || ($listing.account_id_edit eq '1')) AND $config.sponsored_listings}
<a href="{$config.base}{$config.dir}upgrade-listing.php?id={$listing.id}"><img src="{$img}finance_16.png" alt="{$lang.upgrade_listing}" title="{$lang.upgrade_listing}" /></a>
{/if}
{if $config.broken_listings_report && not ($account.id eq $listing.account_id)}
<a href="javascript:void(0)" onclick="reportBrokenListing('{$listing.id}', '{$lang.do_you_want_report_broken}')" rel="nofollow"><img src="{$img}report_16.png" alt="{$lang.report_broken_listing}" title="{$lang.report_broken_listing}" /></a>
{/if}
{if $account}
{if $account.id neq $listing.account_id}
<span id="af_{$listing.id}">
{if !$listing.favorite}
<a href="javascript:void(0)" onclick="actionFavorites('{$listing.id}', '{$account.id}', 'add', false, '{$lang.remove_favorite}', '{$lang.add_favorite}');" rel="nofollow"><img src="{$img}favorites-add_16.png" alt="{$lang.add_to_favorites}" title="{$lang.add_to_favorites}" /></a>
{else}
<a href="javascript: void(0);" onclick="actionFavorites('{$listing.id}', '{$account.id}', 'remove', true, '{$lang.remove_favorite}', '{$lang.add_favorite}');" rel="nofollow"><img src="{$img}favorites-remove_16.png" alt="{$lang.remove_from_favorites}" title="{$lang.remove_from_favorites}" /></a>
{/if}
</span>
{/if}
{/if}
{if not $listing.crossed && (($account.id eq $listing.account_id) || ($listing.id_account_edit eq '1'))}
<a href="javascript: void(0);" onclick="moveListing({$listing.id});"><img src="{$img}move_16.png" alt="{$lang.move_listing}" title="{$lang.move_listing}" /></a>
{if $tab eq 'account-listings'}{$lang.category}: {$listing.category_title|escape:"html"}<br />{/if}
<div id="moveto{$listing.id}" style="display:none;" class="moveto"> </div>
{/if}
{esynHooker name="listingDisplayLinksArea"}
</div>
</td>
</tr>
__________________
Regards, Tilek Eshenaliev eSyndiCat Templates Customizations: just submit a ticket to "Custom Modification Requests"!
|
|
|
|
|
|
#6 |
|
Join Date: Feb 2008
Posts: 25
![]() |
Thanks - I'm going to try it,
Maybe - think about switch on/off flag about this patch in admin configuration panel, |
|
|
|
|
|
#7 |
|
Join Date: Aug 2009
Posts: 5
![]() |
Can not be resolved/......
- |
|
|
|
|
|
#8 |
|
same issue, is this still not resolved?
|
|
|
|
|
|
|
#9 |
|
Join Date: Dec 2009
Posts: 7
![]() |
I've tried adding a new block and placing this code into it:
Code:
<h1>{$listing.title|escape:"html"}</h1>
{include file="notification.tpl"}
<div class="box">
<table cellpadding="2" cellspacing="0" width="100%">
<tr>
{if $config.thumbshot}
<td valign="top" style="padding-right: 5px; width: 125px;">
<div class="preview"><img src="http://open.thumbshots.org/image.pxf?url={$listing.url}" alt="{$listing.url}" /></div>
</td>
{/if}
<td valign="top">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="width: 7.8em;"><strong>{$lang.title}:</strong></td>
<td><a href="{$listing.url}" id="l{$listing.id}" {if $config.new_window}target="_blank"{/if}>{$listing.title}</a></td>
</tr>
<tr>
<td><strong>{$lang.category}:</strong></td>
<td>
{if is_array($category.path)}
{foreach from=$category.path item=cat name="categpath"}
<a href="{print_category_url cat=$cat}">{$cat.title}</a>
{if not $smarty.foreach.categpath.last} / {/if}
{/foreach}
{else}
<a href="{print_category_url cat=$category}">{$category.title}</a>
{/if}
</td>
</tr>
<tr>
<td><strong>{$lang.clicks}:</strong></td>
<td>{$listing.clicks}</td>
</tr>
<tr>
<td><strong>{$lang.listing_added}:</strong></td>
<td>{$listing.date|date_format:$config.date_format}</td>
</tr>
{if $config.pagerank}
<tr>
<td><strong>{$lang.pagerank}:</strong></td>
<td>
{print_pagerank pagerank=$listing.pagerank}
</td>
</tr>
{/if}
{esynHooker name="viewListingAfterMainFieldsDisplay"}
</table>
</td>
</tr>
</table>
{if $config.html_tags}
{$listing.description|replace:"\r\n":"<br />"}
{else}
{$listing.description|replace:"\r\n":"<br />"|escape:"html"}
{/if}
{if $fields}
{include file="box-header.tpl" caption=$lang.fields style="fixed"}
{esynHooker name="viewListingBeforeFieldsDisplay"}
<table cellpadding="2" cellspacing="0" width="100%">
{foreach from=$fields item=field}
{assign var="key" value=$field.name}
<tr>
{assign var="field_name" value='field_'|cat:$field.name}
<td style="width: 20%;"><strong>{$lang.$field_name}:</strong></td>
<td>
{if $listing.$key || ($listing.$key eq '0')}
{if ($field.type eq 'text') || ($field.type eq 'textarea') || ($field.type eq 'number')}
{if $config.html_tags}
{$listing.$key|replace:"\r\n":"<br />"}
{else}
{$listing.$key|escape:"html"}
{/if}
{elseif $field.type eq 'checkbox'}
{assign var="values" value=','|explode:$listing.$key}
{if $values}
{foreach name="checkbox_iter" from=$values item=field_val}
{assign var="lang_key" value="field_"|cat:$field.name|cat:"_"|cat:$field_val}
{$lang.$lang_key}{if !$smarty.foreach.checkbox_iter.last}, {/if}
{/foreach}
{/if}
{elseif $field.type eq 'storage'}
<a href="{$smarty.const.ESYN_URL}uploads/{$listing.$key}">{$lang.download}</a>
{elseif $field.type eq 'image'}
{assign var="image_name" value="small_"|cat:$listing.$key}
{assign var="image_path" value=$smarty.const.ESYN_HOME|cat:"uploads"|cat:$smarty.const.ESYN_DS|cat:$image_name}
{if $image_path|file_exists}
<a href="{$smarty.const.ESYN_URL}uploads/{$listing.$key}" target="_blank" class="lightbox">{print_img ups=true full=true fl=$image_name alt=$listing.$key}</a>
{else}
{print_img ups=true full=true fl=$image_name alt=$listing.$key class="lightbox"}
{/if}
{elseif $field.type eq 'pictures'}
{assign var="images" value=","|explode:$listing.$key}
{foreach from=$images item=image}
{assign var="image_name" value="small_"|cat:$image}
{assign var="image_path" value=$smarty.const.ESYN_HOME|cat:"uploads"|cat:$smarty.const.ESYN_DS|cat:$image_name}
{if $image_path|file_exists}
<a href="{$smarty.const.ESYN_URL}uploads/{$image}" target="_blank" class="lightbox">{print_img ups=true full=true fl=$image_name alt=$image}</a>
{else}
{print_img ups=true full=true fl=$image_name alt=$image class="lightbox"}
{/if}
{/foreach}
{elseif $field.type eq 'combo'}
{assign var="field_combo" value="field_"|cat:$field.name|cat:'_'|cat:$listing.$key}
{$lang.$field_combo}
{elseif $field.type eq 'radio'}
{assign var="field_radio" value="field_"|cat:$field.name|cat:'_'|cat:$listing.$key}
{$lang.$field_radio}
{/if}
{else}
{$lang.not_available}
{/if}
</td>
</tr>
{/foreach}
</table>
{esynHooker name="viewListingAfterFieldsDisplay"}
{include file="box-footer.tpl"}
{/if}
{if $listing._deep_links}
{include file="box-header.tpl" caption=$lang.quick_links style="fixed"}
{foreach from=$listing._deep_links item=t key=u}
<a href="{$u|escape:"html"}">{$t|escape:"html"}</a> <br />
{/foreach}
{include file="box-footer.tpl"}
{/if}
</div>
|
|
|
|
|
|
#10 |
|
Administrator
Join Date: Sep 2005
Location: Intelliants LLC
Posts: 8,607
![]() ![]() ![]() ![]() ![]() ![]() |
Hi oneofakind2727,
If you provide more details what you are trying to achieve we can help. Please make a post in the Pro forums area and the guys will reply asap. Thanks and welcome to our support forums
__________________
Best Regards, Web Directory Script, Auto Classifieds Script , Affiliate Management Script, Article Directory Script Recommended Hosting IF YOU NEED TO CONTACT ME DO THIS IN HELPDESK. All PMs will be ignored |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|