Myphotodiary images
this is a plugin for wordpress. Download: myphotodiary_images.zip (right click -> save as)
for you in sweden: myphotodiary.com is the same as bilddagboken.se
TODO:
- Add admin page
- add ajax for older images.
- full size for HD members on myphotodiary.com
Installation:
First you needs an api key from myphotodiary.com so login an go to http://myphotodiary.com/p/apiDoc.html
(or http://bilddagboken.se/p/apiDoc.html). create an application and copy your api key to myphotodiary_images.php.
You also must enter your username. the third option is limit. there you can choose how many images
to display when you are showing multiple images.
Uppload the plugin to your wp-content/plugins folder. then activate in plugin menu.
How to use:
For posts and widget:
Single image:
[mpd_images_single]
Attributes:
id=number (required)
thumb=0 or 1 (optional, 0 = big image, 1 = thumbnail, default is 1)
apikey=”" (optional, required if not specified in myphotodiary_images.php)
user=”" (optional, required if not specified in myphotodiary_images.php)
Usage:
[mpd_images_single id=xxxxxxx]
Gives a single image with specified id
Multiple Images:
[mpd_images]
Attributes:
limit= (optional, required if not specified in myphotodiary_images.php)
user=”" (optional, required if not specified in myphotodiary_images.php)
apikey=”" (optional, required if not specified in myphotodiary_images.php)
Usage:
[mpd_images]
gives images from user defined in the plugin file and the limit from plugin file
with the apikey defined in the plugin file.
[mpd_images limit=5]
gives 5 images from the defined user.
[mpd_images limit=5 user="ferenyl"]
gives 5 images from user ferenyl. you can use any valid username here.
Function for page templates:
you can call a funtion to show images from inside a page.
myphotodiary_images(< limit>, "< username>", "< apikey>")
options:
< limit> = limit the number of images (optional, required if not specified in myphotodiary_images.php)
< username> = username (optional, required if not specified in myphotodiary_images.php)
< apikey> = the api key (optional, required if not specified in myphotodiary_images.php)
usage:
myphotodiary_images()
gives you the number of images defined in plugin file from the defined user an apikey
myphotodiary_images(3)
gives you 3 images from the defined user.
myphotodiary_images(5, "ferenyl")
gives you 5 images from user ferenyl.
myphotodiary_images(5, "", "xxxapikeyxxx")
gives you 5 images from the defined user but with a different apikey.
Styling
open the css file named mpd in the plugin folder and follow the instructions.
Find any bugs or just need some help?
feel free to contact me at contact@madebyjohan.se. please write in swedish or english.
use a translator such as google translator or babbelfish if you think you need it.