PDA

View Full Version : Mini Mods - EXIF Info for Album Photos


MoMan
04-29-2010, 10:00 PM
This is a simple PHP script / vBulletin plugin that displays EXIF information for photos uploaded to the vBulletin albums system, as well as in social groups.

Please do not redistribute this elsewhere, and do leave my contact and copyright information intact at the top of the plugin source. There are no visible copyright notices in the output. The album exif modification is copyright 2010 by Adam Oest.

REQUIREMENTS
-PHP permission to run shell_exec (safe mode off)
-album pictures must be stored in the filesystem
-jhead must be installed on your server

INSTALLATION/UPGRADE INSTRUCTIONS:
1. Make sure you have jhead installed (get it from http://www.sentex.net/~mwandel/jhead/)
2. Download the attached vBulletin product and upload it through your admin cp
3. Configure the two settings in vbulletin options > album picture and social group EXIF
4. Open the album_pictureview template and add $exifdata right above $picturecomment_commentarea, or wherever else you want it to appear
5. Open the group_picture template and add $exifdata directly after $pictureinfo[username]</a></div>, or wherever else you want it to appear
6. You should be all set. Enjoy!

Demo at http://www.pentaxforums.com/forums/members/jewelltrail-albums-album-one-picture3853-shot4828.html

Version history:
1.0 - Initial Release
1.01 - Converted to plugin; output formatting improvements
1.02 - Further output formatting improvements
1.03 - Converted to product; further formatting improvements
1.04 - HTML validation bugfix
1.05 - All settings moved to vBulletin options, and functionality for social groups added
1.06 - New documentation

Screenshot:

MoMan
04-30-2010, 06:05 AM
Attached locally- should be visible now.

MagicThemeParks
04-30-2010, 10:41 AM
Very cool! :up:

Thanks for sharing this. How can we make this work with the popular PhotoPlog mod (https://vborg.vbsupport.ru/showthread.php?t=101368)?

barroca
04-30-2010, 03:46 PM
hello
works with vB 4.x?
thanks

MoMan
04-30-2010, 06:25 PM
Exif info is built-in to photoplog (pro). If you already have that running, my script can run off of photoplog's admincp setting that provides the path to the jhead program.

If you're using the free version of photoplog, you'd have to make some small changes to the use my script with it. First, add it to the photoplog image view plugin, second, add it to the photoplog viewfile template, and third, you'd have to change the line in my program that determines the image location. I'm not going to support this, but you're more than welcome to try on your own.

I don't see why this wouldn't work with vB4.

MoMan
05-01-2010, 10:15 PM
New version- 1.01 - converted it to a plugin and improved display. Enjoy!

MoMan
05-02-2010, 09:42 PM
New version - 1.02 - formatting improvements to file date, size, and resolution

MoMan
05-17-2010, 06:17 PM
New version - 1.03 - converted to product

MoMan
05-19-2010, 08:36 AM
New version - 1.04 - bugfix

mertiliuss
05-19-2010, 03:42 PM
sorry, but I install it shows an error Phats, as configured that?

Thanks

MoMan
05-24-2010, 05:33 AM
Your jhead path must be incorrect. Please download the latest version, and then go to vBulletin options and add the correct value.

New version released: 1.05
-configuration now in vBulletin options
-exif now also added to social group albums via dropdown

http://www.pentaxforums.com/forums/general-talk/99746-release-vbulletin-album-exif-information-plugin-member-album-photos.html#post1025912