Howto: Gallery2 pics in sidebar

Posted on

It is actually a bit of a story, and it began with upgrading my installation of gallery from version 1 to version 2. Gone in version 2, at the time, was syndication via rss of pictures. That's originally how I had the pictures published to the right side of my blog. There's an RSS plugin for Gallery2, which I did get to install, but it didn't completely work since it sends the images as enclosures, not just links to the image.

That led me to find other ways to get pictures from Gallery onto a remote site. Here a discussion form thread on calling random image code, but its by fetching html. The types of images to show are in a the pipe-delimted list can be "randomImage;" or "recentImage"e;. IF you list multiple then it'll get, for example: 3 random pictures as below:

  @readfile('http://www.los-merida.com/gallery/main.php?g2_view=imageblock.External&g2_blocks=randomImage|randomImage|randomImage&g2_show=none');

You'll want to cache the output so that the pictures rotate every couple hours, not with every hit to page you have them on. I have some sample PHP code for caching here.

Tags: Oscarm.org, PHP

─── ✧ ─── ✦ ─── ✧ ───

Evo Morales mobilized by US incompetence?

Posted on

Another examples of US actions that backfired included threatening to pull all aid to Bolivia, four years ago.

It has happened before. During the 2002 Bolivian elections, when Morales was a first-time candidate little known outside of the country, the U.S. ambassador at the time, Manuel Rocha, stated publicly that if Morales was elected, the U.S. would have to reconsider all future aid. Most observers, and Morales, too, who speaks of the episode with a combination of amusement and satisfaction, say that it got him and MAS at least 20 percent more votes.

Tags: Bolivia

─── ✧ ─── ✦ ─── ✧ ───

Access United

Posted on

DC united have launched Access United, a multimedia offering with behind-the-scenes goodies. It's a window media video, so if you're not using Windows, expect to jump through some hoops to get it to play, if you can at all.

 

Tags: Soccer, Windows

─── ✧ ─── ✦ ─── ✧ ───