Not signed in (Sign In)
  1.  
    Is the process makes the thumbnails in the "Community" area predictable and repeatable? If we could know in advace what the URL would be, someone could make a Wordpress widget that would allow the thumbnail of the current image to be displayed (with a link) in a Wordpress blog.

    Let me clarify by example. I have another photo blog -- it runs on Pixelpost and is hosted on my own domain. Pixelpost automatically generates thumbnails (much like Aminus3), and there is a widget available that lets me put a a thumbnail on my Wordpress blog that says "Now on Photoblog" (that text is configurable). The point is, every time I refresh the Wordpress blog, the widget fetches the most recent Pixelpost thumbnail and sticks it in the sidebar of the Wordpress blog. It's formatted as a link back to the image on Pixelpost.

    You can see this by going to my Wordpress blog: http://www.blork.org/blorkblog/ Look on the sidebar on the right and you'll see the thumbnail (under "Now on Photoblog"). Click the thumbnail and you go to the photoblog.

    I would LOVE to be able to add a thumbnail to my Aminus3 photoblog too. I'll bet this wouldn't even be hard to do, since most of the stuff is already in place (automatic thumbnail generation, etc.). Any chance we can get this, so my two photoblogs can get equal billing?
    •  
      CommentAuthorjason (Admin)
    • CommentTimeSep 28th 2009
     
    Interesting idea Ed

    Does this look like the plugin you are using?
    http://www.danielfreedman.co.uk/2009/05/anatomy-of-my-wordpress-plugin/

    It appears that this plugin needs to access the PixelPost database (by loading your PixelPost config file) and does the work behind the scenes to calculate the location to create the image link.

    I suppose to do something like this for Am3, someone would have to create the WordPress plugin and we'd have to provide a reliable link where your thumbnail from your most recent images is stored (like http://mysite.aminus3.com/current/thumb/) which directs to the JPG

    Another idea might be to do something with your RSS feed - for example, you can create a widget using a sight like WidgetBox which takes an RSS feed as input and can be used to create an Aminus3 "image of the day" type of thing and link that into your wordpress blog.

    I'd like to hear from some other folks if they think this type of widget would be useful - and encourage your or others to checkout WidgetBox.com and try to get some kind of widget created up there to use as an example.

    cheers,
    Jason
  2.  
    Jason, I will check out WidgetBox.

    The plugin I'm using for Pixelpost is called "Pixelpost Latest and random." (You can also use it to show a random thumbnail.)
    http://www.raminia.com/weblog/wp-hacks/

    I too would like it if others chimed in. I think that anyone who has a Wordpress blog as well as their Am3 blog would find it useful, as it's nice to tie them together.
    •  
      CommentAuthorbsurprised
    • CommentTimeOct 16th 2009
     
    Ed

    You can use a wordpress plugin called RSSPhoto (http://wordpress.org/extend/plugins/rssphoto/) and use your photoblog RSS feed in the plugin widget.

    Good luck
    Behrooz
    •  
      CommentAuthorbsurprised
    • CommentTimeOct 21st 2009 edited
     
    I'm afraid I was too general in my last post. Here's more details and how to set it up:
    Notice: It needs as little bit of WP and PHP (very basic).

    Step 1: Install RSSPhoto (http://wordpress.org/extend/plugins/rssphoto/)
    Step 2: Install SimplePie Core (http://simplepie.org/wiki/plugins/wordpress/simplepie_core). This is used to retrieve feeds.
    Step 3: Install SimplePie Plugin for Wordpress (http://simplepie.org/wiki/plugins/wordpress/simplepie_plugin_for_wordpress) for better management of the SimplePie functions.
    Step 4: Remember to create a folder called "wp-contenct\cache" if you have enabled the SimplePie image caching (default = ON).
    Step 5: This is the trick to load AM3 images as a feed. From my experience, AM3 feeds are a little bit unusual and some feed readers does not load them properly, so we do this hack in the RSSPhoto plugin to add the ability.
    - Open the Plugin Editor page and change the combo at the top of the page to load the RSSPhoto plugin pages.
    - Click on rssphoto/RSSPhoto.class.php page to edit it.
    - Find this function: function get_img_urls($arr,$sel,$num,$field)
    It's at the end of the page.
    Change the function code to this one:

    function get_img_urls($arr,$sel,$num,$field)
    {
    switch($field)
    {
    case 'Content':
    preg_match_all('/img([^>]*)src="([^"]*)"/i', $arr->get_content(), $m);
    if(count($m[2])>0)
    {
    $img_idxs = $this->select_indices($m[2],$sel,$num);
    foreach($img_idxs as $img_idx)
    $urls[count($urls)] = htmlspecialchars_decode($m[2][$img_idx]);
    }
    break;
    case 'Description':
    preg_match_all('/img([^>]*)src="([^"]*)"/i', $arr->get_description(), $m);
    if(count($m[2])>0)
    {
    $img_idxs = $this->select_indices($m[2],$sel,$num);
    foreach($img_idxs as $img_idx)
    $urls[count($urls)] = htmlspecialchars_decode($m[2][$img_idx]);
    }
    break;
    case 'Enclosures':
    $img_idxs = $this->select_indices($arr,$sel,$num);
    foreach($img_idxs as $idx)
    {
    if(!strcmp($arr[$idx]->get_type(),'image/jpeg'))
    $urls[count($urls)] = htmlspecialchars_decode($arr[$idx]->get_link());
    else
    $urls[count($urls)] = htmlspecialchars_decode($arr[$idx]->get_thumbnail());
    }
    break;
    }
    return $urls;
    }


    Be careful: the last } on the page is the closing for the Class. Don't select that one.

    Step 6: Add the RSSPhoto widget to your theme, configure it to load whatever number of images you want it to load, and enjoy.
  3.  
    bsurprised, that's excellent, thanks! Now I just need to find the time to parse through that and do the work. I also need to decide if I want to commit -- generally speaking I'm a bit tired of WP maintenance, so I try to keep it simple. I'm gonna give this a good look over the weekend...