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.


Messages - Habi86

Pages: [1] 2 3 4
1
    ...
Stefanie
du hast punkt 4.) zwei mal drinnen

mfg Andi

Wie ist denn das passiert  8O
Na Gott sei dank kann man noch über sich selber lachen  :lol: :roll:

Danke  :wink:

2
Hi :)

punkt 4.) könnt ihr einstellen wieviele Bilder in einer Reihe dargestellt werden sollen.

Möchte ich gern installiert haben - aber aus welchen Gründen auch immer wird das geänderte ignoriert oO"
Funktioniert es eventuell nicht für bestehende Gruppen o.ä.?

Mein details.php
Code: [Select]
<?php
$main_template 
'details';

define('GET_CACHES'1);
define('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$user_access get_permission();
include(
ROOT_PATH.'includes/page_header.php');
//######################################## Start MOD: More Pictures on Detail Page #################################################
$image_cells 4// Anzahl der Bilder in einer Reihe



$sql "SELECT  image_id,image_group 



FROM "
.IMAGES_TABLE.



WHERE image_id = '
$image_id' ";



$result $site_db->query($sql); 



$row mysql_fetch_object($result);
  
$image_group $row->image_group;




if(
$image_group >= 1){



$sql "SELECT image_id, cat_id, image_name, image_active, image_media_file, image_thumb_file, image_group
                FROM "
.IMAGES_TABLE."



WHERE image_group = '
$image_group' ";



$result $site_db->query($sql);



$num_rows $site_db->get_numrows($result);

//echo " Group ";
//echo $image_group;
  
$thumbnails "<table style=\"border:1px solid #cccccc; \">\n";




  
$count 0;
  
$bgcounter 0;
  while (
$image_row $site_db->fetch_array($result)){





if (
$count == 0) { 
      
$row_bg_number = ($bgcounter++ % == 0) ? 2;
      
$thumbnails .= "<tr style=\"margin:0px;\" >\n";



}



$thumbnails .= "<td  style=\"padding:10px 10px;\">\n";



show_image($image_row);



$thumbnails .= $site_template->parse_template("group_thumbnail_bit");



$thumbnails .= "\n</td>\n";





$count++;
    if (
$count == $image_cells) {
      
$thumbnails .= "</tr>\n";
      
$count 0;



}







if (
$count 0)  {
    
$leftover = ($image_cells $count);
    if (
$leftover >= 1) {
      for (
$f 0$f $leftover$f++) {
        
$thumbnails .= "<td >\n&nbsp;\n</td>\n";
      }
      
$thumbnails .= "</tr>\n";
    }
  }
  
$thumbnails .= "</table>\n";

  
$site_template->register_vars("group_preview"$thumbnails);
}
unset(
$thumbnails);

//######################################## End MOD: More Pictures on Detail Page #################################################


//######################################## Start MOD: More Pictures on Detail Page #################################################
$image_cells 6// Anzahl der Bilder in einer Reihe



$sql "SELECT  image_id,image_group 



FROM "
.IMAGES_TABLE.



WHERE image_id = '
$image_id' ";



$result $site_db->query($sql); 



$row mysql_fetch_object($result);
  
$image_group $row->image_group;




if(
$image_group >= 1){



$sql "SELECT image_id, cat_id, image_name, image_active, image_media_file, image_thumb_file, image_group
                FROM "
.IMAGES_TABLE."



WHERE image_group = '
$image_group' ";



$result $site_db->query($sql);



$num_rows $site_db->get_numrows($result);

//echo " Group ";
//echo $image_group;
  
$thumbnails "<table style=\"border:1px solid #cccccc; \">\n";




  
$count 0;
  
$bgcounter 0;
  while (
$image_row $site_db->fetch_array($result)){





if (
$count == 0) { 
      
$row_bg_number = ($bgcounter++ % == 0) ? 2;
      
$thumbnails .= "<tr style=\"margin:0px;\" >\n";



}



$thumbnails .= "<td  style=\"padding:10px 10px;\">\n";



show_image($image_row);



$thumbnails .= $site_template->parse_template("group_thumbnail_bit");



$thumbnails .= "\n</td>\n";





$count++;
    if (
$count == $image_cells) {
      
$thumbnails .= "</tr>\n";
      
$count 0;



}







if (
$count 0)  {
    
$leftover = ($image_cells $count);
    if (
$leftover >= 1) {
      for (
$f 0$f $leftover$f++) {
        
$thumbnails .= "<td >\n&nbsp;\n</td>\n";
      }
      
$thumbnails .= "</tr>\n";
    }
  }
  
$thumbnails .= "</table>\n";

  
$site_template->register_vars("group_preview"$thumbnails);
}
unset(
$thumbnails);

//######################################## End MOD: More Pictures on Detail Page #################################################

if (!$image_id) {
    
redirect($url);
}

$additional_sql "";
if (!empty(
$additional_image_fields)) {
  foreach (
$additional_image_fields as $key => $val) {
    
$additional_sql .= ", i.".$key;
  }
}

$sql "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.""user_name").get_user_table_field(", u.""user_email")."
        FROM ("
.IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
        LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id)
        WHERE i.image_id = 
$image_id AND i.image_active = 1 AND c.cat_id = i.cat_id";
$image_row $site_db->query_firstrow($sql);
$cat_id = (isset($image_row['cat_id'])) ? $image_row['cat_id'] : 0;
$is_image_owner = ($image_row['user_id'] > USER_AWAITING && $user_info['user_id'] == $image_row['user_id']) ? 0;

if (!
check_permission("auth_viewcat"$cat_id) || !check_permission("auth_viewimage"$cat_id) || !$image_row) {
  
redirect($url);
}

$random_cat_image = (defined("SHOW_RANDOM_IMAGE") && SHOW_RANDOM_IMAGE == 0) ? "" get_random_image($cat_id);
$site_template->register_vars("random_cat_image"$random_cat_image);
unset(
$random_cat_image);

//-----------------------------------------------------
//--- Show Image --------------------------------------
//-----------------------------------------------------
$image_allow_comments = (check_permission("auth_readcomment"$cat_id)) ? $image_row['image_allow_comments'] : 0;
$image_name format_text($image_row['image_name'], 2);
show_image($image_row$mode01);


    
//--- SEO variables -------------------------------
    
    
$meta_keywords  = !empty($image_row['image_keywords']) ? implode(", "explode(" "$image_row['image_keywords'])) : "";
    
$meta_description = !empty($image_row['image_description']) ? strip_tags($image_row['image_description']) . ". " "";
    
    
$site_template->register_vars(array(
            
"detail_meta_description"   => $meta_description,
            
"detail_meta_keywords"      => $meta_keywords,
            
"prepend_head_title"        => $image_name " - ",
            ));


$in_mode 0;

$sql "";
if (
$mode == "lightbox") {
  if (!empty(
$user_info['lightbox_image_ids'])) {
    
$image_id_sql str_replace(" "", "trim($user_info['lightbox_image_ids']));
    
$sql "SELECT image_id, cat_id, image_name, image_media_file, image_thumb_file
            FROM "
.IMAGES_TABLE."
            WHERE image_active = 1 AND image_id IN (
$image_id_sql) AND (cat_id NOT IN (".get_auth_cat_sql("auth_viewimage""NOTIN").", ".get_auth_cat_sql("auth_viewcat""NOTIN")."))
            ORDER BY "
.$config['image_order']." ".$config['image_sort'].", image_id ".$config['image_sort'];
    
$in_mode 1;
  }
}
elseif (
$mode == "search") {
  if (!isset(
$session_info['searchid']) || empty($session_info['searchid'])) {
    
$session_info['search_id'] = $site_sess->get_session_var("search_id");
  }

  if (!empty(
$session_info['search_id'])) {
    
$search_id unserialize($session_info['search_id']);
  }

  
$sql_where_query "";

  if (!empty(
$search_id['image_ids'])) {
    
$sql_where_query .= "AND image_id IN (".$search_id['image_ids'].") ";
  }

  if (!empty(
$search_id['user_ids'])) {
    
$sql_where_query .= "AND user_id IN (".$search_id['user_ids'].") ";
  }

  if (!empty(
$search_id['search_new_images']) && $search_id['search_new_images'] == 1) {
    
$new_cutoff time() - 60 60 24 $config['new_cutoff'];
    
$sql_where_query .= "AND image_date >= $new_cutoff ";
  }

  if (!empty(
$search_id['search_cat']) && $search_id['search_cat'] != 0) {
    
$cat_id_sql 0;
    if (
check_permission("auth_viewcat"$search_id['search_cat'])) {
      
$sub_cat_ids get_subcat_ids($search_id['search_cat'], $search_id['search_cat'], $cat_parent_cache);
      
$cat_id_sql .= ", ".$search_id['search_cat'];
      if (!empty(
$sub_cat_ids[$search_id['search_cat']])) {
        foreach (
$sub_cat_ids[$search_id['search_cat']] as $val) {
          if (
check_permission("auth_viewcat"$val)) {
            
$cat_id_sql .= ", ".$val;
          }
        }
      }
    }
    
$cat_id_sql $cat_id_sql !== "AND cat_id IN ($cat_id_sql)" "";
  }
  else {
    
$cat_id_sql get_auth_cat_sql("auth_viewcat""NOTIN");
    
$cat_id_sql $cat_id_sql !== "AND cat_id NOT IN (".$cat_id_sql.")" "";
  }

  if (!empty(
$sql_where_query)) {
    
$sql "SELECT image_id, cat_id, image_name, image_media_file, image_thumb_file
            FROM "
.IMAGES_TABLE."
            WHERE image_active = 1
            
$sql_where_query
            
$cat_id_sql
            ORDER BY "
.$config['image_order']." ".$config['image_sort'].", image_id ".$config['image_sort'];
    
$in_mode 1;
  }
}
if (!
$in_mode || empty($sql)) {
  
$sql "SELECT image_id, cat_id, image_name, image_media_file, image_thumb_file
          FROM "
.IMAGES_TABLE."
          WHERE image_active = 1 AND cat_id = 
$cat_id
          ORDER BY "
.$config['image_order']." ".$config['image_sort'].", image_id ".$config['image_sort'];
}
$result $site_db->query($sql);

$image_id_cache = array();
$next_prev_cache = array();
$break 0;
$prev_id 0;
while(
$row $site_db->fetch_array($result)) {
  
$image_id_cache[] = $row['image_id'];
  
$next_prev_cache[$row['image_id']] = $row;
  if (
$break) {
    break;
  }
  if (
$prev_id == $image_id) {
    
$break 1;
  }
  
$prev_id $row['image_id'];
}
$site_db->free_result();

if (!
function_exists("array_search")) {
  function 
array_search($needle$haystack) {
    
$match false;
    foreach (
$haystack as $key => $value) {
      if (
$value == $needle) {
        
$match $key;
      }
    }
    return 
$match;
  }
}

$act_key array_search($image_id$image_id_cache);
$next_image_id = (isset($image_id_cache[$act_key 1])) ? $image_id_cache[$act_key 1] : 0;
$prev_image_id = (isset($image_id_cache[$act_key 1])) ? $image_id_cache[$act_key 1] : 0;
unset(
$image_id_cache);

// Get next and previous image
if (!empty($next_prev_cache[$next_image_id])) {
  
$next_image_name format_text($next_prev_cache[$next_image_id]['image_name'], 2);
  
$next_image_url $site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$next_image_id.((!empty($mode)) ? "&amp;mode=".$mode ""));
  if (!
get_file_path($next_prev_cache[$next_image_id]['image_media_file'], "media"$next_prev_cache[$next_image_id]['cat_id'], 00)) {
    
$next_image_file ICON_PATH."/404.gif";
  }
  else {
    
$next_image_file get_file_path($next_prev_cache[$next_image_id]['image_media_file'], "media"$next_prev_cache[$next_image_id]['cat_id'], 01);
  }
  if (!
get_file_path($next_prev_cache[$next_image_id]['image_thumb_file'], "thumb"$next_prev_cache[$next_image_id]['cat_id'], 00)) {
    
$next_thumb_file ICON_PATH."/".get_file_extension($next_prev_cache[$next_image_id]['image_media_file']).".gif";
  }
  else {
    
$next_thumb_file get_file_path($next_prev_cache[$next_image_id]['image_thumb_file'], "thumb"$next_prev_cache[$next_image_id]['cat_id'], 01);
  }
}
else {
  
$next_image_name REPLACE_EMPTY;
  
$next_image_url REPLACE_EMPTY;
  
$next_image_file REPLACE_EMPTY;
  
$next_thumb_file REPLACE_EMPTY;
}

if (!empty(
$next_prev_cache[$prev_image_id])) {
  
$prev_image_name format_text($next_prev_cache[$prev_image_id]['image_name'], 2);
  
$prev_image_url $site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$prev_image_id.((!empty($mode)) ? "&amp;mode=".$mode ""));
  if (!
get_file_path($next_prev_cache[$prev_image_id]['image_media_file'], "media"$next_prev_cache[$prev_image_id]['cat_id'], 00)) {
    
$prev_image_file ICON_PATH."/404.gif";
  }
  else {
    
$prev_image_file get_file_path($next_prev_cache[$prev_image_id]['image_media_file'], "media"$next_prev_cache[$prev_image_id]['cat_id'], 01);
  }
  if (!
get_file_path($next_prev_cache[$prev_image_id]['image_thumb_file'], "thumb"$next_prev_cache[$prev_image_id]['cat_id'], 00)) {
    
$prev_thumb_file ICON_PATH."/".get_file_extension($next_prev_cache[$prev_image_id]['image_media_file']).".gif";
  }
  else {
    
$prev_thumb_file get_file_path($next_prev_cache[$prev_image_id]['image_thumb_file'], "thumb"$next_prev_cache[$prev_image_id]['cat_id'], 01);
  }
}
else {
  
$prev_image_name REPLACE_EMPTY;
  
$prev_image_url REPLACE_EMPTY;
  
$prev_image_file REPLACE_EMPTY;
  
$prev_thumb_file REPLACE_EMPTY;
}

$site_template->register_vars(array(
  
"next_image_id" => $next_image_id,
  
"next_image_name" => $next_image_name,
  
"next_image_url" => $next_image_url,
  
"next_image_file" => $next_image_file,
  
"next_thumb_file" => $next_thumb_file,
  
"prev_image_id" => $prev_image_id,
  
"prev_image_name" => $prev_image_name,
  
"prev_image_url" => $prev_image_url,
  
"prev_image_file" => $prev_image_file,
  
"prev_thumb_file" => $prev_thumb_file
));
unset(
$next_prev_cache);

//-----------------------------------------------------
//--- Show Count Lightbox -----------------------------
//-----------------------------------------------------

$sql "SELECT COUNT(*) AS counter
        FROM "
.LIGHTBOXES_TABLE."
        WHERE lightbox_image_ids REGEXP '([^0-9]|^)"
.$image_row['image_id']."([^0-9]|$)'";
        
$lightbox_count $site_db->query_firstrow($sql);

$site_template->register_vars(array(
  
"lang_image_lightbox_count" => $lang['image_lightbox_count'],
  
"lightbox_count" => (isset($lightbox_count['counter']) && $lightbox_count['counter']) ? $lightbox_count['counter'] : 0
));

unset(
$lightbox_count);
//-----------------------------------------------------
//--- Save Comment ------------------------------------
//-----------------------------------------------------
$error 0;
if (
$action == "postcomment" && isset($HTTP_POST_VARS[URL_ID])) {
  
$id intval($HTTP_POST_VARS[URL_ID]);
  
$sql "SELECT cat_id, image_allow_comments
          FROM "
.IMAGES_TABLE."
          WHERE image_id = 
$id";
  
$row $site_db->query_firstrow($sql);

  if (
$row['image_allow_comments'] == || !check_permission("auth_postcomment"$row['cat_id']) || !$row) {
    
$msg $lang['comments_deactivated'];
  }
  else {
    
$user_name un_htmlspecialchars(trim($HTTP_POST_VARS['user_name']));
    
$comment_headline un_htmlspecialchars(trim($HTTP_POST_VARS['comment_headline']));
    
$comment_text un_htmlspecialchars(trim($HTTP_POST_VARS['comment_text']));

    
$captcha = (isset($HTTP_POST_VARS['captcha'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['captcha'])) : "";

    
// Flood Check
    
$sql "SELECT comment_ip, comment_date
            FROM "
.COMMENTS_TABLE."
            WHERE image_id = 
$id
            ORDER BY comment_date DESC
            LIMIT 1"
;
    
$spam_row $site_db->query_firstrow($sql);
    
$spamtime $spam_row['comment_date'] + 180;

    if (
$session_info['session_ip'] == $spam_row['comment_ip'] && time() <= $spamtime && $user_info['user_level'] != ADMIN)  {
      
$msg .= (($msg != "") ? "<br />" "").$lang['spamming'];
      
$error 1;
    }

    
$user_name_field get_user_table_field("""user_name");
    if (!empty(
$user_name_field)) {
      if (
$site_db->not_empty("SELECT $user_name_field FROM ".USERS_TABLE." WHERE $user_name_field = '".strtolower($user_name)."' AND ".get_user_table_field("""user_id")." <> '".$user_info['user_id']."'")) {
        
$msg .= (($msg != "") ? "<br />" "").$lang['username_exists'];
        
$error 1;
      }
    }
    if (
$user_name == "")  {
      
$msg .= (($msg != "") ? "<br />" "").$lang['name_required'];
      
$error 1;
    }
    if (
$comment_headline == "")  {
      
$msg .= (($msg != "") ? "<br />" "").$lang['headline_required'];
      
$error 1;
    }
    if (
$comment_text == "")  {
      
$msg .= (($msg != "") ? "<br />" "").$lang['comment_required'];
      
$error 1;
    }

    if (
$captcha_enable_comments && !captcha_validate($captcha)) {
      
$msg .= (($msg != "") ? "<br />" "").$lang['captcha_required'];
      
$error 1;
    }

    if (!
$error)  {
      
$sql "INSERT INTO ".COMMENTS_TABLE."
              (image_id, user_id, user_name, comment_headline, comment_text, comment_ip, comment_date)
              VALUES
              (
$id, ".$user_info['user_id'].", '$user_name', '$comment_headline', '$comment_text', '".$session_info['session_ip']."', ".time().")";
      
$site_db->query($sql);
      
$commentid $site_db->get_insert_id();
      
update_comment_count($id$user_info['user_id']);
      $sql "SELECT image_name FROM ".IMAGES_TABLE." WHERE image_id = $id"
    
$image_name $site_db->query($sql); 
    
$sql "SELECT user_id FROM ".IMAGES_TABLE." WHERE image_id = $id"
    
$user_id $site_db->query($sql); 
    
    
$recipient_name $image_row['user_name']; 
    
$recipient_email $image_row['user_email'];
    
$image_url $script_url."/details.php?".URL_IMAGE_ID."=".$id.""
    
       
// Start Emailer für comments 
    
include(ROOT_PATH.'includes/email.php'); 
    
$site_email = new Email(); 
    
$site_email->set_to($recipient_email); 
    
$site_email->set_from($config['site_email'], $config['site_name']); 
    
$site_email->set_subject($lang['send_comment_emailsubject']); 
    
$site_email->register_vars(array( 
      
"user_name" => $image_row['user_name'], 
      
"recipient_name" => $recipient_name
      
"image_name" => $image_row['image_name'], 
      
"comment_date" => format_date($config['date_format']." ".$config['time_format'], $current_time), 
      
"site_name" => $config['site_name'],
      
"image_url" => $image_url,
          )); 
    
$site_email->set_body("comment_email"$config['language_dir']); 
    
$site_email->send_email();
   $sql "SELECT 'user_id', 'image_thumb_file', 'cat_id' FROM ".IMAGES_TABLE." WHERE image_id = $id";
$user_id $site_db->query($sql);
$user_id $image_row['user_id'];
if ($image_row['user_id'] != $user_info['user_id']) {
$image_url $script_url."/details.php?".URL_IMAGE_ID."=".$id."";
$image_name_url "[url=".$image_url."]".$image_name."[/url]";

if (!empty($image_row['image_thumb_file'])) {
$cat_id $image_row['cat_id'];
$image_thumb_file $image_row['image_thumb_file'];
$thumb $site_sess->url(ROOT_PATH."data/thumbnails/".$cat_id."/".$image_thumb_file);
$thumb "[url=".$image_url."][img]".$thumb."[/img][/url]";
} else {
$thumb "";
}

$pm_from 1//Hier bitte die user_id vom Absender angeben
$pm_type 5;
$pm_bbcode 1;
$pm_smiles 1;
$pm_sig "-- \n Mit freundlichen Grüßen, \n euer Picsforfree.de Team";

$pm_message "Das folgende Bild hat ein Kommentar von ".$user_name." erhalten: \n\n [B]Bild:[/B] ".$image_name_url."\n".$thumb." \n\n [B]Überschrift:[/B] ".$comment_headline." \n [B]Kommentar:[/B] ".$comment_text."\n\n".$pm_sig;
$pm_subject "\"".$image_name."\" hat ein Kommentar von ".$user_name." erhalten";

$sql "INSERT INTO ".PM_TABLE."
(pm_date, pm_to, pm_from, pm_subject, pm_type, pm_text, pm_bbcode, pm_html, pm_ip, pm_smiles)
VALUES
('"
.time()."', $user_id$pm_from, '".$pm_subject."', $pm_type, '".$pm_message."', $pm_bbcode, 0, '".$session_info['session_ip']."', $pm_smiles)";
$result $site_db->query($sql);
}
      
$msg $lang['comment_success'];
    }
  }
  unset(
$row);
  unset(
$spam_row);
}

//-----------------------------------------------------
//--- Show Comments -----------------------------------
//-----------------------------------------------------
if ($image_allow_comments == 1) {
  
$site_template->register_vars(array(
      
"has_rss"   => true,
      
"rss_title" => "RSS Feed: ".$image_name." (".str_replace(':'''$lang['comments']).")",
      
"rss_url"   => $script_url."/rss.php?action=comments&amp;".URL_IMAGE_ID."=".$image_id
  
));

 
  
$additional_sql ""
  if (!empty(
$additional_user_fields)) { 
    
$table_fields $site_db->get_table_fields(USERS_TABLE); 
    foreach (
$additional_user_fields as $key => $val) { 
      if (isset(
$table_fields[$key])) { 
        
$additional_sql .= ", u.$key"
      } 
    } 
  } 
  
$sql "SELECT c.comment_id, c.image_id, c.user_id, c.user_name AS comment_user_name, c.comment_headline, c.comment_text, c.comment_ip, c.comment_date".get_user_table_field(", u.""user_level").get_user_table_field(", u.""user_name").get_user_table_field(", u.""user_email").get_user_table_field(", u.""user_showemail").get_user_table_field(", u.""user_invisible").get_user_table_field(", u.""user_joindate").get_user_table_field(", u.""user_lastaction").get_user_table_field(", u.""user_comments").get_user_table_field(", u.""user_homepage").get_user_table_field(", u.""user_icq").get_user_table_field(", u.""user_id").$additional_sql."
          FROM "
.COMMENTS_TABLE." c
          LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = c.user_id)
          WHERE c.image_id = 
$image_id
          ORDER BY c.comment_date ASC"
;
  
$result $site_db->query($sql);

  
$comment_row = array();
  while (
$row $site_db->fetch_array($result)) {
    
$comment_row[] = $row;
  }
  
$site_db->free_result($result);
  
$num_comments sizeof($comment_row);

  if (!
$num_comments) {
    
$comments "<tr><td class=\"commentrow1\" colspan=\"2\">".$lang['no_comments']."</td></tr>";
  }
  else {
    
$comments "";
    
$bgcounter 0;
    for (
$i 0$i $num_comments$i++) {
      
$row_bg_number = ($bgcounter++ % == 0) ? 2;

      
$comment_user_email "";
      
$comment_user_email_save "";
      
$comment_user_mailform_link "";
      
$comment_user_email_button "";
      
$comment_user_homepage_button "";
      
$comment_user_icq_button "";
      
$comment_user_profile_button "";
      
$comment_user_status_img REPLACE_EMPTY;
      
$comment_user_name format_text($comment_row[$i]['comment_user_name'], 2);
      
$comment_user_info $lang['userlevel_guest'];

      
$comment_user_id $comment_row[$i]['user_id'];
      $user_row_comment get_user_info($comment_user_id);

      if (isset(
$comment_row[$i][$user_table_fields['user_name']]) && $comment_user_id != GUEST) {
        
$comment_user_name format_text($comment_row[$i][$user_table_fields['user_name']], 2);

        
$comment_user_profile_link = !empty($url_show_profile) ? $site_sess->url(preg_replace("/{user_id}/"$comment_user_id$url_show_profile)) : $site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$comment_user_id);
        
$comment_user_profile_button "<a href=\"".$comment_user_profile_link."\"><img src=\"".get_gallery_image("profile.gif")."\" border=\"0\" alt=\"".$comment_user_name."\" /></a>";

        
$comment_user_status_img = ($comment_row[$i][$user_table_fields['user_lastaction']] >= (time() - 300) && ((isset($comment_row[$i][$user_table_fields['user_invisible']]) && $comment_row[$i][$user_table_fields['user_invisible']] == 0) || $user_info['user_level'] == ADMIN)) ? "<img src=\"".get_gallery_image("user_online.gif")."\" border=\"0\" alt=\"Online\" />" "<img src=\"".get_gallery_image("user_offline.gif")."\" border=\"0\" alt=\"Offline\" />";

        
$comment_user_homepage = (isset($comment_row[$i][$user_table_fields['user_homepage']])) ? format_url($comment_row[$i][$user_table_fields['user_homepage']]) : "";
        if (!empty(
$comment_user_homepage)) {
          
$comment_user_homepage_button "<a href=\"".$comment_user_homepage."\" target=\"_blank\"><img src=\"".get_gallery_image("homepage.gif")."\" border=\"0\" alt=\"".$comment_user_homepage."\" /></a>";
        }

        
$comment_user_icq = (isset($comment_row[$i][$user_table_fields['user_icq']])) ? format_text($comment_row[$i][$user_table_fields['user_icq']]) : "";
        if (!empty(
$comment_user_icq)) {
          
$comment_user_icq_button "<a href=\"http://www.icq.com/people/about_me.php?uin=".$comment_user_icq."\" target=\"_blank\"><img src=\"http://status.icq.com/online.gif?icq=".$comment_user_icq."&img=5\" width=\"18\" height=\"18\" border=\"0\" alt=\"".$comment_user_icq."\" /></a>";
        }

        if (!empty(
$comment_row[$i][$user_table_fields['user_email']]) && (!isset($comment_row[$i][$user_table_fields['user_showemail']]) || (isset($comment_row[$i][$user_table_fields['user_showemail']]) && $comment_row[$i][$user_table_fields['user_showemail']] == 1))) {
          
$comment_user_email format_text($comment_row[$i][$user_table_fields['user_email']]);
          
$comment_user_email_save format_text(str_replace("@"" at "$comment_row[$i][$user_table_fields['user_email']]));
          if (!empty(
$url_mailform)) {
            
$comment_user_mailform_link $site_sess->url(preg_replace("/{user_id}/"$comment_user_id$url_mailform));
          }
          else {
            
$comment_user_mailform_link $site_sess->url(ROOT_PATH."member.php?action=mailform&amp;".URL_USER_ID."=".$comment_user_id);
          }
          
$comment_user_email_button "<a href=\"".$comment_user_mailform_link."\"><img src=\"".get_gallery_image("email.gif")."\" border=\"0\" alt=\"".$comment_user_email_save."\" /></a>";
        }

        if (!isset(
$comment_row[$i][$user_table_fields['user_level']]) || (isset($comment_row[$i][$user_table_fields['user_level']]) && $comment_row[$i][$user_table_fields['user_level']] == USER)) {
          
$comment_user_info $lang['userlevel_user'];
        }
        elseif (
$comment_row[$i][$user_table_fields['user_level']] == ADMIN) {
          
$comment_user_info $lang['userlevel_admin'];
        }

        
$comment_user_info .= "<br />";
        
$comment_user_info .= (isset($comment_row[$i][$user_table_fields['user_joindate']])) ? "<br />".$lang['join_date']." ".format_date($config['date_format'], $comment_row[$i][$user_table_fields['user_joindate']]) : "";
        
$comment_user_info .= (isset($comment_row[$i][$user_table_fields['user_comments']])) ? "<br />".$lang['comments']." ".$comment_row[$i][$user_table_fields['user_comments']] : "";
      }

      
$comment_user_ip = ($user_info['user_level'] == ADMIN) ? $comment_row[$i]['comment_ip'] : "";

      
$admin_links "";
      if (
$user_info['user_level'] == ADMIN) {
        
$admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=editcomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
        
$admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=removecomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['delete']."</a>";
      }
      elseif (
$is_image_owner) {
        
$admin_links .= ($config['user_edit_comments'] != 1) ? "" "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=editcomment&amp;".URL_COMMENT_ID."=".$comment_row[$i]['comment_id'])."\">".$lang['edit']."</a>&nbsp;";
        
$admin_links .= ($config['user_delete_comments'] != 1) ? "" "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=removecomment&amp;".URL_COMMENT_ID."=".$comment_row[$i]['comment_id'])."\">".$lang['delete']."</a>";
      }

      
$site_template->register_vars(array(
        
"comment_id" => $comment_row[$i]['comment_id'], 
    "user_avatar_current" => ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($user_row_comment['user_avatar'] == "") ? "blank.gif" $user_row_comment['user_avatar'])."\" name=\"icons\" border=\"0\" hspace=\"15\" alt=\"\">" "",
        
"comment_user_pm" => ($config['pm'] && $comment_row[$i]['user_id']  != GUEST && $user_info['user_level'] > GUEST && $user_info['user_id'] != $comment_row[$i]['user_id']) ? "<a href=\"".$site_sess->url(ROOT_PATH."pm.php?action=quote&mode=comment&id=".$comment_row[$i]['comment_id']."&user_id=".$comment_row[$i]['user_id'])."\" /><img src=\"".get_gallery_image("pm.gif")."\" border=\"0\" alt=\"".$lang['pm_user_pm_alt']."\" /></a>" ""
        
"comment_user_id" => $comment_user_id,
        
"comment_user_status_img" => $comment_user_status_img,
        
"comment_user_name" => $comment_user_name,
        
"comment_user_info" => $comment_user_info,
        
"comment_user_profile_button" => $comment_user_profile_button,
        
"comment_user_email" => $comment_user_email,
        
"comment_user_email_save" => $comment_user_email_save,
        
"comment_user_mailform_link" => $comment_user_mailform_link,
        
"comment_user_email_button" => $comment_user_email_button,
        
"comment_user_homepage_button" => $comment_user_homepage_button,
        
"comment_user_icq_button" => $comment_user_icq_button,
        
"comment_user_ip" => $comment_user_ip,
        
"comment_headline" => format_text($comment_row[$i]['comment_headline'], 0$config['wordwrap_comments'], 0011), 
        
"comment_text" => format_text($comment_row[$i]['comment_text'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'], 1),
        
"comment_date" => format_date($config['date_format']." ".$config['time_format'], $comment_row[$i]['comment_date']),
        
"row_bg_number" => $row_bg_number,
        
"admin_links" => $admin_links
      
));
      
$comments .= $site_template->parse_template("comment_bit");
    } 
// end while
  
//end else
  
$site_template->register_vars("comments"$comments);
  unset(
$comments);

  
//-----------------------------------------------------
  //--- BBCode & Form -----------------------------------
  //-----------------------------------------------------
  
$allow_posting check_permission("auth_postcomment"$cat_id);
  
$bbcode "";
  if (
$config['bb_comments'] == && $allow_posting) {
$site_template->register_vars(array(
"lang_bbcode" => $lang['bbcode'],
"lang_tag_prompt" => $lang['tag_prompt'],
"lang_link_text_prompt" => $lang['link_text_prompt'],
"lang_link_url_prompt" => $lang['link_url_prompt'],
"lang_link_email_prompt" => $lang['link_email_prompt'],
"lang_list_type_prompt" => $lang['list_type_prompt'],
"lang_list_item_prompt" => $lang['list_item_prompt'],
//BBCODE 2
"lang_close_tags" => $lang['close_tags'],
"lang_all" => $lang['all'],
"smiles_text" => get_smiles_text(),
"bbc_help" => $bbc_help
////BBCODE"
));
    
$bbcode $site_template->parse_template("bbcode");
  }

  if (!
$allow_posting) {
    
$comment_form "";
  }
  else {
    
$user_name = (isset($HTTP_POST_VARS['user_name']) && $error) ? format_text(trim(stripslashes($HTTP_POST_VARS['user_name'])), 2) : (($user_info['user_level'] != GUEST) ? format_text($user_info['user_name'], 2) : "");
    
$comment_headline = (isset($HTTP_POST_VARS['comment_headline']) && $error) ? format_text(trim(stripslashes($HTTP_POST_VARS['comment_headline'])), 2) : "";
    
$comment_text = (isset($HTTP_POST_VARS['comment_text']) && $error) ? format_text(trim(stripslashes($HTTP_POST_VARS['comment_text'])), 2) : "";

    
$site_template->register_vars(array(
      
"bbcode" => $bbcode,
      
"user_name" => $user_name,
      
"comment_headline" => $comment_headline,
      
"comment_text" => $comment_text,
      
"lang_post_comment" => $lang['post_comment'],
      
"lang_name" => $lang['name'],
      
"lang_headline" => $lang['headline'],
      
"lang_comment" => $lang['comment'],
      
"lang_captcha" => $lang['captcha'],
      
"lang_captcha_desc" => $lang['captcha_desc'],
      
"captcha_comments" => (bool)$captcha_enable_comments
    
));
    
$comment_form $site_template->parse_template("comment_form");
  }
  
$site_template->register_vars("comment_form"$comment_form);
  unset(
$comment_form);
// end if allow_comments

// Admin Links
$admin_links "";
if (
$user_info['user_level'] == ADMIN) {
  
$admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=editimage&amp;image_id=".$image_id))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
  
$admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=removeimage&amp;image_id=".$image_id))."\" target=\"_blank\">".$lang['delete']."</a>";
}
elseif (
$is_image_owner) {
  
$admin_links .= ($config['user_edit_image'] != 1) ? "" "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=editimage&amp;".URL_IMAGE_ID."=".$image_id)."\">".$lang['edit']."</a>&nbsp;";
  
$admin_links .= ($config['user_delete_image'] != 1) ? "" "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=removeimage&amp;".URL_IMAGE_ID."=".$image_id)."\">".$lang['delete']."</a>";
}
$site_template->register_vars("admin_links"$admin_links);

// Update Hits
if ($user_info['user_level'] != ADMIN) {
  
$sql "UPDATE ".IMAGES_TABLE."
          SET image_hits = image_hits + 1
          WHERE image_id = 
$image_id";
  
$site_db->query($sql);
}

//-----------------------------------------------------
//---Clickstream---------------------------------------
//-----------------------------------------------------
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'];

if (
$mode == "lightbox" && $in_mode) {
  
$page_url "";
 if (
preg_match("/".URL_PAGE."=([0-9]+)/"$url$regs)) {
    if (!empty(
$regs[1]) && $regs[1] != 1) {
      
$page_url "?".URL_PAGE."=".$regs[1];
    }
  }
  
$clickstream .= "<a href=\"".$site_sess->url(ROOT_PATH."lightbox.php".$page_url)."\" class=\"clickstream\">".$lang['lightbox']."</a>".$config['category_separator'];
}
elseif (
$mode == "search" && $in_mode) {
  
$page_url "";
  if (
preg_match("/".URL_PAGE."=([0-9]+)/"$url$regs)) {
    if (!empty(
$regs[1]) && $regs[1] != 1) {
      
$page_url "&amp;".URL_PAGE."=".$regs[1];
    }
  }
  
$clickstream .= "<a href=\"".$site_sess->url(ROOT_PATH."search.php?show_result=1".$page_url)."\" class=\"clickstream\">".$lang['search']."</a>".$config['category_separator'];
}
else {
  
$clickstream .= get_category_path($cat_id1).$config['category_separator'];
}
$clickstream .= $image_name."</span>";

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  
"msg" => $msg,
  
"clickstream" => $clickstream,
  
"lang_category" => $lang['category'],
  
"lang_added_by" => $lang['added_by'],
  
"lang_description" => $lang['description'],
  
"lang_keywords" => $lang['keywords'],
  
//#################################### Start Mod Last Modifi ###############################################
"lang_image_update"=> $lang['image_update'],
//#################################### End Mod Last Modifi #################################################
  
"lang_date" => $lang['date'],
  
"lang_hits" => $lang['hits'],
  
"lang_downloads" => $lang['downloads'],
  
"lang_rating" => $lang['rating'],
  
"lang_votes" => $lang['votes'],
  
"lang_author" => $lang['author'],
  
"lang_comment" => $lang['comment'],
  
"lang_prev_image" => $lang['prev_image'],
  
"lang_next_image" => $lang['next_image'],
  
"lang_file_size" => $lang['file_size']
));

//-----------------------------------------------------
//--- [MOD] Ajax Star Rating --------------by Bash-T---
//START------------------------------------------------
$site_template->register_vars(array(



"ajax_rating_labels_0" => $lang['ajax_rating_labels'][0],



"ajax_rating_labels_1" => $lang['ajax_rating_labels'][1],



"ajax_rating_labels_2" => $lang['ajax_rating_labels'][2],



"ajax_rating_labels_3" => $lang['ajax_rating_labels'][3],



"ajax_rating_labels_4" => $lang['ajax_rating_labels'][4],



"ajax_rating_labels_5" => $lang['ajax_rating_labels'][5],



"ajax_rating_messages_0" => $lang['ajax_rating_messages'][0],



"ajax_rating_messages_1" => $lang['ajax_rating_messages'][1],



"ajax_rating_messages_2" => $lang['ajax_rating_messages'][2],



"ajax_rating_messages_3" => $lang['ajax_rating_messages'][3],



"ajax_rating_points" => $lang['ajax_rating_points']
));
//-----------------------------------------------------
//--- [MOD] Ajax Star Rating --------------by Bash-T---
//--------------------------------------------------END

$site_template->print_template($site_template->parse_template($main_template));
include(
ROOT_PATH.'includes/page_footer.php');
?>


Wäre super wenn das doch noch irgendwie klappen könnte :)

Respekt für den MOD - Absolutes HAVE-TO :)

Liebe Grüße,
Stefanie

3
Programming / Problem mit Formular: Checkbox auswerten
« on: March 14, 2010, 06:20:27 PM »
EDIT: Hat sich erledigt trotzdem Danke


Hi all!
Ich hoffe hier die Erlösung zu finden... schaffs einfach nicht *heul*  :cry:

Mein Formular soll Checkboxen haben, einmal für die Anrede und einmal um ein Produkt auszuwählen:

Html:

Anrede:
Code: [Select]
<label for="anrede" class="float"><strong>Anrede:</strong></label><br />
<input type="Radio" name="anrede" value="Herr"> Herr <input type="Radio" name="Anrede" value="Frau"> Frau

Angebot:
Code: [Select]
<label for="option1"><input class="choose" name="option[]" id="option1" type="checkbox" value="1" /> &nbsp; Angebot 1</label><br />
<label for="option2"><input class="choose" name="option[]" id="option2" type="checkbox" value="2" /> &nbsp; Angebot 2</label><br />
<label for="option3"><input class="choose" name="option[]" id="option3" type="checkbox" value="3" /> &nbsp; Angebot 3</label><br />

PHP Auswertung:

Code: [Select]
$checkbox = Trim(stripslashes($_GET['checkbox']));
$anrede = Trim(stripslashes($_GET['anrede']));
$titel = Trim(stripslashes($_POST['titel']));
$vorname = Trim(stripslashes($_POST['vorname']));
$name = Trim(stripslashes($_POST['name']));
usw.

Für E-mail:

Code: [Select]
$Body = "";
$Body .= "Angebot: ";
$Body .= $checkbox;
$Body .= "\n";
$Body .= "Anrede: ";
$Body .= $anrede;
$Body .= "\n";
$Body .= "Titel: ";
$Body .= $titel;
$Body .= "\n";
$Body .= "Vorname: ";
$Body .= $vorname;
$Body .= "\n";
$Body .= "Name: ";
$Body .= $name;

Bitte entschuldigt diese Noobie-Frage. Ich weiß das DAS für viele hier lächerlich und einfach ist.

Liebe Grüße,
Stefanie

4
Hi Jan-Lukas!

Das hab ich schon gesehen aber gewünscht wäre das ein User unter "bearbeiten" das bestehende Bild mit einem neuen überschreiben kann.
Also müsste da nochmal das bekannte Upload feld sein oder so ähnlich.

Oder habe ich etwas übersehen?

Liebe Grüße,
Habi

5
Hi! Danke für deine Antwort :-)

Entschuldige das ich das vergessen habe, aber eigentlich war gemeint das der User das Bild aktualisieren kann - konnte dafür noch keinen Mod finden :-(

Liebe Grüße,
Habi

6
Hi  :D

Ich möchte gerne ein bestehendes Bild mit einem neuem überschreiben.
Alles löschen und einfach neu machen möchte ich nicht weil wichtige Daten eingegeben worden sind.

Kann man diese Funktion bei "bearbeiten" irgendwie hinzufügen?
Und wird das aktualisierte Bild dann unter "neue Bilder" angezeigt?

Danke für die Antworten :-)

Liebe Grüße,
Habi

7
Mods & Plugins (Requests & Discussions) / Re: Anpassungen bei 4images
« on: December 14, 2009, 10:12:21 AM »
german

Hi  :D

Das fehlt mir auch noch  :) Wäre klasse!

----------------------

english

Hi :D

Been searching for this too - would be great to have that  :!: :D


Greetings,
Habi

8
Mods & Plugins (Requests & Discussions) / Re: [MOD] Metatag Control v2
« on: December 13, 2009, 04:58:01 PM »
du brauchst doch nur die header.html editieren.
mfg Andi

Achso, ich dachte man muss auf was spezielles achten dabei - damit google das auch findet :)

Danke!
LG, Habi

9
Mods & Plugins (Requests & Discussions) / Re: [MOD] Metatag Control v2
« on: December 13, 2009, 04:28:18 PM »
seih froh das du eine fehlermeldung bekommen hast.
Diese SQL anweisung sollte die tabelle "4images_settings" löschen!!!

 :lol: Genau das hat es auch getan - BOOM - gesamte 4images_settings weg *g* hatte ein Backup und bin SO erleichtert darüber  :D

Ich möchte trotzdem noch irre gerne diesen Mod verwenden - wie kann ich es denn manuell eingeben  :?: :roll:
Hab leider nicht wirklich ahnung vom phpmyadmin  :oops:

**
edit hab gerade seinen Post durchgelesen - wusste nicht das der server dadurch langsamer wird. mal sehen wie man die metatags manuell eingibt o.o
Danke
**

Liebe Grüße,
Habi

10
Mods & Plugins (Requests & Discussions) / Re: [MOD] Metatag Control v2
« on: December 13, 2009, 02:49:49 PM »
EDIT:

Great now I have a total crash  :!: :!: 8O 8O :cry: :cry:

Quote
An unexpected error occured. Please try again later.
ERROR: Could not load configuration settings!

I get this Error after I tried to import the sql file
Please some1 help :(

I did not change the config.php .. I dont understand that T________________T
 :cry: :cry: :cry: :cry: :cry: :cry:

EditEdit: Just found out that the sql deleted my whole 4images_settings.... thats the problem.


----------------------------


Hi :)

Hab ein Problem mit SQL import  :cry:

Error:
Quote
SQL query:

CREATE TABLE IF NOT EXISTS `4images_settings` (
`setting_name` varchar( 255 ) NOT NULL default '',
`setting_value` mediumtext NOT NULL ,
PRIMARY KEY ( `setting_name` )
) ENGINE = MYISAM DEFAULT CHARSET = latin1;

MySQL said: Documentation
#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1' at line 5

Hilfe  8O

Liebe Grüße,
Habi

11
Hi  :D

I've got a lil question to this  :oops:

Category: "Sonstige"

Instand of
Code: [Select]
http://orchids.at/categories.php?cat_id=20&sessionid=c89022422272d32c99fcaf189fa9e991
I have this now:
Code: [Select]
http://orchids.at/cat20.htm
Which is OF COURSE way better than before but isnt it possible to make the link like
Code: [Select]
http://orchids.at/Sonstige.htm
or something close? so the Name of the category is in that link?
Same with the pictures instand of the nr. the pic name which the user picked?

or did I missed something  8O

Thank you ^_^

Greetings,
Habi

12
Thank you very very much  :!:  :!:  :!:
Works perfect ^_^ *cuddle*

Greetings,
Habi

13
Programming / Re: Ø Falsch - Code wird falsch berechnet, Help :-(
« on: December 05, 2009, 07:38:52 PM »
Danke für deine Mühe  :wink:
Werde Ihn nochmal kontaktieren.


Eigenartig  8O "Ø neue Blätter / NT pro Jahr:" wird ja richtig berechnet - irgendwie *-*
Nur die 2 neuen (die ich hinzugefügt hab) geben den gleichen wert wie oben an.  :cry:

kompliziert kompliziert x.x


14
Mods & Plugins (Requests & Discussions) / {if Question} {endif Question} :)
« on: December 05, 2009, 06:15:48 PM »
Hi all!

I hope its okay that I opened a new thread for this.

I want that the chapter heading "Kulturbedingungen" is only showing if one of 6 submissions or more are entered.

Code: [Select]

                         <tr>

                            <td width="100%" bgcolor="#EDECEA" colspan="2"><font color="#BCB8AF"><b>Kulturbedingungen</b></font></td>

                          </tr>
 
   
 
{if image_temp}                     
                           <tr>

                            <td valign="top" class="row1"><b>{lang_image_temp}</b></td>

                            <td valign="top" class="row1">{image_temp}</td>

                          </tr>
{endif image_temp}
{if image_LF} 
                           <tr>

                            <td valign="top" class="row1"><b>{lang_image_LF}</b></td>

                            <td valign="top" class="row1">{image_LF}</td>

                          </tr>
{endif image_LF}
{if image_giessen}
                           <tr>

                            <td valign="top" class="row1"><b>{lang_image_giessen}</b></td>

                            <td valign="top" class="row1">{image_giessen}</td>

                          </tr>
{endif image_giessen}
{if image_duengen}
 
                          <tr>

                            <td valign="top" class="row1"><b>{lang_image_duengen}</b></td>

                            <td valign="top" class="row1">{image_duengen}</td>

                          </tr>
{endif image_duengen}

{if image_licht}
                           <tr>

                            <td valign="top" class="row1"><b>{lang_image_licht}</b></td>

                            <td valign="top" class="row1">{image_licht}</td>

                          </tr>
 
{endif image_licht}

{if image_ruhezeit}

                           <tr>

                            <td valign="top" class="row1"><b>{lang_image_ruhezeit}</b></td>

                            <td valign="top" class="row1">{image_ruhezeit}</td>

                          </tr>
{endif image_ruhezeit}


That didnt worked for me:

Code: [Select]
{if image_temp}
{if image_LF}
{if image_giessen}
{if image_duengen}
{if image_licht}
{if image_ruhezeit}
 
                         <tr>

                            <td width="100%" bgcolor="#EDECEA" colspan="2"><font color="#BCB8AF"><b>Kulturbedingungen</b></font></td>

                          </tr>
{endif image_temp}
{endif image_LF}
{endif image_giessen}
{endif image_duengen}
{endif image_licht}
{endif image_ruhezeit}


Cz it only shows when all 6 are entered.

Is there something like {if this,this,this or THIS}  {than THAT}   :?:


Greetings,
Habi

PS: deutsch: Kann es auch auf Deutsch übersetzten wenn gewünscht.

15
Programming / Re: Ø Falsch - Code wird falsch berechnet, Help :-(
« on: December 05, 2009, 05:13:40 PM »
SQL:
Ist es das was du brauchst?

Code: [Select]
--
-- Table structure for table `vio_statistik`
--

CREATE TABLE IF NOT EXISTS `vio_statistik` (
  `id` int(11) NOT NULL default '0',
  `to_id` int(11) NOT NULL default '0',
  `jahr` int(5) NOT NULL default '0',
  `monat` int(5) NOT NULL default '0',
  `datum` varchar(10) NOT NULL default '',
  `eigenschaft` int(1) NOT NULL default '0',
  KEY `id` (`id`)
) TYPE=MyISAM;

--
-- Dumping data for table `vio_statistik`
--

INSERT INTO `vio_statistik` (`id`, `to_id`, `jahr`, `monat`, `datum`, `eigenschaft`) VALUES
(1, 8, 2009, 4, '1239185940', 2),
(2, 8, 2009, 6, '1244456340', 1),
(9, 8, 2009, 9, '1253656800', 1),
(4, 8, 2008, 4, '1207951200', 1),
(5, 8, 2008, 12, '1228086000', 5),
(6, 8, 2008, 4, '1207951200', 4),
(12, 6, 2009, 11, '1259362800', 3),
(11, 6, 2009, 11, '1259276400', 1),
(10, 8, 2007, 12, '1196550000', 5),
(13, 6, 2009, 12, '1261609200', 4),
(14, 6, 2009, 12, '1260918000', 3),
(17, 24, 2009, 3, '1235862000', 3),
(16, 24, 2009, 2, '1233442800', 2),
(15, 24, 2009, 1, '1230764400', 1),
(18, 24, 2009, 4, '1238536800', 4),
(19, 24, 2009, 5, '1241128800', 5),
(20, 24, 2009, 6, '1243807200', 6),
(21, 24, 2009, 7, '1246399200', 7),
(22, 24, 2009, 8, '1249077600', 8),
(23, 24, 2009, 9, '1251756000', 9),
(24, 24, 2009, 10, '1254348000', 10),
(25, 24, 2009, 3, '1235948400', 3),
(28, 24, 2009, 3, '1238450400', 3),
(27, 24, 2009, 10, '1254434400', 10),
(29, 24, 2009, 3, '1236898800', 1),
(30, 29, 2009, 1, '1230764400', 1),
(31, 29, 2009, 2, '1233442800', 2),
(32, 29, 2009, 3, '1235862000', 3),
(33, 29, 2009, 4, '1238536800', 4),
(34, 29, 2009, 5, '1241128800', 5),
(35, 29, 2009, 6, '1243807200', 6),
(36, 29, 2009, 7, '1246399200', 7),
(37, 29, 2009, 8, '1249077600', 8),
(38, 29, 2009, 9, '1251756000', 9),
(39, 29, 2009, 2, '1233442800', 2);


Quote
ganz ehrlich, deinen code nachzuvollziehen ist ein prüfung.   8O
Wow wirklich... ? Hab dafür 140€ bezahlt... und seid ich überwiesen habe - will er keine Änderungen mehr machen - da er schon zuviel Zeit hineingesteckt hat, sagte er. Deshalb liegt meine Hoffnung ganz bei dir  :cry:

Hab das geändert wie du gesagt hast - hatte aber irgendwie keine Wirkung - naja mir ist nichts aufgefallen  :oops:

Eigentlich sollte
Code: [Select]
echo 'neue Blätter pro Jahr im Durchschnitt: '.round($blx_p_jahr,2).'<br>';im orig. korrekt funktionieren - aber neue Eingaben klappen nicht  :(

*verzweifel*

Liebe Grüße,
Habi




Pages: [1] 2 3 4