1
Requests for paid modifications / Jobbörse / Re: Responsive Design Template
« on: November 06, 2014, 09:08:16 PM »
you're still interested in the responsive template?
4images code on GitHub Click here to visit GitHub.
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.
echo "<br />yyyy-mm-dd hh:mm:ss";
// EXIF Date
$exif = read_exif_data(MEDIA_PATH. '/' .$image_row['cat_id'].'/'.$image_row['image_media_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);
$exif_value[i] = $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 ( $exif_value[i] <> '-- ::' ){
echo "<br /><br /><a href='#' onClick=\"document.getElementById('image_date[$i]').value='$exif_value[i]'\";>EXIF date: <b>$exif_value[i]</b></a><br /><br />";
}
function get_exif_insert_link($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 »: $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;
}
}
$title = $lang['field_date'].$lang['date_desc'].$lang['date_format'].((isset($file_src)) ? get_iptc_insert_link($file_src, "date_created", "image_date", 0) : "");
$title = $lang['field_date'].$lang['date_desc'].$lang['date_format'].((isset($file_src)) ? get_exif_insert_link($file_src,"image_date", 0) : "");
// ***[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 »: $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;
}
}
$title = $lang['field_date'].$lang['date_desc'].$lang['date_format'].((isset($file_src)) ? get_iptc_insert_link($file_src, "date_created", "image_date", 0) : "");
// $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) : "");
Quotethat is the same... but i don't know where insert it in the 4images php files ...
You can find in includes/sessions.php file.
"The problem is because PHP is adding the following HTML tag into your HTML to transport the Session id:
Code:
<input type="hidden" name="PHPSESSID" value="fa266b3bf02959848ab2ecb6d4ce1727" />
As you are using XHTML Strict DOCTYPE. The validator is failing because form field tags, such as input and textarea etc must be contained within block level elements. They cannot be on their own.
Solution:
1. Downgrade from XHTML Strict to XHTML Transitional. XHTML Transitional does not require block level elements to be wrapped around form field tags.
2. If you want to stay XHTML Strict you are going to have change PHP's configuration to only use only cookies and not use any other method to transport the sessions id. However this will break you PHP application if your users doesn't have cookies enabled."