Antworten: 5
Seite [1] |
|
celly Rock the board Beiträge: 78 |
# Thema - 18.01.2009 um 23:20 Uhr
Hi all Ich habe mal meine debug.php ausgeführt und volgenden text erhalten debug.php... PHP-Warning: Notice: Undefined variable: name in /srv/www/vhosts/roughnet.de/subdomains/germansoldiers/httpdocs/mods/shoutbox/nav list.php on line 93 Warning: cs_html_vote - Function goes away in next minor release, use themes instead Warning: cs_html_div - Function goes away in next minor release, use themes instead Warning: cs_html_span - Function goes away in next minor release, use themes instead Warning: cs_html_table - Function goes away in next minor release, use themes instead Warning: cs_html_roco - Function goes away in next minor release, use themes instead SELECT options_name, options_value FROM cs_options WHERE options_mod = 'clansphere' SELECT users_id, users_nick, users_lang, access_id, users_limit, users_view, users_timezone, users_dstime, users_pwd FROM cs_users WHERE users_id = 1 LIMIT 0,1 UPDATE cs_users SET users_laston='1232312745' WHERE users_id='1' SELECT * FROM cs_access WHERE access_id = 5 LIMIT 0,1 SELECT count_id, count_time FROM cs_count WHERE count_ip = '79.209.118.166' ORDER BY count_id DESC LIMIT 0,1 UPDATE cs_count SET count_time='1232312745', count_location='news/recent' WHERE count_id='2497' SELECT options_name, options_value FROM cs_options WHERE options_mod = 'counter' SELECT options_name, options_value FROM cs_options WHERE options_mod = 'fckeditor' SELECT COUNT(*) FROM cs_news WHERE news_publishs_at != 0 AND news_public = 0 AND news_publishs_at < 1232312745 SELECT options_name, options_value FROM cs_options WHERE options_mod = 'gallery' SELECT options_name, options_value FROM cs_options WHERE options_mod = 'news' SELECT * FROM cs_categories WHERE categories_mod = 'news' AND categories_access <= 5 ORDER BY categories_name SELECT COUNT(DISTINCT news_id) FROM cs_news nws INNER JOIN cs_categories cat ON nws.categories_id = cat.categories_id WHERE nws.news_public > 0 AND cat.categories_access <= 5 SELECT nws.news_id AS news_id, nws.news_headline AS news_headline, nws.news_time AS news_time, nws.news_text AS news_text, nws.news_pictures AS news_pictures, nws.users_id AS users_id, usr.users_nick AS users_nick, usr.users_active AS users_active, nws.categories_id AS categories_id, cat.categories_picture AS categories_picture, cat.categories_name AS categories_name, nws.news_mirror AS news_mirror, nws.news_mirror_name AS news_mirror_name, nws.news_readmore AS news_readmore, nws.news_readmore_active AS news_readmore_active FROM cs_news nws INNER JOIN cs_users usr ON nws.users_id = usr.users_id INNER JOIN cs_categories cat ON nws.categories_id = cat.categories_id WHERE nws.news_public > 0 AND cat.categories_access <= 5 ORDER BY news_attached DESC, news_time DESC LIMIT 0,8 SELECT options_name, options_value FROM cs_options WHERE options_mod = 'abcode' SELECT games_id, games_name FROM cs_games ORDER BY games_name DESC SELECT users_id, users_nick, users_country FROM cs_users SELECT COUNT(*) FROM cs_comments WHERE comments_mod = 'news' AND comments_fid = 20 SELECT games_id, games_name FROM cs_games ORDER BY games_name DESC SELECT users_id, users_nick, users_country FROM cs_users SELECT COUNT(*) FROM cs_comments WHERE comments_mod = 'news' AND comments_fid = 19 SELECT games_id, games_name FROM cs_games ORDER BY games_name DESC SELECT users_id, users_nick, users_country FROM cs_users SELECT COUNT(*) FROM cs_comments WHERE comments_mod = 'news' AND comments_fid = 18 SELECT games_id, games_name FROM cs_games ORDER BY games_name DESC SELECT users_id, users_nick, users_country FROM cs_users SELECT COUNT(*) FROM cs_comments WHERE comments_mod = 'news' AND comments_fid = 17 SELECT games_id, games_name FROM cs_games ORDER BY games_name DESC SELECT users_id, users_nick, users_country FROM cs_users SELECT COUNT(*) FROM cs_comments WHERE comments_mod = 'news' AND comments_fid = 16 SELECT games_id, games_name FROM cs_games ORDER BY games_name DESC SELECT users_id, users_nick, users_country FROM cs_users SELECT COUNT(*) FROM cs_comments WHERE comments_mod = 'news' AND comments_fid = 15 SELECT games_id, games_name FROM cs_games ORDER BY games_name DESC SELECT users_id, users_nick, users_country FROM cs_users SELECT COUNT(*) FROM cs_comments WHERE comments_mod = 'news' AND comments_fid = 14 SELECT games_id, games_name FROM cs_games ORDER BY games_name DESC SELECT users_id, users_nick, users_country FROM cs_users SELECT COUNT(*) FROM cs_comments WHERE comments_mod = 'news' AND comments_fid = 12 SELECT metatags_id, metatags_name, metatags_content FROM cs_metatags WHERE metatags_active = 1 ORDER BY metatags_name SELECT * FROM cs_ticker tck JOIN cs_options opt ON opt.options_mod='ticker' WHERE tck.ticker_id=opt.options_value AND opt.options_name='active_id' LIMIT 0,1 SELECT options_name, options_value FROM cs_options WHERE options_mod = 'ticker' SELECT users_id, users_nick, users_country, users_active, users_invisible FROM cs_users WHERE users_laston > 1232312445 AND users_active = '1' AND users_invisible = '0' ORDER BY users_laston DESC LIMIT 0,8 SELECT options_name, options_value FROM cs_options WHERE options_mod = 'events' SELECT users_age FROM cs_users WHERE users_age LIKE '%-01-%' SELECT events_time FROM cs_events WHERE events_time >= '1230768000' AND events_time <= '1233446399' SELECT COUNT(*) FROM cs_shoutbox SELECT options_name, options_value FROM cs_options WHERE options_mod = 'shoutbox' SELECT shoutbox_name, shoutbox_text, shoutbox_date FROM cs_shoutbox ORDER BY shoutbox_date DESC LIMIT 0,10 SELECT abcode_func, abcode_pattern, abcode_result, abcode_file FROM cs_abcode SELECT COUNT(*) FROM cs_messages WHERE users_id_to = '1' AND messages_show_receiver = 1 AND messages_view = 0 SELECT options_value FROM cs_options WHERE options_mod="slidebox" AND options_name="width" LIMIT 0,1 SELECT options_value FROM cs_options WHERE options_mod="slidebox" AND options_name="height" LIMIT 0,1 SELECT options_value FROM cs_options WHERE options_mod="slidebox" AND options_name="fadetime" LIMIT 0,1 SELECT options_value FROM cs_options WHERE options_mod="slidebox" AND options_name="bgcolor" LIMIT 0,1 SELECT * FROM cs_slidebox SELECT users_readtime FROM cs_users WHERE users_id = '1' LIMIT 0,1 SELECT thr.threads_headline AS threads_headline, thr.threads_id AS threads_id, thr.threads_last_time AS threads_last_time FROM cs_threads thr INNER JOIN cs_board frm ON frm.board_id = thr.board_id LEFT JOIN cs_read red ON thr.threads_id = red.threads_id AND red.users_id = '1' WHERE frm.board_access <= '5' AND board_pwd = '' AND thr.threads_last_time > '1231103145' AND (thr.threads_last_time > red.read_since OR red.threads_id IS NULL) ORDER BY thr.threads_last_time DESC LIMIT 0,8 SELECT mm.members_task AS members_task, mm.members_since AS members_since, usr.users_picture AS users_picture, usr.users_country AS users_country, usr.users_hidden AS users_hidden, usr.users_id AS users_id, usr.users_nick AS users_nick, usr.users_name AS users_name, usr.users_surname AS users_surname FROM cs_members mm INNER JOIN cs_users usr ON mm.users_id = usr.users_id ORDER BY RAND() LIMIT 0,1 SELECT votes_id, votes_question, votes_election, votes_several FROM cs_votes WHERE votes_access <= '5' AND votes_start <= '1232312746' AND votes_end >= '1232312746' LIMIT 0,1 SELECT users_id, users_nick, users_register, users_active FROM cs_users WHERE users_active = '1' ORDER BY users_register DESC LIMIT 0,4 SELECT COUNT(*) FROM cs_count WHERE count_time > '1232312446' SELECT COUNT(*) FROM cs_count WHERE count_time > '1232229600' SELECT COUNT(*) FROM cs_count WHERE count_time > '1232143200' AND count_time < '1232229599' SELECT COUNT(*) FROM cs_count WHERE count_time > '1230760800' SELECT count_num FROM cs_count_archiv SELECT COUNT(*) FROM cs_count SELECT banners_picture, banners_alt, banners_url, categories_id FROM cs_banners ORDER BY banners_order ASC also so viel ich da raus lesen kann hat er ein problem in der navlist.php von der shoutbox.. im nächsten beitrag die navlist.php....hab leider 1378 Zeichen zu viel deswegen der zweite beitrag! ------------------ Zuletzt editiert von celly am 18.01.2009 um 23:21 Uhr (1x Editiert)
|
Inaktiv |
|
celly Thread-Ersteller Rock the board Beiträge: 78 |
# Antwort: 1 - 18.01.2009 um 23:20 Uhr
navlist.php... <?php // ClanSphere 2007 - www.clansphere.net // $Id: navlist.php 2007-08-01 17:00:00Z Drag0n $ $cs_lang = cs_translate('shoutbox'); $captcha = extension_loaded('gd') ? 1 : 0; $shoutbox_count = cs_sql_count(__FILE__,'shoutbox'); $shoutbox_options = cs_sql_option(__FILE__,'shoutbox'); $data = array(); $data['shoutbox'] = ''; $min = 0; if ($shoutbox_options['order'] == 'ASC') { $order = 'shoutbox_date ASC'; if ($shoutbox_count > $shoutbox_options['limit']) { $min = $shoutbox_count - $shoutbox_options['limit']; } } else $order = 'shoutbox_date DESC'; $cells = 'shoutbox_name, shoutbox_text, shoutbox_date'; $data['shoutbox'] = cs_sql_select(__FILE__,'shoutbox',$cells,0,$order,$min,$shoutbox_optio ns['limit']); $pattern = "=([^\s*?]{".$shoutbox_options['linebreak']."}(?![^<]+>|[^&]*="; $count_shoutbox = count($data['shoutbox']); for($i = 0; $i < $count_shoutbox; $i++) { $temp = preg_replace($pattern,"\\0 ",$data['shoutbox'][$i]['shoutbox_text']); $data['shoutbox'][$i]['shoutbox_text'] = cs_secure($temp,0,1,0); $data['shoutbox'][$i]['shoutbox_name'] = cs_secure($data['shoutbox'][$i]['shoutbox_name'],0,0,0); $data['shoutbox'][$i]['shoutbox_date'] = cs_date('unix',$data['shoutbox'][$i]['shoutbox_date'],1); } $data['form']['url'] = cs_url('shoutbox','create'); $data['form']['nick'] = empty($account['users_nick']) ? 'Nick' : cs_secure($account['users_nick']); $data['height']['shoutbox'] = $shoutbox_options['height']; if(!empty($captcha) && empty($account['users_id'])) { if ($shoutbox_options['security_code'] == '1') { $data['form']['captcha'] = cs_html_img('mods/captcha/generate.php?mini'); $data['form']['captcha'] .= cs_html_input('captcha','','text',3,3); } else { $data['form']['captcha'] = ''; } } else { $data['form']['captcha'] = ''; } $data['url']['archieve'] = cs_url('shoutbox','list'); $data['form']['uri'] = cs_secure($_SERVER['REQUEST_URI']); $max_text = $shoutbox_options['max_text']; if ($shoutbox_options['characters_left'] == '1') { echo "<script type=\"text/javascript\"> function CheckLen(Target) { var max_text = \"".$max_text."\"; StrLen=Target.value.length; if (StrLen==1&&Target.value.substring(0,1)==\" \") { Target.value=\"\"; StrLen=0; } if (StrLen>max_text ) { Target.value=Target.value.substring(0,max_text); CharsLeft=0; }else { CharsLeft=max_text-StrLen; } document.shout_navlist.Anzahl.value=CharsLeft; } </script>"; $data['characters_left']['shoutbox'] = '{lang:characters_left_short}:<input readonly="readonly" maxlength="3" size="2" name="Anzahl" class="form"><br />'; } else { $data['characters_left']['shoutbox'] = ''; } $cs_lang = cs_translate('system/abcodes'); $win = " onclick=\"window.open('features.php?name=".$name."', '" . $cs_lang['abclist']; $win .= "', 'width=450,height=600,scrollbars=yes')\""; $data['abcode']['smileylink'] = cs_html_anchor($cs_lang['abclist'],'Smileys',$win); echo cs_subtemplate(__FILE__,$data,'shoutbox','navlist'); ?> ich hab schon bischen durch geschaut aber den fehler nicht gefunden! Danke schon mal im Vorraus... MfG: Celly ------------------ |
Inaktiv |
|
fay-pain Specialist Beiträge: 2006 |
# Antwort: 2 - 18.01.2009 um 23:55 Uhr
nächstes mal bitte als Codepaste... ich glaub keiner möchte hier Zeilen zählen http://paste.ubuntuusers.de/393767/ Was ist das? Kannst du vielleicht noch ein wenig mehr dazu sagen? Ist jedenfalls ziemlich abweichend vom Original. Zusammengebastelt? $name ist undefiniert, steht auch in der ersten Fehlermeldung (debug). Die Fehler dadrunter sind irrelevant (cs_html_..) und der Rest ist noch unwichtiger ------------------ Manchmal hast du fay und machmal pain. - hajo |
Inaktiv |
|
celly Thread-Ersteller Rock the board Beiträge: 78 |
# Antwort: 3 - 19.01.2009 um 18:05 Uhr
Hi ja werde das nächste mal codepast verwenden sorry hab nicht dran gedacht ! Also ja ich habe ein Modul von hier auf gespielt bei dem die navlist.php dabei war, Shoutbox +++++ (für Clansphere)... Fügt folgende Sachen in die Shoutbox: - Datum und Uhrzeit kursiv und kleiner - Name fett und farbig (Farbe bitte selbst ändern (navlist.tpl). Jetzt: #00a2ff) - Scrollleiste (Höhe kann über Option angepasst werden) - Sicherheitscode-Abfrage (kann über Option hinzu- oder abgeschaltet werden) - Smileys (kann über Option hinzu- oder abgeschaltet werden) - Verbleibende Zeichen (kann über Option hinzu- oder abgeschaltet werden) files_externes_js: Hier befindet sich das Javascript in einer externen Datei. files_externes_js: Das Javascript würde mit in die navlist.php aufgenommen, da es bei einigen Usern zu Problemen mit der Werte-Übergabe kam. Es wurden somit die noch verbleibenden Zeichen nicht angezeigt. Danke noch mal an alle, die mich bei diesem Mod unterstützt haben!!! Aber sonst hab ich nix verändert! Was muss ich in der .php ändern damit der fehler verschwindet ? MfG: Celly ------------------ |
Inaktiv |
|
duRiel Weltmeister Herkunft: Cambridge Beiträge: 7300 |
# Antwort: 4 - 19.01.2009 um 18:51 Uhr
mach in deine php datei mal irgendwo dazu: $name = 'sh_text'; gruß duRiel |
Inaktiv |
|
celly Thread-Ersteller Rock the board Beiträge: 78 |
# Antwort: 5 - 19.01.2009 um 18:56 Uhr
vielen dank der fehler ist weg .. danke für die hilfe !! MfG:celly ------------------ |
Inaktiv |
|
Dieses Thema wurde von Fr33z3m4n geschlossen. |
|
Antworten: 5
Seite [1] |