Elxis CMS Forum

Support => General => Topic started by: rentasite on September 28, 2008, 23:38:17

Title: Question about SCREENSHOTs in Web Link Manager
Post by: rentasite on September 28, 2008, 23:38:17

Hi,

The screenshots taken through Web link manager, are 120x90 pixels - when using the "Load new image from Internet" option.

How and from where can i change that size for the screenshots? As i want them quite bigger :)


Thanks in advance
Spiros
Title: Re: Question about SCREENSHOTs in Web Link Manager
Post by: rentasite on September 29, 2008, 10:34:00

?
Title: Re: Question about SCREENSHOTs in Web Link Manager
Post by: datahell on September 29, 2008, 13:21:36
Modify components/com_weblinks/weblinks.html.php

Somewhere in the middle of the file you will find something like this:

echo $linkStart."<img src=\"images/screenshots/".$row->screenshot."\" class=\"screenshot\" width=\"120\" height=\"90\" alt=\"".$row->title."\" title=\"".$row->title."\" /></a>"._LEND;

Change it to what ever you wish (I recommend you to keep aspect ratio)
Title: Re: Question about SCREENSHOTs in Web Link Manager
Post by: rentasite on September 29, 2008, 13:30:40

Thank you VERY MUCH  :D
Title: Re: Question about SCREENSHOTs in Web Link Manager
Post by: rentasite on October 15, 2008, 02:08:49


OK. I changed it to width 170 and height 140. But it doesn't show correct. If you right click on the screenshot u will see that that something is not been changed (see attachment). The dimensions are not changed!!!!

Also, i found that i should changed the same values in /administrator/components/com_weblinks/admin.weblinks.html.php

document.write('<img src=' + jsimg + ' name="imagelib" width="170" height="140" border="0" alt="<?php echo $adminLanguage->A_PREVIEW; ?>" />');

But still the images don't show correct. Is there somewhere else... something else i must change?  ???

[attachment deleted by admin]
Title: Re: Question about SCREENSHOTs in Web Link Manager
Post by: datahell on October 15, 2008, 08:05:03
Elxis get screenshots from out sources. The screen shots are getting by Elxis ready in these dimensions. Elxis does not resizes them.
Title: Re: Question about SCREENSHOTs in Web Link Manager
Post by: rentasite on October 15, 2008, 12:52:11

So actually this means i cannot show, in noway, the screenshots more than 120x90pixels.  :-\

Only by using printscreen and the "Use a local image" option.

Right?
Title: Re: Question about SCREENSHOTs in Web Link Manager
Post by: datahell on October 15, 2008, 13:51:10
Yes, and you will also have to change component's html to resize screenshots image and height to what ever value you wish.
Title: Re: Question about SCREENSHOTs in Web Link Manager
Post by: rentasite on October 15, 2008, 16:40:19
Ok, here is something i found while i was searching the web for something to help me take fast screenshots from web sites.

WebShot
Allows you to take screenshots of web pages and save them as full sized images or thumbnails. Screenshots images can be output in the JPG, GIF, PNG, or BMP formats.

You can download it from here: http://www.websitescreenshots.com

It will help those who use the "use a local image" option in Elxis Administration.  :) :)
Title: Re: Question about SCREENSHOTs in Web Link Manager
Post by: xmanhattan on October 15, 2008, 17:25:45
Or you can use paint shop pro or photoshop to capture an image from your system and then resize it to whatever size you want.  This is also useful for webpage displays.
Title: Re: Question about SCREENSHOTs in Web Link Manager
Post by: ks-net on October 15, 2008, 21:05:42
wait....

how big do you want the images to be?

are you interested in dynamic image creation-?

in 2006.4 i hacked the files that  datahell mentioned above and added in my site dynamic(in away) not local stored screenshots in order to avoid edit-upload
from websnapr.com  202px x 152px

try or live capture any site's screenshot on their site:
http://www.websnapr.com/


more fast if you dont want to dynamically request  images from other servers,and want to manage size,  is a plugin for firefox for website capture:
https://addons.mozilla.org/el/firefox/addon/5648
Title: Re: Question about SCREENSHOTs in Web Link Manager
Post by: rentasite on October 15, 2008, 22:05:24

I tried websnapr.com before my previous post, but it never returned me a screenshot. Don't know why. Kept me too long waiting.

As for the addon... seems very useful.  :) Thanks