Pixelpost

Authentic Photoblog Flavour

JSON Output for Pixelpost v1.1

 
Download (1.6 KB)

Developer Description

An addon to create a JSON object from your Pixlepost photoblog. The JSON object will allow you to display your pixelpost photos outside of the pixelpost framework. Access the object using http://yourdomain/index.php?z=json

Additional Parameters:

  • number - number of images in JSON object.
  • category - category id to pull images from.
  • tag - tag to pull images from.
  • order - display random photos

Example URLs:

  • http://yourdomain/index.php?z=json&number=10&category=4
  • http://yourdomain/index.php?z=json&number=20&tag=portrait
  • http://yourdomain/index.php?z=json&number=5&order=random

Examples

Version History

  • 1.1 - added random order
  • 1.0 Initial release

Older Versions

Read All 4 Reviews » Write A Review

  1. Perfect 5
    erikwillemse 4 Months Ago Report as Spam

    Thx a lot for this addon... I have changed the following line:

    echo 'jsonPixelpostFeed({
    

    into this:

    if($_GET['jsoncallback']) {
        $callback = $_GET['jsoncallback'];
    } else {
        $callback = "jsonPixelpostFeed";
    }
    
    
    echo $callback.'({
    

    in order to have it work with jquery as follows:

    $.getJSON("http://mypixelposturl/index.php?z=json&number=4&jsoncallback=?",function(data) {}

    I hope this is useful for others.

  2. Perfect 5
    Clemens 8 Months Ago Report as Spam

    Super! Thanks.

  3. Perfect 5
    klimin_a_s 9 Months Ago Report as Spam

    Great! I would like also to see a bilingual feature in next versions of this addon!