Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 04-07-2008, 04:50 PM
mckendall's Avatar
mckendall Offline
forum loafer
 
Join Date: Mar 2005
Location: Champaign, Illinois
Posts: 15
Add Description To Admin Image Listing

What would be the best way to add the image's description to the image listing in the Administration panel? Can someone point me in the right direction?

Thanks,
-Sean
__________________
photoblog: [ www.treeswing.net ]
blog: [ www.mckendall.net ]
Reply With Quote
  #2  
Old 04-07-2008, 05:12 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
You can create an addon to do so. It would be fairly simple if you know PHP.
Reply With Quote
  #3  
Old 04-07-2008, 05:17 PM
mckendall's Avatar
mckendall Offline
forum loafer
 
Join Date: Mar 2005
Location: Champaign, Illinois
Posts: 15
Do you know what file is used to display what we see now?
__________________
photoblog: [ www.treeswing.net ]
blog: [ www.mckendall.net ]
Reply With Quote
  #4  
Old 04-08-2008, 06:04 PM
mckendall's Avatar
mckendall Offline
forum loafer
 
Join Date: Mar 2005
Location: Champaign, Illinois
Posts: 15
I believe I've been able to figure this out. The following line has been added to the images_edit.php file located in the admin folder:

echo "<b>Description:</b> $body";

Add this after line # 584 if you want it to appear after the filename, dimensions, etc. Normally I wouldn't recommend editing the core files directly, but this is working for me with no ill effects.
__________________
photoblog: [ www.treeswing.net ]
blog: [ www.mckendall.net ]
Reply With Quote
  #5  
Old 04-09-2008, 12:40 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
The output won't be cleaned from the database so special characters will remain escaped but none the less that works as a hack. You'll just loose the function after upgrading.
Reply With Quote
  #6  
Old 03-07-2009, 09:22 AM
skpManiac Offline
forum loafer
 
Join Date: Mar 2009
Location: Manchester, UK
Posts: 7
I added this to line 585 of images_edit.php

echo "<b>Description:</b> $body <br/>";

This gives you this output:
#43
English Title: A Witch at the Apothecary
File-name: 20090304001320_straford upon avon - witch.jpg
Dimensions: 745 x 1000, 374.593 KB
To be published: 2009-03-04 00:13:21
Description: This was in a reputedly haunted shop in Stratford Upon Avon. A good bit of fun if you are down there. This was taken with my first EOS which was a EOS 300 35mm FILM Camera and scanned with an Epson RX640 professional series Scanner.
Categories: [Portraits]
English Tags: black stratford-upon-avon white witch

Hope this helps

Not sure why this is not included in the original file tbh!

Last edited by skpManiac; 03-07-2009 at 09:57 AM.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 06:27 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs