Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - thehammer

Pages: [1]
I search for a long time this little mod without result...
Now i write by myself and I' m happy to share with you!

open admin_functions.php and add to the top this code:

Code: [Select]

// ***[Little MOD insert Date Time Original from EXIF ] ***
function get_exif_insert_originaldatetime($file, $input, $add_text = 1) {
  $exif = read_exif_data($file);
  ereg("([0-9]{4}):([0-9]{2}):([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2})", $exif["DateTimeOriginal"], $exif_data_created);
  $value = $exif_data_created[1].'-'.$exif_data_created[2].'-'.$exif_data_created[3].' '.$exif_data_created[4].':'.$exif_data_created[5].':'.$exif_data_created[6];
  if (!empty($value)) {
          $html = "\n<input type=\"hidden\" name=\"hidden_".$input."\" value=\"".trim($value)."\">\n";
          $html .= "<script language=\"javascript\">\n<!--\n";
          $html .= "this.document.writeln('<br /><br /><input type=\"button\" value=\"EXIF Date Time Original &raquo;: $value \" onClick=\"this.form.".$input.".value=".(($add_text) ? "this.form.".$input.".value + " : "")."this.form.hidden_".$input.".value\"> <br /><br />');";
          $html .= "\n//-->\n</script>\n";
          return $html;

open image.php search:

Code: [Select]
$title = $lang['field_date'].$lang['date_desc'].$lang['date_format'].((isset($file_src)) ? get_iptc_insert_link($file_src, "date_created", "image_date", 0) : "");

and replace with:

Code: [Select]
// $title = $lang['field_date'].$lang['date_desc'].$lang['date_format'].((isset($file_src)) ? get_iptc_insert_link($file_src, "date_created", "image_date", 0) : "");
// ***[MOD insert Date Time Original from EXIF ] ***
$title = $lang['field_date'].$lang['date_desc'].$lang['date_format'].((isset($file_src)) ? get_exif_insert_originaldatetime($file_src,"image_date", 0) : "");

Now you can insert the image original date creation when a image is  edited  ...

Chit Chat / now is Tableless & Valid XHTML 1.0 Strict!
« on: December 31, 2007, 01:28:06 PM »
Hi, i've updated my 4images site...

Now is completlly "tableless" according to the W3C Recommendations (
and Valid XHTML 1.0 Strict... ( )

A long job and a lot of code writing... but i' m very happy!

Let me know what do you think.



PS: happy new year!

The comment form create a hidden field:
 <input type="hidden" name="sessionid" value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" />
can you help me to find where the field is created ?

I need to modify this code to solve an error in Markup Validation Service ( )


Mods & Plugins (Requests & Discussions) / ACP - Mini-mod loosed
« on: October 01, 2006, 11:31:28 AM »
Hi Guys!

During the last update of 4images ( thanks fo the spam feature! ) I' ve loosed a interesting mini mod:

This mini mod add a button in ACP and during the editing of the image i can choose to update the date of the image with the date in the EXIF information.

I've searched in all forums but without result :(
Can you help me?


Pages: [1]