Results 1 to 5 of 5

Thread: Thumbnail Problems -- $5 PayPal for Help!

  1. #1
    New Pligger tulumbo's Avatar
    Joined
    Apr 2009
    Posts
    3

    Question Thumbnail Problems -- $5 PayPal for Help!

    Hey Pliggers,

    I'm looking for some help here. Here's my deal:

    I'm starting a wallpaper site based on pligg (WallVote.com). I don't want the thumbnails displayed to be screenshots of the website, i want them to be thumbnails of the actual wallpapers. I tried the image upload module and I couldn't get that to work. Since I am the only one who will be adding the wallpapers, I have decided that I will upload the images manually via FTP.


    This is the original code in link_summary.tpl
    {/if}
    <img src="http://open.thumbshots.org/image.pxf?url={$url_short}" style="float:left; margin-left:65px;margin-right:15px;padding-top:0px;border:1px solid black;" alt="{$url_short}" height="80" width="110" />
    I want to modify this so that it directs to the thumbnails in my images folder so I tried this:

    {/if}
    <img src="images/{$url_short}.gif" style="float:left; margin-left:65px;margin-right:15px;padding-top:0px;border:1px solid black;" alt="{$url_short}" height="80" width="110" />
    But then i realized this wouldn't work, because gif filenames can't include "/", "\", or ":".

    Now I'm stuck. I'm not sure where I can edit {$url_short} and if I change it to not include the "http://" will that screw up other things on my website? By the way, I am using pligg version 9.8.0

    I will pay $5 via paypal to the person who figures this out for me. Thanks!

  2. #2
    New Pligger jaunty's Avatar
    Joined
    May 2009
    Posts
    1

    Can you use title instead of url ?

    One solution is you may use the title name instead of the url as filename.

    replace your code
    {/if}
    <img src="images/{$url_short}.gif" style="float:left; margin-left:65px;margin-right:15px;padding-top:0px;border:1px solid black;" alt="{$url_short}" height="80" width="110" />

    to
    {/if}
    <img src="images/{$title_short}.gif" style="float:left; margin-left:65px;margin-right:15px;padding-top:0px;border:1px solid black;" alt="{$url_short}" height="80" width="110" />

    The idea is to use title name as file name.

  3. #3
    Pligg Developer/Coder/Designer ChuckRoast's Avatar
    Joined
    Dec 2005
    Location
    Pliggville USA
    Posts
    9,118
    You could also use the {$link_id} number so your images would be
    1.gif
    2.gif
    3.gif
    and so on
    Help Keep ChuckRoast Home
    Today's Pligg Blog Post


  4. #4
    New Pligger tulumbo's Avatar
    Joined
    Apr 2009
    Posts
    3
    thanks for the responses!

    how do I know what the link id is for each story? Is there an easy way to view this?

  5. #5
    Pligg Developer/Coder/Designer ChuckRoast's Avatar
    Joined
    Dec 2005
    Location
    Pliggville USA
    Posts
    9,118
    Quote Originally Posted by tulumbo View Post
    thanks for the responses!

    how do I know what the link id is for each story? Is there an easy way to view this?
    As an admin click on the "admin links" next to any story, put your mouse over "change title or description" and you'll see what the story ID number is.
    Help Keep ChuckRoast Home
    Today's Pligg Blog Post


Similar Threads

  1. thumbnail plus
    By pat2011 in forum Questions & Comments
    Replies: 5
    Last Post: 07-16-2012, 02:32 PM
  2. Thumbnail Plus - thumbnail resize / border color
    By share in forum Questions & Comments
    Replies: 6
    Last Post: 04-21-2011, 09:11 AM
  3. Canīt pay with PayPal
    By Bassline in forum Questions & Comments
    Replies: 8
    Last Post: 01-30-2011, 08:26 AM
  4. Help with PayPal and Pligg Pro
    By Fist in forum Questions & Comments
    Replies: 0
    Last Post: 12-26-2007, 02:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •