V@no
i installed the mod now when i access for search.php this give me many errors on functions.php
?
do you know wath is this, page_header?
Notice: Undefined variable: rate_suffix in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 464
Notice: Undefined variable: rating in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 464
Notice: Undefined offset: 1 in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 492
Notice: Undefined variable: image_row in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 509
Notice: Undefined variable: rate_suffix in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 464
Notice: Undefined variable: rating in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 464
Notice: Undefined variable: image_row in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 509
when i go to:
search.php?search_new_images=1
errors:
Notice: Undefined variable: rate_suffix in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 464
Notice: Undefined variable: rating in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 464
Notice: Undefined offset: 1 in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 492
Notice: Undefined variable: image_row in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 509
Notice: Undefined variable: rate_suffix in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 464
Notice: Undefined variable: rating in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 464
Notice: Undefined variable: rate_suffix in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 464
Notice: Undefined variable: rating in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 464
Notice: Undefined variable: image_row in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 509
Notice: Undefined variable: rate_suffix in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 464
Notice: Undefined variable: rating in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 464
Notice: Undefined variable: image_row in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 509
Notice: Undefined variable: rate_suffix in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 464
Notice: Undefined variable: rating in /home/nfnorte/public_html/galerianfn/includes/functions.php on line 464
functions.php 451-516
if (!empty($additional_image_fields)) {
$additional_field_array = array();
foreach ($additional_image_fields as $key => $val) {
$additional_field_array[$key] = (!empty($image_row[$key])) ? format_text($image_row[$key], 1) : REPLACE_EMPTY;
$additional_field_array['lang_'.$key] = $val[0];
}
if (!empty($additional_field_array)) {
$site_template->register_vars($additional_field_array);
}
}
$rate_form = "";
if (check_permission("auth_vote", $image_row['cat_id'])) {
$rate_form = rate_form($image_row['image_id'], $rate_suffix, $rating);
}
$site_template->register_vars("rate_form", $rate_form);
return true;
}
function rate_form($id, $rate_suffix = "", $rating = ""){
global $site_template, $session_info, $lang, $site_sess, $HTTP_COOKIE_VARS, $rate_suffix;
//----- Settings ------------
//change to $rate_show = 0; if u dont want to show what was your vote for an image
$rate_show = 1;
//--- End Settings ----------
$cookie_name = (defined("COOKIE_NAME")) ? COOKIE_NAME : "4images_";
$cookie_rated_array = isset($HTTP_COOKIE_VARS[$cookie_name.'rated'.$rate_suffix]) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookie_name.'rated'.$rate_suffix])) : array();
$split_list_array = array();
if (!empty($session_info['rated_imgs'.$rate_suffix])) {
$split_list_array = explode(" ", $session_info['rated_imgs'.$rate_suffix]);
}
$cookie_rated = array();
foreach ($cookie_rated_array as $key) {
$split = explode(",", $key);
$cookie_rated[] = $split[0];
if ($id == $split[0]) {
$rating = $split[1];
}
}
$split_list = array();
foreach ($split_list_array as $key) {
$split = explode(",", $key);
$split_list[] = $split[0];
if ($id == $split[0]) {
$rating = $split[1];
}
}
$no_rateform = (in_array($id, $split_list) || in_array($id, $cookie_rated)) ? "disabled" : 0;
$rate_options = "<option value=\"\">--</option>\n";
for ($i = MAX_RATING; $i; $i--){
$rate_options .= "<option value=\"".$i."\"".(($i == $rating && $rate_show) ? "selected" : "").">".$i."</option>\n";
}
$site_template->register_vars(array(
"rate" => ($no_rateform && !(check_permission("auth_vote", $image_row['cat_id']) && $no_rateform)) ? "rated" : $lang['rate'],
"rate_options" => $rate_options,
"rate_button" => ($no_rateform) ? $no_rateform : ""
));
$rate_form = $site_template->parse_template("rate_form");
return $rate_form;
}