Results 1 to 5 of 5

Thread: i want to display thumbnail with gfeedfetcher

  1. #1
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default i want to display thumbnail with gfeedfetcher

    hi, i want to display thumbnail with gfeedfetcher but i cant

    Script url: http://www.dynamicdrive.com/dynamici...sdisplayer.htm

    i want to display thumbnail from themeforest.net by "gfeedfetcher" script, but i cant fix this problem .
    i want show thumbnail and title only, not desc or date ...
    please help me .

    thanks

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    What's the URL to the actual RSS feed you want to show?
    DD Admin

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I just looked at the first one:

    themeforest.net/feeds/new-site-templates-slash-creative-items.atom

    There are no thumbnails. There are some images in some of the long descriptions.

    Are you sure the feed you want has thumbnails?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1 View Post
    I just looked at the first one:
    themeforest.net/feeds/new-site-templates-slash-creative-items.atom
    There are no thumbnails. There are some images in some of the long descriptions.
    Are you sure the feed you want has thumbnails?
    in this url has thumbnail, title, url and... , do can to display thumbnail and title only from this url:
    marketplace.envato.com/api/edge/new-files:themeforest,site-templates.json
    marketplace.envato.com/api/documentation
    Last edited by jscheuer1; 10-01-2012 at 07:07 PM. Reason: Format

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Those are not rss feeds, they're json files. If you have PHP you can probably import and parse them fairly easily. Using javascript and jQuery, a similar thing can be done, except you still need need PHP or another server side language to get the file. At that point it would probably be easier to parse it with PHP or that other language as well.

    Unless Google or some other large host has such a third party service, you would have to do it yourself if your host has PHP.

    This:

    https://developers.google.com/gdata/docs/json

    may or may not be able to be adapted to grab those files so that javascript on your end could interpret them.

    But, as I say, with PHP (requires a PHP enabled server that's allowed to fetch files from other domains) it's pretty easy, here's a basic example, save as newfiles.php:

    PHP Code:
    <!DOCTYPE html>
    <html>
    <head>
    <title>New Files</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style type="text/css">
    .item {
        border: 1px solid black;
        margin: 3px;
        float: left;
        min-width: 225px;
        font: normal 95% sans-serif;
        padding: 2px;
        background-color: lightyellow;
    }
    </style>
    </head>
    <body>
    <pre><?php
    $rawjson 
    file_get_contents('http://marketplace.envato.com/api/edge/new-files:themeforest,site-templates.json');
    $arrjson json_decode($rawjsontrue);
    //print_r($arrjson['new-files'][0]); // <-- this line may be uncommented to see the structure of the first entry
    ?></pre>
    <?php
    foreach($arrjson['new-files'] as $newfile){
        echo 
    "<div class='item'><a target='_blank' href='{$newfile['url']}'>{$newfile['item']}:<br><img src='{$newfile['thumbnail']}'></a></div>";
    }
    ?>
    </body>
    </html>
    Last edited by jscheuer1; 10-02-2012 at 05:38 AM. Reason: add PHP code
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. gfeedfetcher tweak
    By agoulet in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 11-20-2011, 03:37 PM
  2. gfeedfetcher description
    By danskkr in forum Dynamic Drive scripts help
    Replies: 7
    Last Post: 05-16-2011, 08:59 AM
  3. gFeedFetcher display problem
    By gar in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 04-11-2011, 05:49 PM
  4. A question about gfeedfetcher
    By danskkr in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 03-28-2011, 11:47 PM
  5. RSS Display Box image thumbnail
    By CEDC in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-23-2011, 02:21 PM

Bookmarks

Posting Permissions

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