« Real Life Red Alert Telsa Coilrebateheaven.com is not a SCAM and FRAUD »

photoplug plugin for b2evolution

Technical, PHP, 332 words   English (AU) Bookmark and Share

Link: /media/blogs/brinley/_photoplug.plugin.zip

I’ve been trying to get my missus to update her blog but one of the features that she wanted as a way of embedding slideshows and photo galleries stuff.

So I ended up writing a simple one and named it photoplug.
Currently it only supports flickr and picasa.
What it does is it extends the renderer plugin to convert flickr and picasa tags into its respective embedded slideshows.

...

You can either use the admin toolbar for a prompt aided inserting of the slideshow’s code or follow the instructions below to find the tags for inserting the code.

For picasa slide shows:

The above slideshow was rendered with the following tags

[picasa]brinley:5123431352497584897:400x267[/picasa]

The break down of the tags are as follows,

[picasa]iUserId:iAlbumId:iSize[/picasa]

  • iUserId is the picasa username of the owner of the album
  • iAlbumId is the album id of the album
  • iSize is the dimensions of the album. Google recommends 800x533, 600x400, 400x267, 288x192, 144x96

For flickr slide shows;

The above slideshow was rendered with the following tags

[flickr]61353731@N00: :200x200:72157602771535784[/flickr]

Note the tag parameter is a blank space. Seems like if its blank the str_replace fails.

The break down of the tags are as follows,

[flickr]iUserId:sTag:iSize:iSetId[/flickr]

Where

  • iUserId is the flickr user id and not the username. You can convert a flickr username to a user id at http://idgettr.com
    Perhaps I could incorporate an auto conversion in the next release.
  • sTag is the descriptive tag of the images
  • iSize is the dimensions of the slideshow, the default is 500x500
  • iSetId is the id of the photo set

There are still a couple more parameters available to configure but these are the ones I required and find useful. If you have a parameter/setting/feature that is worth adding to this plugin, drop me an email or comment and I will get to it as soon as I can.

Trackback address for this post

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

2 comments

Comment from: honhac [Visitor] Email
honhacHi Brin,

Do you have any plugin for embedding single photo from picasa? Just like Photo Dropped do for embedding photo from Flickr.

Tks
26/06/09 @ 16:13
Comment from: Brinley Ang [Member] Email
Brinley AngIf its just a single photo, you're probably better of inserting it as normal img tag. You can find the link on your picasa web gallery by selecting the photo and clicking on "link to this photo"
06/08/09 @ 12:47

Leave a comment


Your email address will not be revealed on this site.
(Line breaks become <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)
February 2012
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29        
Brinley Ang

Brinley Ang is a sysadmin, web dev, coder, geek boy, jedi knight fragger, caffine addict, deaf meloncholic and rockstar wannabe. Listens to the sex pistols and a wide assortment of heavy metal.

Make payments with PayPal - it's fast, free and secure!
Search
home | portfolio | blog | links | contact
© 2012 - Brinley Ang
Valid xhtml