da ich meinen Membern etwas gutes tun wollte, habe ich mal den Instand Messenger 1.0 ( externer Link ) auf meiner Clanseite Installiert.
Soweit läuft alles auch, aber wenn ich die Seite wechsle z.B. auf user klicke, verschwindet das Fenster vom Messenger.
Auch das minimieren des Fensters funktioniert leider nicht
Die SuFu wurde von mir ebenfalls benutzt, jedoch ohne wirklichen Erfolg.
Hier wären die veränderten Dateien von mir...
Headbereich der index.htm und index_forum.htm:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <script type="text/javascript" src="include/includes/js/jquery.js"></script> <script type="text/javascript" src="include/includes/js/messenger.js"></script> <link type="text/css" rel="stylesheet" media="all" href="include/includes/css/messenger/chat.css" /> <link type="text/css" rel="stylesheet" media="all" href="include/includes/css/messenger/screen.css" /> <!--[if lte IE 7]> <link type="text/css" rel="stylesheet" media="all" href="include/includes/css/messenger/screen_ie.css" /> <![endif]--> <style type="text/css"> .xfire {display:inline-block;background-image: url('include/images/social_icon_but/xfire.png');width: 50px; height: 50px;border: none;} .xfire:hover {background-image: url('include/images/social_icon_but/xfire_a.png');} .steam {display:inline-block;background-image: url('include/images/social_icon_but/steam.png');width: 50px; height: 50px;border: none;} .steam:hover {background-image: url('include/images/social_icon_but/steam_a.png');} .facebook {display:inline-block;background-image: url('include/images/social_icon_but/facebook.png');width: 50px; height: 50px;border: none;} .facebook:hover {background-image: url('include/images/social_icon_but/facebook_a.png');} .battlelog {display:inline-block;background-image: url('include/images/social_icon_but/battlelog.png');width: 50px; height: 50px;border: none;} .battlelog:hover {background-image: url('include/images/social_icon_but/battlelog_a.png');} </style> <script type="text/javascript" src="include/designs/DDvFBG/jquery.min.js"></script> <script type="text/javascript" src="include/includes/js/fade.js"></script> <title>{TITLE}</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <meta name="keywords" content="battlefield 2,battlefield 3, fun sniper clan, fsc, bf2, bf3, cod4, mw2, css, sniper, membersuche, fun clan, black ops, clan, toplist, zocken, gameserver, {=FSC=}, dragondesigns" /> <link rel="stylesheet" type="text/css" href="include/designs/DDvFBG/style.css"> <link rel="stylesheet" href="include/designs/DDvFBG/Slider/slider.css" type="text/css" media="screen" /> <script type="text/javascript" src="include/designs/DDvFBG/Slider/js/jquery.js"></script> <script type="text/javascript" src="include/designs/DDvFBG/Slider/js/scripts.js"></script> <script type="text/javascript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_nbGroup(event, grpName) { //v6.0 var i,img,nbArr,args=MM_nbGroup.arguments; if (event == "init" && args.length > 2) { if ((img = MM_findObj(args[2])) != null && !img.MM_init) { img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src; if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array(); nbArr[nbArr.length] = img; for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = img.MM_dn = args[i+1]; nbArr[nbArr.length] = img; } } } else if (event == "over") { document.MM_nbOver = nbArr = new Array(); for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up); nbArr[nbArr.length] = img; } } else if (event == "out" ) { for (i=0; i < document.MM_nbOver.length; i++) { img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; } } else if (event == "down") { nbArr = document[grpName]; if (nbArr) for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; } document[grpName] = nbArr = new Array(); for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up; nbArr[nbArr.length] = img; } } } //--> </script> </head>
index.php:
<?php // Copyright by: Manuel Staechele // Support: www.ilch.de // Codeedit by Topolino define ('main' , true); //Konfiguration zur Anzeige von Fehlern //Auf http://www.php.net/manual/de/function.error-reporting.php sind die verfügbaren Modi aufgelistet //Seit php-5.3 ist eine Angabe der TimeZone Pflicht $bannedips = file("bannliste.txt"); foreach ($bannedips as $key => $ip) $bannedips[$key] = trim($ip); if(in_array($_SERVER['REMOTE_ADDR'],$bannedips)) die("IP Bann!"); if (version_compare(phpversion(), '5.3') != -1) { if (E_ALL > E_DEPRECATED) { @error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED); } else { @error_reporting(E_ALL ^ E_NOTICE); } date_default_timezone_set('Europe/Berlin'); } else { @error_reporting(E_ALL ^ E_NOTICE); } @ini_set('display_errors','On'); session_name ('sid'); session_start (); require_once ('include/includes/config.php'); require_once ('include/includes/loader.php'); db_connect(); $allgAr = getAllgAr (); $menu = new menu(); user_identification(); if ( isset ( $_GET['messenger'] ) ) { require_once('include/includes/func/messenger.php'); } site_statistic(); if (is_admin()) { require_once ('include/contents/' . $menu->get_url()); } if ($allgAr['wartung'] == 1) { require_once ('include/contents/wartung.php'); } else { require_once ('include/contents/' . $menu->get_url()); } db_close(); debug('anzahl sql querys: ' . $count_query_xyzXYZ); debug('', 1, false); ?>
userdetails.php:
<?php # Copyright by: Manuel # Support: www.ilch.de # modified by bitworld-gaming.de defined ('main') or die ( 'no direct access' ); $uid = intval($menu->get(2)); $abf = 'SELECT * FROM prefix_user WHERE id = "'.$uid.'"'; $erg = db_query($abf); if (db_num_rows($erg)) { $row = db_fetch_assoc($erg); $avatar = ''; if ( file_exists($row['avatar'])) { $avatar = '<img src="'.$row['avatar'].'" border="0">'; }else { $avatar = '<img src="include/images/avatars/wurstegal.jpg" border="0>'; } $regsek = mktime ( 0,0,0, date('m'), date('d'), date('Y') ) - $row['regist']; $regday = round($regsek / 86400); $postpday = ( $regday == 0 ? 0 : round($row['posts'] / $regday, 2 ) ); $posts = $row['posts']; #Ranking Balken #Grafiken definieren $rank_01 = '<img src="include/images/forum/rank/rank01.png" alt="" border="0"><br>'; $rank_02 = '<img src="include/images/forum/rank/rank02.png" alt="" border="0"><br>'; $rank_03 = '<img src="include/images/forum/rank/rank03.png" alt="" border="0"><br>'; $rank_04 = '<img src="include/images/forum/rank/rank04.png" alt="" border="0"><br>'; $rank_05 = '<img src="include/images/forum/rank/rank05.png" alt="" border="0"><br>'; $rank_06 = '<img src="include/images/forum/rank/rank06.png" alt="" border="0"><br>'; $rank_07 = '<img src="include/images/forum/rank/rank07.png" alt="" border="0"><br>'; $rank_08 = '<img src="include/images/forum/rank/rank08.png" alt="" border="0"><br>'; $rank_09 = '<img src="include/images/forum/rank/rank09.png" alt="" border="0"><br>'; $rank_10 = '<img src="include/images/forum/rank/rank10.png" alt="" border="0"><br>'; $rank_11 = '<img src="include/images/forum/rank/rank11.png" alt="" border="0"><br>'; $rank_12 = '<img src="include/images/forum/rank/rank12.png" alt="" border="0"><br>'; $rank_13 = '<img src="include/images/forum/rank/rank13.png" alt="" border="0"><br>'; $rank_14 = '<img src="include/images/forum/rank/rank14.png" alt="" border="0"><br>'; $rank_15 = '<img src="include/images/forum/rank/rank15.png" alt="" border="0"><br>'; $rank_16 = '<img src="include/images/forum/rank/rank16.png" alt="" border="0"><br>'; $rank_17 = '<img src="include/images/forum/rank/rank17.png" alt="" border="0"><br>'; $rank_18 = '<img src="include/images/forum/rank/rank18.png" alt="" border="0"><br>'; $rank_19 = '<img src="include/images/forum/rank/rank19.png" alt="" border="0"><br>'; $rank_20 = '<img src="include/images/forum/rank/rank20.png" alt="" border="0"><br>'; #Bezugnehmen auf das Ranking des users if ( $row['posts'] != '' ) { if ($posts <= '4') { $row['rang'] .= $rank_01; } elseif ($posts <= '9') { $row['rang'] .= $rank_02; } elseif ($posts <= '19') { $row['rang'] .= $rank_03; } elseif ($posts <= '29') { $row['rang'] .= $rank_04; } elseif ($posts <= '39') { $row['rang'] .= $rank_05; } elseif ($posts <= '49') { $row['rang'] .= $rank_06; } elseif ($posts <= '74') { $row['rang'] .= $rank_07; } elseif ($posts <= '99') { $row['rang'] .= $rank_08; } elseif ($posts <= '149') { $row['rang'] .= $rank_09; } elseif ($posts <= '199') { $row['rang'] .= $rank_10; } elseif ($posts <= '249') { $row['rang'] .= $rank_11; } elseif ($posts <= '299') { $row['rang'] .= $rank_12; } elseif ($posts <= '399') { $row['rang'] .= $rank_13; } elseif ($posts <= '499') { $row['rang'] .= $rank_14; } elseif ($posts <= '599') { $row['rang'] .= $rank_15; } elseif ($posts <= '699') { $row['rang'] .= $rank_16; } elseif ($posts <= '799') { $row['rang'] .= $rank_17; } elseif ($posts <= '899') { $row['rang'] .= $rank_18; } elseif ($posts < '999') { $row['rang'] .= $rank_19; } elseif ($posts >= '1000') { $row['rang'] .= $rank_20; } else {$row['rang'] = ""; } } #Homepage Abfrage $homepage = ''; if(substr($row['homepage'], 0, 7) != 'http://') $homepage = 'http://' . $row['homepage']; if(trim($row['homepage']) == '') $homepage = 'keine Homepage vorhanden'; else $homepage = "<a href=\"".$row['homepage']."\" target=\"_blank\">".$row['homepage']."</a>"; #Topics erstellt $topics = db_query('SELECT count(`prefix_topics`.`id`) FROM `prefix_topics` LEFT JOIN `prefix_user` ON `prefix_user`.`name` = `prefix_topics`.`erst` WHERE `prefix_user`.`id` = \''.$uid.'\''); $topics = mysql_fetch_array($topics); #Status $status = ''; if($row['status'] == 1) $status = 'aktiv'; elseif($row['status'] == 0) $status = 'inaktiv'; $ar = array ( 'UID' => $uid, 'STATUS' => $status, 'HOMEPAGE' => $homepage, 'NAME' => $row['name'], 'JOINED' => date('d M Y',$row['regist']), 'LASTAK' => date('d M Y - H:i',$row['llogin']), 'POSTS' => $row['posts'], 'postpday' => $postpday, 'RANG' => userrang ($row['posts'],$uid), 'RECHT' => getlistrecht($row['recht']), 'AVATA' => $avatar, 'RANGGRAFIK' => $row['rang'], 'GAMES' => getteams($row['id']), 'TOPICS' => $topics['0'], ); $title = $allgAr['title'].' :: Users :: Details von '.$row['name']; $hmenu = $extented_forum_menu.'<a class="smalfont" href="?omember">Users</a><b> » </b> Details von '.$row['name'].$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); $tpl = new tpl ( 'user/userdetails' ); $l = profilefields_show ( $uid ); $ar['rowspan'] = 4 + substr_count($l, '<tr><td class="'); $ar['profilefields'] = $l; $tpl->set_ar_out($ar,0); } else { $title = $allgAr['title'].' :: Users :: User nicht gefunden'; $hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">Users</a> '.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); echo 'Der Benutzer wurde nicht gefunden bzw. die Seite wurde nicht richtig aufgerufen.<br />'; } $design->footer(); ?>
Ausschnitt der userdetails.htm:
<table width="100%" cellpadding="3" cellspacing="1" class="border"> <tr class="Fcat"> <th colspan="2"><div align="left"><b>{_lang_detailsfrom} {NAME}</b></div></th> <th><div align="center"><b>Avatar & Rang</b></div></th> </tr> <tr> <td class="Fnorm" width="28%"><img src="include/images/userdetails/user.png" style="padding-right:5px" width="16" height="16" border="0" />{_lang_nickname}</td> <td class="Cnorm" width="43%">{NAME}</td> <td class="Cnorm" width="29%" rowspan="{rowspan}" valign="top" align="center"> <div align="center">{AVATA} <br /><br /> <font class="smalfont">{RANGGRAFIK}</font> <br /> <font class="smalfont">{RANG}</font><br /><a href="javascript:void(0)" onclick="javascript:chatWith({UID},'{NAME}')">IM Fenster öffnen</a> </div></td> </tr>
Ich würde mich freuen, wenn mir jemand helfen könnte und bitte es so erklären, damit es auch keine Coder verstehen
Mfg, Galle
betroffene Homepage: externer Link
Edit: hat den niemand einen Tipp, wie man das Problem beheben könnte?
Zuletzt modifiziert von Galle81 am 04.03.2013 - 19:01:22