View Full Version : how to fix thumb
Markoxaser
11-14-2006, 02:19 PM
please is possible to have this mod
http://www.m-software.de/thumbshots/insert.html
in my old 1.2 pro version work fine......
John Turner
11-15-2006, 04:46 AM
1.Please open your '../util.php'
***add following code in the END of document
/**
* Returns thumbshot of site over M-software service
*
* @return string
*/
function get_thumbshot_code($aParams)
{
$baseurl = "http://www.m-software.de/screenshot/Screenshot.png";
$url = urlencode ($aParams['aLink']);
$width = 150;
$height = 100;
$thumburl = $baseurl . "?url=" . $url . "&scale=6";
$code = "<img src='$thumburl' width='$width' height='$height'/>";
return $code;
}
***save and close it
2.Open your '../classes/DirSmarty.php'
***find following code
$gDirSmarty->register_function("print_pagerank", "print_pagerank");
***add after it following code
$gDirSmarty->register_function("get_thumbshot_code", "get_thumbshot_code");
***save and close it
3.Open your '../templates/{YOUR TEMPLATE}/view-link.tpl'
***find following code
{if $config.thumbshot}
<div class="preview"><img src="http://open.thumbshots.org/image.pxf?url={$link.url}" /></div>
{/if}
***replace it with
{if $config.thumbshot}
<div class="preview">{get_thumbshot_code aLink=$link.url}</div>
{/if}
*** save and close it.
Markoxaser
11-15-2006, 08:58 AM
now are fixex but in the pro 1.2 thumb show in this page...
example: http://directory.gamesrulez.com/top-links.html
John Turner
11-15-2006, 09:26 AM
You want to place thumbshot on another pages not only on Link Details page?
If so, this is extension for thumbshots were displayed via M-software
open your '../templates/{YOUR TEMPLATE}/link-dispaly.tpl'
***find following code
<div class="title">{if $link.crossed}@{/if} <a href="{$link.url}" class="title" id="l{$link.id}" {if $config.new_window}target="_blank"{/if}>{if $config.html_tags}{$link.title}{else}{text_html aText=$link.title}{/if}</a>
{section name=star loop=$link.rank}<img src="{$img}star.png" alt="" />{/section}
</div>
<div class="description">{if $config.html_tags}{$link.description}{else}{text_h tml aText=$link.description}{/if}</div>
<div class="url">{$link.url}</div>
<div class="stat">({$lang.clicks}: {$link.clicks};
{if $config.link_comments}
{$lang.comments}: {$link.comments};
{/if}
{$lang.link_added}: {$link.date|date_format:$config.date_format}) ::
{if $config.mod_rewrite}
{if 'search' eq $tab}
{assign var="link_title" value=$link.title2}
{else}
{assign var="link_title" value=$link.title}
{/if}
<a href="{$config.base}{$config.dir}{$link.path}/{convert_str string=$link_title}-l{$link.id}.html">{$lang.link_details}</a>
{else}
<a href="{$config.base}{$config.dir}view-link.php?id={$link.id}">{$lang.link_details}</a>
{/if}
{if ($editor.id eq $link.id_editor) || ($link.id_editor_edit eq '1')}
| <a href="{$config.base}{$config.dir}edit-link.php?id={$link.id}">{$lang.edit_link}</a>
{/if}
{if (($editor.id eq $link.id_editor) || ($link.id_editor_edit eq '1')) AND $config.sponsored_links}
| <a href="{$config.base}{$config.dir}upgrade-link.php?id={$link.id}">{$lang.upgrade_listing}</a>
{/if}
{if $config.amazon_link}
| <a href="http://partner.alexa.com/amzn/redirect_to_detail?amzn_id=esyndicatfree-20&url={$link.url}">{$lang.view_amazon}</a>
{/if}
{if $config.broken_links_report}
| <a href="javascript:void(0)" onclick="reportBrokenLink({$link.id})">{$lang.report_broken_link}</a>
{/if}
{if $config.pagerank}
<br />{$lang.pagerank}: {if $link.pagerank eq '-1'}{$lang.not_available}{else}{$link.pagerank}{/if}<br />{print_pagerank pr=$link.pagerank}
{/if}
</div>
*** Add before it following code
<table cellpadding="2" cellspacing="0">
<tr>
<td valign="top" width="155">
{if $config.thumbshot}
<div class="preview">{get_thumbshot_code aLink=$link.url}</div>
{/if}
</td>
<td>
*** and ADD after it following code
</td>
</tr>
</table>
Hope it helps.
lonrot
11-15-2006, 07:56 PM
Thanks for the fix but after I changed the files I can't login in the admin section.
And there's a a big code above my site index:
/** * Returns thumbshot of site over M-software service * * @return string */ function get_thumbshot_code($aParams) { $baseurl = "http://www.m-software.de/screenshot/Screenshot.png"; $url = urlencode ($aParams['aLink']); $width = 150; $height = 100; $thumburl = $baseurl . "?url=" . $url . "&scale=6"; $code = ""; return $code; }
And you haven't been very clear, when you say: find a line on the file, and insert a code. You are not explaning if it is to add the code below, above, or just replace the existing code.
Please explain yourself. Thanks.
Markoxaser
11-16-2006, 08:15 AM
You want to place thumbshot on another pages not only on Link Details page?
THX!!!!!! work fine!!!!!!! you are the best :dance2:
lonrot
11-16-2006, 05:41 PM
THX!!!!!! work fine!!!!!!! you are the best :dance2:
Did you replaced the old codes with the new ones, or did you just add the codes?
John Turner
11-17-2006, 09:12 AM
Hi there,
There is my fault.
I have edited my first post.
lonrot please check it.
If you still have question please feel freee contact me.
lonrot
11-18-2006, 02:44 AM
Here's my question, when you say "add following code"
Means?:
1) replacing the found code.
2) adding the new code below the found code.
3) adding the new code above the found code.
Doug B
11-21-2006, 03:39 PM
Hi Lonrot.
I have just done this mod...
Its 2) adding the new code below the found code.
I.e. on the next line. :wink:
Doug B
11-21-2006, 03:42 PM
I have just done this mod, however when I view 'link details' I still have the old screen shot image - see attached.
Also my screen shots and page ranks dont work :wallbash:
Plus, Im still not getting any screen shots!
John Turner
11-24-2006, 03:47 AM
Here's my question, when you say "add following code"
Means?:
1) replacing the found code.
2) adding the new code below the found code.
3) adding the new code above the found code.
Hi lonrot,
I have changed my previous posts. :friends:
I'm sorry for the inexact phrase.
Hope it helps.
Doug B
11-24-2006, 10:57 AM
DOH, still not working :crazy-be:
stsesyndicat
11-28-2006, 05:33 PM
Since we installed the patch, it is now showing a mistake in link-display.tpl where we have put this code as explained before in the thread
Here is the problematic code which generate a mistake sometimes but now no thumbshots appears at all. Also on view-link.tpl
<div class="preview">{get_thumbshot_code aLink=$link.url}</div>
Here is my full code
{if $config.thumbshot}{/if}
{if $link.photosite} <img src="{$config.base}{$config.dir}uploads/{$link.photosite}" width="150" />{else}
<div class="preview">{get_thumbshot_code aLink=$link.url}</div>
{/if}
You can see it here http://www.sail-training-world.com/
Please could you help me with that? :sos:
Thanks Alain
John Turner
12-04-2006, 04:46 AM
Hi Alain,
I have answered to you via PM.
lsabaut
01-12-2007, 11:48 AM
hello,
I'm using this mod and it works great,
Now , would it be possible to override this mod to add my own thumb pic whenever I have one ?
John Turner
01-17-2007, 09:05 AM
Hi lsabaut,
Now , would it be possible to override this mod to add my own thumb pic whenever I have one ?
here the solution
1. create new field for listings via Admin Panel » Manage Listing Fields
Name: thumbnail_site
Title: Thumbnail local
Show On Pages: nothing
Required Field: No
Visible for admin only: Yes
Field Type: image
File Prefix: thmb_
Image Height: 100
Image Width: 150
In compliance with my previous posts
open '../templates/{YOUR TEMPLATE}/link-dispaly.tpl'
*** find following code
<td valign="top" width="155">
{if $config.thumbshot}
<div class="preview">{get_thumbshot_code aLink=$link.url}</div>
{/if}
</td>
*** replace it with following code
<td valign="top" width="155">
{if $config.thumbshot}
<div class="preview">
{if $link.thumbnail_site eq ''}
{get_thumbshot_code aLink=$link.url}
{else}
<img src="{$config.base}{$config.dir}uploads/{$link.thumbnail_site}" />
{/if}
</div>
{/if}
</td>
*** Save and close it.
It might helps.
lsabaut
01-17-2007, 01:55 PM
Hi John,
Thank you for the help.
The mod is not stable.
First, within admin, in my listing field I do not see Title ( I see the field but when I write in something , it does not appear later in the list of manage listing field, all the other field are there,name,type...but not Title.
Then when mod applied , some of my listing do not show thumb any more,
but if I add a thumb manually then it is working .
sorry for my English, I hope you do understand me.
Thanks
John Turner
01-18-2007, 09:40 AM
You are welcome Isabaut,
First, within admin, in my listing field I do not see Title ( I see the field but when I write in something , it does not appear later in the list of manage listing field, all the other field are there,name,type...but not Title.
What version of eSyndiCat do you use?
lsabaut
01-18-2007, 10:21 AM
John,
I'm using the latest version with Patch 2.0.02
John Turner
01-18-2007, 10:23 AM
Very strange lsabaut
Could you provide me with FTP and AdminPanel credentials I'll try to help you.
dousma
01-18-2007, 10:59 AM
Which explorer and version are you using?
lsabaut
01-18-2007, 10:39 PM
John, Dousma
Thank you for the help.
I use explorer 7 and latest firefox
Now the admin is working ( this software has it own life)
I did not again try the mod , but will let you know the result.
Thank you both for your time.
Dousma thanks for the Dutch translation.
dousma
01-18-2007, 10:59 PM
You are welcome Isabaut, I also experience very strange things in IE7.
I just translated also patch version 2.0.02 however do not no or this one is in the download section because I only see version 2.0, maybe John can tell?
John Turner
01-19-2007, 09:16 AM
Hi there,
I have asked Simon about that.
New Dutch language file will be uploaded ASAP.
John Turner
01-24-2007, 03:39 AM
Hi there,
How to integrate your own thumbshots to your link-details page?
In compliance with my previous posts.
Here the solution.
1. open '../templates/{YOUR TEMPLATE}/view-link.tpl'
** find following code
{if $config.thumbshot}
<div class="preview">{get_thumbshot_code aLink=$link.url}</div>
{/if}
** replace with following code
{if $config.thumbshot}
<div class="preview">
{if $link.thumbnail_site eq ''}
{get_thumbshot_code aLink=$link.url}
{else}
<img src="{$config.base}{$config.dir}uploads/{$link.thumbnail_site}" />
{/if}
</div>
{/if}
*** save and close it.
It might helps.
Mumszone
02-16-2007, 06:00 PM
Is there a fix for this for 2.1?
Thanks
greeeb
05-06-2007, 08:38 PM
1.Please open your '../util.php'
***add following code in the END of document
/**
* Returns thumbshot of site over M-software service
*
* @return string
*/
function get_thumbshot_code($aParams)
{
$baseurl = "http://www.m-software.de/screenshot/Screenshot.png";
$url = urlencode ($aParams['aLink']);
$width = 150;
$height = 100;
$thumburl = $baseurl . "?url=" . $url . "&scale=6";
$code = "<img src='$thumburl' width='$width' height='$height'/>";
return $code;
}
***save and close it
2.Open your '../classes/DirSmarty.php'
***find following code
$gDirSmarty->register_function("print_pagerank", "print_pagerank");
***add after it following code
$gDirSmarty->register_function("get_thumbshot_code", "get_thumbshot_code");
***save and close it
3.Open your '../templates/{YOUR TEMPLATE}/view-link.tpl'
***find following code
{if $config.thumbshot}
<div class="preview"><img src="http://open.thumbshots.org/image.pxf?url={$link.url}" /></div>
{/if}
***replace it with
{if $config.thumbshot}
<div class="preview">{get_thumbshot_code aLink=$link.url}</div>
{/if}
*** save and close it.
Hi . jhon
how can we do it for 2.1.03
we not see this file ../util.php'
i see it in ../admin/util.php' and ../includes/util.php'
http://www.esyndicat.com/forum/about10191.html
Hi,
1- How To Display Individual Image for sites like this site ...
http://www.linkat.tv/PortalsAndSearchEngines/SearchEngines/
2- when I click the (( Link Details )) The webpage cannot be found ??
3- Page Rank: Not available
How to solve these problems
2.1.03
greeeb
06-15-2007, 08:51 AM
pleeeeeeeeease
Dave Baker
06-15-2007, 07:42 PM
greeeb,
I've answered about it here:
http://www.esyndicat.com/forum/about10191.html
dasser
08-12-2007, 10:58 AM
Hi
Instead of showing thumb nail of website is it possible to show a picture that has been uploaded by the customer?
Dave Baker
08-13-2007, 05:24 AM
Welcome to our forum dasser!
Yes, it possible.
If you want to display customer's image in "link detail" page, you just need to create a field with the "image" type via admin panel and mark "Listing Details" option during creating process.
If you want to display it in listings, please check this thread: http://www.esyndicat.com/forum/showthread.php?t=9917&highlight=image+in+link+display
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.