Results 1 to 10 of 10
  1. #1
    New Pligger fhelik's Avatar
    Joined
    Dec 2007
    Posts
    26

    Exclamation How to get the correct image-thumbnail from websnapr

    I have a question, when guetting the images we use this:


    http://images.websnapr.com/?url={$url_short}&size=T

    but that {$url_short} is just the domain url of the news site, and not the complete URL to get to the news.

    so for example:
    YouTube - Bad Day at the office! (COMPILATION VIDEO)

    and i will get the image for

    YouTube - Broadcast Yourself. and not to the YouTube - Bad Day at the office! (COMPILATION VIDEO)

    anybody know for what I can replace that to get the correct image

  2. #2
    Pligg Founder Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,062
    Site
    http://pligg.com/demo/
    I believe websnapr only provides you with the root url image.
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  3. #3
    Casual Pligger joehunk's Avatar
    Joined
    Oct 2007
    Posts
    66
    Quote Originally Posted by fhelik View Post
    I have a question, when guetting the images we use this:


    http://images.websnapr.com/?url={$url_short}&size=T

    but that {$url_short} is just the domain url of the news site, and not the complete URL to get to the news.

    so for example:
    YouTube - Bad Day at the office! (COMPILATION VIDEO)

    and i will get the image for

    YouTube - Broadcast Yourself. and not to the YouTube - Bad Day at the office! (COMPILATION VIDEO)

    anybody know for what I can replace that to get the correct image
    Websnapr only provide the domain name image (homepage), I think. But check with the website, I am not really sure if you can customize it from there. Check it out, maybe they are charging an extra $$ on doing this.

    -----------------------------------------
    my mini-pligg site: http://www.ebenta.com

  4. #4
    New Pligger lochoe's Avatar
    Joined
    Aug 2008
    Posts
    24
    $url_short just show the root url of the submit site right?

    what is $story_url , ?? erm... also $url ..

    please anyone to know how to get websnapr from the real url.. not only the main root url..

    when i submit friendster ur, it just shows friendster main page, no friendster profile for the url.. damm.

    after i try to replce some url, playing2 with the script.. now i get this:
    Parse error: syntax error, unexpected T_ENDIF in /home/ringgitt/public_html/awekz/class.template.php(745) : eval()'d code on line 435

    aiyaaa... so much trouble.. i think i need to reinstall fresh copy again..

    this could be problem from libs/link.php ... $smarty function.. cannot call $url

    i try make another function

    function copy($url) {
    $url_long=$url;
    return $url_long;
    }

    and call $url_long... but useless :-(.. please help

  5. #5
    Constant Pligger Andtony's Avatar
    Joined
    Feb 2007
    Posts
    226
    Can't help you with your error. Try to replace all files that you modified maybe it'll fix it.

    You can try this instead Websnappr. Don't know how good the service is but it seems to work fine. As you see I'm using $enc_url instead $url_short. $enc_url is the address that is given when the story is submitted.
    Code:
    	  <img src="http://open.thumbshots.org/image.pxf?url={$enc_url}" />

  6. #6
    New Pligger lochoe's Avatar
    Joined
    Aug 2008
    Posts
    24
    i get it already... it is $enc_url , :-) , i'm looking 1 night, but useless, u just make my day andtony.. how u find it btw??

  7. #7
    Pligg Developer chuckroast's Avatar
    Joined
    Jun 2006
    Posts
    5,478
    Quote Originally Posted by lochoe View Post
    i get it already... it is $enc_url , :-) , i'm looking 1 night, but useless, u just make my day andtony.. how u find it btw??

    The thumbs are called from /templates/yourtemplate/link_summary.tpl around line 74
    <img src="http://images.websnapr.com/?url={$url_short}&size=T" style="float:right; padding-left:10px;padding-top:35px;">

  8. #8
    New Pligger neerajn's Avatar
    Joined
    Aug 2008
    Posts
    3

    need help on error "Parse error: syntax error, unexpected T_ENDIF in /home/ringgitt/p

    hey locohe, after spending at least 6 hrs im still not able to figure out the reason for the eorror that i am getting on my site www.topinews.com

    the erros is exactly similar to "Parse error: syntax error, unexpected T_ENDIF in /home/ringgitt/public_html/awekz/class.template.php(745) : eval()'d code on line 435
    "

    the one that you were getting on ur site.... were u able to get to any solution for this or any clue on what might be causing this... my site was working all fine and suddenly it broke, i dont remember doing anythig that wld have caused this error, any help will be HUGELY appreciated

    Quote Originally Posted by lochoe View Post
    $url_short just show the root url of the submit site right?

    what is $story_url , ?? erm... also $url ..

    please anyone to know how to get websnapr from the real url.. not only the main root url..

    when i submit friendster ur, it just shows friendster main page, no friendster profile for the url.. damm.

    after i try to replce some url, playing2 with the script.. now i get this:
    Parse error: syntax error, unexpected T_ENDIF in /home/ringgitt/public_html/awekz/class.template.php(745) : eval()'d code on line 435

    aiyaaa... so much trouble.. i think i need to reinstall fresh copy again..

    this could be problem from libs/link.php ... $smarty function.. cannot call $url

    i try make another function

    function copy($url) {
    $url_long=$url;
    return $url_long;
    }

    and call $url_long... but useless :-(.. please help

  9. #9
    New Pligger pressmar91's Avatar
    Joined
    Sep 2008
    Posts
    2
    For anyone who wants to remove the websnapr thumbnails and change to a different free service, this is the best option that I have seen. Thanks Andtony!

    Instructions:

    in /yget/link_summary.tpl


    REPLACE:
    <img src="http://images.websnapr.com/?url={$url_short}&size=T"
    WITH:
    <img src="http://open.thumbshots.org/image.pxf?url={$enc_url}"

  10. #10
    New Pligger lochoe's Avatar
    Joined
    Aug 2008
    Posts
    24
    Quote Originally Posted by neerajn View Post
    hey locohe, after spending at least 6 hrs im still not able to figure out the reason for the eorror that i am getting on my site TopINews!! / Published /

    the erros is exactly similar to "Parse error: syntax error, unexpected T_ENDIF in /home/ringgitt/public_html/awekz/class.template.php(745) : eval()'d code on line 435
    "

    the one that you were getting on ur site.... were u able to get to any solution for this or any clue on what might be causing this... my site was working all fine and suddenly it broke, i dont remember doing anythig that wld have caused this error, any help will be HUGELY appreciated
    I'm sorry, it could be your libs/link.php

    if you done nothing to your site (i mean no huge customization)
    try to restore back the files using fresh link.php..from fresh pligg script..

    i think u must edit some smarty fuction like i did.. my prob already settle.. i just remove my dumb function in the file and edit story***.tpl thats it..

    let me know if you still face the problem..

Similar Threads

  1. Thumbnail Plus and websnapr
    By malavision in forum Questions & Comments
    Replies: 12
    Last Post: 07-27-2011, 07:18 AM
  2. Websnapr Thumbnail Module
    By ehawk in forum Questions & Comments
    Replies: 1
    Last Post: 07-06-2011, 09:20 AM
  3. How to add Websnapr thumbnail to published and upcoming pages?
    By razrjay in forum Questions & Comments
    Replies: 7
    Last Post: 04-24-2009, 05:19 AM
  4. Replace the websnapr image to the headline
    By fan007 in forum Questions & Comments
    Replies: 1
    Last Post: 05-25-2008, 09:52 AM
  5. [SOLVED] Add Websnapr thumbnail to published and upcoming pages?
    By AshMCairo in forum Questions & Comments
    Replies: 8
    Last Post: 08-13-2007, 03:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting