News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Add Sitepreviews to posted urls

Started by Marook, December 26, 2007, 06:02:54 PM

Previous topic - Next topic

bderen

One of the best mods to date.  I've able to get it to work with other themes by just copying the images to images folder and adding that line to the index.template.php file

The only thing that still doesnt work is the little icon that appear in the default theme and it doesn't work with other theme (talking about the icon next to the link)
SMF Is Great! Did I mention it's FREE?

Marook

thx ;) you must add this line also to your template


<link rel="stylesheet" type="text/css" href="<http://www.path_to_your_smf.dir>/Themes/<yourtheme>/nopaste.css?fin11" />

SMF Rulez ;) | Meet me home ! | My Mods

Sabre™

Hi Marook..

Awesome mod buddy.

Im sticking with sitepreview10, as I have no problems with it.

Just a quick question, where would I look and change, to enlarge the image box?
Would like it to be atleast twice the size, so my users could actually read what is on the page displaying.    This way, they can decide whether they want to visit that site or not.

Thanks alot mate  :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


bderen

Quote from: FERNSIDE on January 25, 2008, 04:44:55 AM
Hi Marook..

Awesome mod buddy.

Im sticking with sitepreview10, as I have no problems with it.

Just a quick question, where would I look and change, to enlarge the image box?
Would like it to be atleast twice the size, so my users could actually read what is on the page displaying.    This way, they can decide whether they want to visit that site or not.

Thanks alot mate  :)

+1
SMF Is Great! Did I mention it's FREE?

bderen

Quote from: Marook on January 24, 2008, 09:41:29 PM
thx ;) you must add this line also to your template


<link rel="stylesheet" type="text/css" href="<http://www.path_to_your_smf.dir>/Themes/<yourtheme>/nopaste.css?fin11" />



where exactly does this go again?  file/location within?
SMF Is Great! Did I mention it's FREE?

Marook

Quote from: bderen on January 25, 2008, 09:04:59 AM
where exactly does this go again?  file/location within?

Index.template.php somewhere between the <head> </head> tags

@ Fernside : first you need to replace the bubble-images with larger ones. Then you open Index.template.php and scroll down, you will find a function called sitepreview(). You need to alter the urls by changing the w & h parameter. After that you need to open sitepreviews.js and change also the width/height parameter in line 128/129. Thats it...
SMF Rulez ;) | Meet me home ! | My Mods

Chriss Cohn

Wow a real cool mod  ;D
Kepp up the good work  :)

perro88

hi again and sorry for bothering again :P. Whould be hard to create for example a preview2 class that works as the other preview class but without that link image?(it's because I wanna add that class for example on some links as website icon on memberlist, dysplay.template,msn,icq etc and well on small icons with links). thanks

Marook

That's easy but there is much work to do... the second class is done with a few lines of css+java code... but i've to alter the display.template.php and change all links to be used with the new previewclass... maybe in the next version. You can remove the link image if you want by commenting-out the preview-class in the css file...
SMF Rulez ;) | Meet me home ! | My Mods

perro88

#49
Quote from: Marook on January 27, 2008, 01:08:22 PM
That's easy but there is much work to do... the second class is done with a few lines of css+java code... but i've to alter the display.template.php and change all links to be used with the new previewclass... maybe in the next version. You can remove the link image if you want by commenting-out the preview-class in the css file...
thanks , well it's not really that usefull, probably theres  a lot of better things to implement

Marook

SMF Rulez ;) | Meet me home ! | My Mods

topdog2k

#51
Quote from: Marook on January 25, 2008, 06:10:35 PM

@ Fernside : first you need to replace the bubble-images with larger ones. Then you open Index.template.php and scroll down, you will find a function called sitepreview(). You need to alter the urls by changing the w & h parameter. After that you need to open sitepreviews.js and change also the width/height parameter in line 128/129. Thats it...


Question...I am not sure how to change the width and height parameters for the url's on the function sitepreview() in the index.template.php file.

$service_urls = array('http://www.artviper.net/screenshots/screener.php?url=',
                        'http://images.websnapr.com/?size=S&url=',
                        'http://shots.snap.com/preview/?url=',
                        'http://www.iwebtool2.com/img/?domain=',
                        'http://snapr.seekxl.de/?size=s&url=',
                        'http://www.thumbalizr.com/api/?width=202&url='



The other question...I use the helios theme and made the required changes to the index.template.php file for that theme and it works great, but when I change the bubble colour or the service url in my admin panel, it saves the settings, but it doesn't actually apply the changes.


Thanks for the help!

Marook

not every serviceprovider will provide an option to change the thumbnail size...sometimes you must add a w & h parameter like this :
hxxp://www.thumbnailer.net/?w=300&h=400&url=www.google.com
SMF Rulez ;) | Meet me home ! | My Mods

juanpons14

if i wan that the checkbox in the profile start as activate how can I do it??

Descarga deirecta de series, películas, música y mucho más! en
Planetdescargas.com

 

Marook

install the latest version...there the option is set on by default.
SMF Rulez ;) | Meet me home ! | My Mods

jurdim

hy love this mod
i installed it last week and it worked fine til tonight now i only get thumbnail has been queued or unable to capture screenshot

What is the standard provider set for the thumbnails.

Gr Jurgen

Organic

Thank you for this mod. I loved it for the first 12 hours or so, then it stopped working last night. I'm getting the 'Unable to capture screenshot' message. So I went to their site & registered my site, thinking that may help & I was sent a developer key & told to "Please always include this key when requesting images from hxxp:websnapr.com [nonactive]."

Could this be why it's stopped working for me & Jurdim around the same time? Has Websnapr decided to crack down on us or something? Is there anything we can do?



jurdim

Some  site previews are working again others in the same page are stil showing 'Unable to capture screenshot'

take a look here in my forum: http://www.khvinfo.nl/smf/index.php?topic=21.0 [nofollow]

Gr Jurgen

Trashcan

installed and works great.  love the mod.  thanks

Organic

Yep, mine have finally come back as well.

Advertisement: