16
Mods & Plugins (Requests & Discussions) / [REQ] Comment Preview
« on: September 07, 2005, 01:58:50 PM »
What about this mod?
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.
just in case, try this too:
http://www.4homepages.de/forum/index.php?topic=6998.0
$cache_page_index = 1;
$cache_page_categories = 1;
$cache_page_top = 1;
change to:$cache_page_index = 0;
$cache_page_categories = 0;
$cache_page_top = 0;
foreach ($image_ids as $key => $val) {
$set = "";
$image_keywords[$key] = preg_replace("/[\n\r]/is", " ", $image_keywords[$key]);
$image_keywords[$key] = str_replace(","," ",$image_keywords[$key]);
$image_keywords[$key] = ereg_replace("( ){2,}", " ", $image_keywords[$key]);
if ($editname && !empty($image_name[$key])) { $set.= " image_name = '"; $set.= trim($image_name[$key]); $set.= "'";};
if ($editdescription) { $set.= ", image_description = '"; $set.= trim($image_description[$key]); $set.= "'";};
if ($editkeywords) { $set.= ", image_keywords = '"; $set.= trim($image_keywords[$key]); $set.= "'";};
if ($editdate) { $set.= ", image_date = UNIX_TIMESTAMP('".$image_date[$key]."')";};
$sql = "UPDATE ".IMAGES_TABLE."
SET".trim($set, ",")."
WHERE image_id = $val";
$result = $site_db->query($sql);
if ($editkeywords) {
$search_words = array();
foreach ($search_match_fields as $image_column => $match_column) {
$image_col = $$image_column;
if (isset($image_col[$key])) {
$search_words[$image_column] = stripslashes($image_col[$key]);
}
}
add_searchwords($val, $search_words);
}
}
onsubmit="if(cat_id.value==0){alert('{cat_name_required}');return false;} return false;} uploadbutton.disabled=true;"and ascanio paste this code in his page...
onsubmit="if (cat_id.options[cat_id.selectedIndex].value==0){ alert('{cat_name_required}'); return false;} uploadbutton.disabled=true;"
function show_error_page($error_msg, $clickstream = "") {
global $site_template, $site_sess, $lang, $config;
if (empty($clickstream)) {
$clickstream = "<a href=\"".$site_sess->url(ROOT_PATH."index.php")."\">".$lang['home']."</a>".$config['category_separator'].$lang['error'];
}
$site_template->register_vars(array(
"error_msg" => $error_msg,
"lang_error" => $lang['error'],
"clickstream" => $clickstream,
"random_image" => ""
));
$site_template->print_template($site_template->parse_template("error"));
exit;
}