Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #11  
Old 12-06-2006, 11:17 AM
z0nic's Avatar
z0nic Offline
forum loafer
 
Join Date: Dec 2006
Location: Norway
Posts: 8
Send a message via ICQ to z0nic Send a message via MSN to z0nic
Quote:
Originally Posted by Connie View Post
at least it should be an Admin Addon
and I am sure you will need to store this info in table, so you might extend one table or add another table for that
I'm not very good at SQL-stuff, but I manually edited the new_image.php file to look like this:

<textarea name="body" style="width:95%;height:300px;">

<table border="0" cellspacing="0" cellpadding="0">
<div id="image-exif">
<!--DWLayoutTable-->
<tr><td width="130" height="92" align="right" valign="top">
<div align="right"><b>
camera<br />
lens<br />
focal length<br />
aperture<br />
shutter speed<br />
ISO<br />
flash<br />
shooting mode<br />
exposure bias<br />
metering mode<br />
</b></div></td>
<td width="9"></td>
<td width="319" rowspan="2" align="left" valign="top">
<EXIF_CAMERA_MODEL><br />
THIS IS WHERE I TYPE THE LENS DATA <br /> <!-- THIS IS WHERE I TYPE THE LENS DATA -->
<EXIF_FOCAL_LENGTH><br /><!-- focal length -->
<EXIF_APERTURE><br /><!-- aperture -->
<EXIF_EXPOSURE_TIME><br /><!-- shutter_speed -->
<EXIF_ISO><br /><!-- ISO -->
<EXIF_FLASH><br />
<EXIF_EXPOSURE_PROGRAM><BR />
<EXIF_EXPOSURE_BIAS><br />
<EXIF_METERING_MODE><br />
</td>
</tr>
</table>
TEXT GOES HERE
</div></textarea>

I also edited the comment_template.html file to look like this:

Comments for: <span class="title"><IMAGE_TITLE></span>

</div>

<div id="comment-wrapper">
<IMAGE_THUMBNAIL>
<br />



And that did the trick for me.
The only thing that sucks is that every previous image looses it's EXIF info.
__________________
z0nic

Camera: Canon EOS 5D
Blog: komplisert.net/iblog

Last edited by z0nic; 12-06-2006 at 11:26 AM. Reason: typ'o
Reply With Quote
  #12  
Old 12-06-2006, 11:25 AM
Connie
Guest
 
Posts: n/a
But my friend, you can add everything to a form, but how do you want to store the data and read it from database when the main index.php is called?

you just added a new form field to the admin-frontend, but that is really not enough ;=)
Reply With Quote
  #13  
Old 12-06-2006, 11:30 AM
z0nic's Avatar
z0nic Offline
forum loafer
 
Join Date: Dec 2006
Location: Norway
Posts: 8
Send a message via ICQ to z0nic Send a message via MSN to z0nic
Quote:
Originally Posted by Connie View Post
But my friend, you can add everything to a form, but how do you want to store the data and read it from database when the main index.php is called?

you just added a new form field to the admin-frontend, but that is really not enough ;=)
Well, it works for me...
If I understood SQL I could probably make it better. But I don't, so this will have to do it.

But please, I urge anyone to make it better!
__________________
z0nic

Camera: Canon EOS 5D
Blog: komplisert.net/iblog
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 11:01 AM.

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