craxelburger 0 Report post Posted December 11, 2003 (edited) Wenn ich einen Member verbanne bekommt er folgende Meldung wenn er sich einloggt: Warning: strtr() [function.strtr]: The second argument is not an array. in /home/www/htdocs/skypeflirt.de/forum/sources/functions.php on line 1328 der zurückgegebene Fehler war: Dein Account wurde vorübergehend deaktiviert. Der Account wird wieder aktiviert am <#EXTRA#>. Hier ein Download-Link zu meiner functions.php: Link Was ist denn da nicht in Ordnung? Vielen dank für eure Hilfe. EDIT: Die Email die dem User geschickt wird ist in Ordnung. admin_test, Your member account at Skypeflirt.de Forum has been temporarily suspended. Your account will not be functional until Donnerstag, 11.Dezember 2003 18:58 Uhr (depending on your timezone). This is an automated process and you do not need to do anything to expediate the unsuspension process. Board Address: http://www.skypeflirt.de/forum/index.php Edited December 11, 2003 by craxelburger Share this post Link to post
Stefan 0 Report post Posted December 11, 2003 Da der Fehler durch einen Mod verursacht wird, gibt es zwei Möglichkeiten. Entweder der Modprogrammierer hat da Mist gebaut oder du hast einen Fehler beim Einbau gemacht. Die Variable $Date_Replace_Array ist kein Array, deswegen kommt der Fehler. Entweder ist dem System dieses Array nicht bekannt, obwohl es global gesetzt wurde oder es ist einfach kein Array. Link zum Mod würde jedenfalls helfen. ;) Share this post Link to post
craxelburger 0 Report post Posted December 11, 2003 (edited) Das ist Peters Customize Date Mod. Hier meine Codechange. EDIT: Ganz normal via ModInstaller eingebaut. Edited December 11, 2003 by craxelburger Share this post Link to post
craxelburger 0 Report post Posted December 11, 2003 Was ich nicht verstehe ist, das die Ban-Email ganz normal funktioniert... Share this post Link to post
Stefan 0 Report post Posted December 11, 2003 Ein schneller Workaround, damit es hoffentlich wieder funktioniert. In der functions.php suche global $Date_Replace_Array; und ersetze durch $Date_Replace_Array = array( "January" => $ibforums->lang['mod_M1'], "February" => $ibforums->lang['mod_M2'], "March" => $ibforums->lang['mod_M3'], "April" => $ibforums->lang['mod_M4'], "May" => $ibforums->lang['mod_M5'], "June" => $ibforums->lang['mod_M6'], "July" => $ibforums->lang['mod_M7'], "August" => $ibforums->lang['mod_M8'], "September" => $ibforums->lang['mod_M9'], "October" => $ibforums->lang['mod_M10'], "November" => $ibforums->lang['mod_M11'], "December" => $ibforums->lang['mod_M12'], "Jan" => $ibforums->lang['mod_m1'], "Feb" => $ibforums->lang['mod_m2'], "Mar" => $ibforums->lang['mod_m3'], "Apr" => $ibforums->lang['mod_m4'], "May" => $ibforums->lang['mod_m5'], "Jun" => $ibforums->lang['mod_m6'], "Jul" => $ibforums->lang['mod_m7'], "Aug" => $ibforums->lang['mod_m8'], "Sep" => $ibforums->lang['mod_m9'], "Oct" => $ibforums->lang['mod_m10'], "Nov" => $ibforums->lang['mod_m11'], "Dec" => $ibforums->lang['mod_m12'], "Sunday" => $ibforums->lang['mod_D0'], "Monday" => $ibforums->lang['mod_D1'], "Tuesday" => $ibforums->lang['mod_D2'], "Wednesday" => $ibforums->lang['mod_D3'], "Thursday" => $ibforums->lang['mod_D4'], "Friday" => $ibforums->lang['mod_D5'], "Saturday" => $ibforums->lang['mod_D6'], "Sun" => $ibforums->lang['mod_d0'], "Mon" => $ibforums->lang['mod_d1'], "Tue" => $ibforums->lang['mod_d2'], "Wed" => $ibforums->lang['mod_d3'], "Thu" => $ibforums->lang['mod_d4'], "Fri" => $ibforums->lang['mod_d5'], "Sat" => $ibforums->lang['mod_d6'] ); So sollte es jedenfalls wieder laufen. Kann mich damit jetzt nicht ausgiebig befassen, da die Weihnachtsfeier gleich ruft. :lol: Share this post Link to post
craxelburger 0 Report post Posted December 11, 2003 Super! Danke Stefan. Wie immer Top Support hier. Vielleicht kannst Du Peter ja sagen was in seinem Mod schiefgegangen ist, da das glauch ich die (hoffentlich) aktuelle Version 1.5 ist die ich einsetze. Share this post Link to post
craxelburger 0 Report post Posted December 11, 2003 Ich markiere das Thema mal als erledigt. Trotzdem hier nochmal die scheinbar fehlerhafte Codechange in ihrer ganzen Länge, da ich die Dateien wieder von meinem Server Lösche. [COMMENT] /* +-------------------------------------------------------------------------- | Invision Board v1.3 | ======================================== | > Mod_Installer | > Module written by Peter(Pit) | > Peter member at ibforen.de, ibplanet.de, Pit member at ibplanet.com | > email: Peter@ibforen.de | | > Mod_Installer Version Number: 1.2 (2003-11-03) | > <c> 2003 by Peter | | > This is the CodeChange.php for Mod Customize Date by Peter +-------------------------------------------------------------------------- */ [COMMENT_END] [iNTERFACE] 'title' => 'Customize Date', 'sub_title' => 'Anpassung der Datumsanzeige in der eigenen Sprache', 'category' => 'Major Mod', 'compatible' => 'Invision Power Board 1.2', 'version' => '1.0', 'author' => 'Peter', 'email' => 'Peter@ibforen.de', 'mod_token' => 'mod_customize_date', [iNTERFACE_END] [HISTORY] 1.5 [arrow] 1.6 Optimierung [HISTORY_END] [SQL_END] [code][MOD_TOKEN] mod_customize_date [FNAME] sources/functions.php [STEP] [SEARCH] return gmdate($this->time_options[$method], ($date + $this->offset) ); } [INSERT] /*-- mod_customize_date exclude begin [MODE] insert_above [STEP] [SEARCH] return gmdate($this->time_options[$method], ($date + $this->offset) ); } [INSERT] -- mod_customize_date exclude end */ //-- mod_customize_date begin global $Date_Replace_Array; if ($this->time_options[$method] != "") { return Strtr(gmdate($this->time_options[$method], ($date + $this->offset) ), $Date_Replace_Array); } else { return Strtr(gmdate($method, ($date + $this->offset) ), $Date_Replace_Array); } } //-- mod_customize_date end [MODE] insert_below [FNAME_END] [MOD_TOKEN] mod_customize_date [FNAME] index.php [STEP] [SEARCH] $ibforums->lang = $std->load_words($ibforums->lang, 'lang_global', $ibforums->lang_id); [INSERT] //-- mod_customize_date begin $ibforums->lang_id = $ibforums->member['language'] ? $ibforums->member['language'] : ($ibforums->vars['default_language']!=""?$ibforums->vars['default_language']:'en'); if (file_exists(ROOT_PATH."lang/".$ibforums->lang_id."/mod_customize_date_lang.php")) { $ibforums->lang = $std->load_words($ibforums->lang, 'mod_customize_date_lang', $ibforums->lang_id); } else { die("Could not load required language file 'lang/$ibforums->lang_id/mod_customize_date_lang.php'"); } $Date_Replace_Array = array( "January" => $ibforums->lang['mod_M1'], "February" => $ibforums->lang['mod_M2'], "March" => $ibforums->lang['mod_M3'], "April" => $ibforums->lang['mod_M4'], "May" => $ibforums->lang['mod_M5'], "June" => $ibforums->lang['mod_M6'], "July" => $ibforums->lang['mod_M7'], "August" => $ibforums->lang['mod_M8'], "September" => $ibforums->lang['mod_M9'], "October" => $ibforums->lang['mod_M10'], "November" => $ibforums->lang['mod_M11'], "December" => $ibforums->lang['mod_M12'], "Jan" => $ibforums->lang['mod_m1'], "Feb" => $ibforums->lang['mod_m2'], "Mar" => $ibforums->lang['mod_m3'], "Apr" => $ibforums->lang['mod_m4'], "May" => $ibforums->lang['mod_m5'], "Jun" => $ibforums->lang['mod_m6'], "Jul" => $ibforums->lang['mod_m7'], "Aug" => $ibforums->lang['mod_m8'], "Sep" => $ibforums->lang['mod_m9'], "Oct" => $ibforums->lang['mod_m10'], "Nov" => $ibforums->lang['mod_m11'], "Dec" => $ibforums->lang['mod_m12'], "Sunday" => $ibforums->lang['mod_D0'], "Monday" => $ibforums->lang['mod_D1'], "Tuesday" => $ibforums->lang['mod_D2'], "Wednesday" => $ibforums->lang['mod_D3'], "Thursday" => $ibforums->lang['mod_D4'], "Friday" => $ibforums->lang['mod_D5'], "Saturday" => $ibforums->lang['mod_D6'], "Sun" => $ibforums->lang['mod_d0'], "Mon" => $ibforums->lang['mod_d1'], "Tue" => $ibforums->lang['mod_d2'], "Wed" => $ibforums->lang['mod_d3'], "Thu" => $ibforums->lang['mod_d4'], "Fri" => $ibforums->lang['mod_d5'], "Sat" => $ibforums->lang['mod_d6'] ); //-- mod_customize_date end [MODE] insert_below [FNAME_END] [MOD_TOKEN] mod_customize_date [FNAME] sources/Admin/admin_functions.php [STEP] [SEARCH] return gmdate($this->time_options[$method], ($date + $this->time_offset) ); } [INSERT] /*-- mod_customize_date exclude begin [MODE] insert_above [STEP] [SEARCH] return gmdate($this->time_options[$method], ($date + $this->time_offset) ); } [INSERT] -- mod_customize_date exclude end */ //-- mod_customize_date begin global $Date_Replace_Array; if ($this->time_options[$method] != "") { return Strtr(gmdate($this->time_options[$method], ($date + $this->time_offset) ), $Date_Replace_Array); } else { return Strtr(gmdate($method, ($date + $this->time_offset) ), $Date_Replace_Array); } } //-- mod_customize_date end [MODE] insert_below [FNAME_END] [MOD_TOKEN] mod_customize_date [FNAME] admin.php [STEP] [SEARCH] $std = new FUNC; [INSERT] //-- mod_customize_date begin $ibforums->lang_id = $ibforums->member['language'] ? $ibforums->member['language'] : ($ibforums->vars['default_language']!=""?$ibforums->vars['default_language']:'en'); if (file_exists(ROOT_PATH."lang/".$ibforums->lang_id."/mod_customize_date_lang.php")) { $ibforums->lang = $std->load_words($ibforums->lang, 'mod_customize_date_lang', $ibforums->lang_id); } else { die("Could not load required language file 'lang/$ibforums->lang_id/mod_customize_date_lang.php'"); } $Date_Replace_Array = array( "January" => $ibforums->lang['mod_M1'], "February" => $ibforums->lang['mod_M2'], "March" => $ibforums->lang['mod_M3'], "April" => $ibforums->lang['mod_M4'], "May" => $ibforums->lang['mod_M5'], "June" => $ibforums->lang['mod_M6'], "July" => $ibforums->lang['mod_M7'], "August" => $ibforums->lang['mod_M8'], "September" => $ibforums->lang['mod_M9'], "October" => $ibforums->lang['mod_M10'], "November" => $ibforums->lang['mod_M11'], "December" => $ibforums->lang['mod_M12'], "Jan" => $ibforums->lang['mod_m1'], "Feb" => $ibforums->lang['mod_m2'], "Mar" => $ibforums->lang['mod_m3'], "Apr" => $ibforums->lang['mod_m4'], "May" => $ibforums->lang['mod_m5'], "Jun" => $ibforums->lang['mod_m6'], "Jul" => $ibforums->lang['mod_m7'], "Aug" => $ibforums->lang['mod_m8'], "Sep" => $ibforums->lang['mod_m9'], "Oct" => $ibforums->lang['mod_m10'], "Nov" => $ibforums->lang['mod_m11'], "Dec" => $ibforums->lang['mod_m12'], "Sunday" => $ibforums->lang['mod_D0'], "Monday" => $ibforums->lang['mod_D1'], "Tuesday" => $ibforums->lang['mod_D2'], "Wednesday" => $ibforums->lang['mod_D3'], "Thursday" => $ibforums->lang['mod_D4'], "Friday" => $ibforums->lang['mod_D5'], "Saturday" => $ibforums->lang['mod_D6'], "Sun" => $ibforums->lang['mod_d0'], "Mon" => $ibforums->lang['mod_d1'], "Tue" => $ibforums->lang['mod_d2'], "Wed" => $ibforums->lang['mod_d3'], "Thu" => $ibforums->lang['mod_d4'], "Fri" => $ibforums->lang['mod_d5'], "Sat" => $ibforums->lang['mod_d6'] ); //-- mod_customize_date end [MODE] insert_below [FNAME_END] [MOD_TOKEN] mod_customize_date [FNAME] sources/Admin/ad_settings.php [STEP] [SEARCH] case 'dodates': [INSERT] //-- mod_customize_date begin $current_version = (int)str_replace('.', '', phpversion()); if ($current_version < 420) { $magic = ini_get ('magic_quotes_gpc'); } else { $a = ini_get_all(); $magic = $a['magic_quotes_gpc']['global_value']; unset ($a); } if (!$magic) { global $HTTP_POST_VARS; $HTTP_POST_VARS['clock_short'] = addslashes($HTTP_POST_VARS['clock_short']); $HTTP_POST_VARS['clock_joined'] = addslashes($HTTP_POST_VARS['clock_joined']); $HTTP_POST_VARS['clock_long'] = addslashes($HTTP_POST_VARS['clock_long']); } //-- mod_customize_date end [MODE] insert_below [STEP] [SEARCH] $INFO['clock_short'] [INSERT] /*-- mod_customize_date exclude begin [MODE] insert_above [STEP] [SEARCH] $INFO['clock_short'] [INSERT] -- mod_customize_date exclude end */ //-- mod_customize_date begin addslashes($INFO['clock_short'] ) //-- mod_customize_date end [MODE] insert_below [STEP] [SEARCH] $INFO['clock_joined'] [INSERT] /*-- mod_customize_date exclude begin [MODE] insert_above [STEP] [SEARCH] $INFO['clock_joined'] [INSERT] -- mod_customize_date exclude end */ //-- mod_customize_date begin addslashes($INFO['clock_joined']) //-- mod_customize_date end [MODE] insert_below [STEP] [SEARCH] $INFO['clock_long'] [INSERT] /*-- mod_customize_date exclude begin [MODE] insert_above [STEP] [SEARCH] $INFO['clock_long'] [INSERT] -- mod_customize_date exclude end */ //-- mod_customize_date begin addslashes($INFO['clock_long'] ) //-- mod_customize_date end [MODE] insert_below [FNAME_END] [CODE_END] [COPY] [list] [*]lang/en nach lang/en [*]Kopiere andere Sprachdateien in ihre eigenen Verzeichnisse lang/x[/list] [COPY_END] [CUSTOMIZE] Gehe zu ACP [arrow] Board Settings [arrow] Date Formats, um ein eigenes Datumsformat zu erstellen. Wähle eine Zeichenkette z.B. [CODE]"l, d.F Y, G:i \\U\\h\\r" für detaillierte deutsche Datumsanzeige[/code] Siehe auch unter www.php.net [CUSTOMIZE_END] [COMMENT_MOD] Die Modifikation der Funktion dates() in sources/admin/ad_settings.php erfolgt wegen eines Bugs im ipb. Wähle die Formatstrings sehr sorgfältig. Einige Zeichen habe eine spezielle Bedeutung als Steuerzeichen. Sie müssen dann mit einem Backslash maskiert werden. Beispiel: Für das Wort "Uhr" direkt hinter der Uhrzeit, muss der String so maskiert werden "\\U\\h\\r". Sieh auch unter www.php.net, um mehr INformationen über Steuerzeichen zu erhalten. Feedback ist willkommen. [COMMENT_MOD_END] [HISTORY_OLD]1.4 [arrow] 1.5 Compatible with ipb 1.2, Step 11.3 [arrow] 1.4[list]Bugfix, Step 2Bugfix due to server restriction magic_quotes_gpc, Step 3, Part 1 [*]1.2 ⇒ 1.3BugfixFixing of interference with other mods Step 1 and Step 2: Change $Replace_ArrayCopy all mod_customize_date_lang.php [/list][HISTORY_OLD_END] Share this post Link to post
craxelburger 0 Report post Posted December 11, 2003 Sorry, hab nicht richtig hingeguckt. So ganz funktioniert das doch noch nicht... Es kommt jetzt folgende Meldung: der zurückgegebene Fehler war: Dein Account wurde vorübergehend deaktiviert. Der Account wird wieder aktiviert am , 11. 2003 17:58 Uhr . Share this post Link to post
craxelburger 0 Report post Posted December 11, 2003 Ich habe Peter auf den Bug aufmerksam gemacht. Er hat sofort eine neue Version der Customize Date MOD erstellt. http://www.rwb-essen.de/cgi-bin/ModInstall...hp?showtopic=36 Share this post Link to post
Stefan 0 Report post Posted December 12, 2003 Ich sag dazu besser nichts, aber es hat schon seinen Grund warum die Versionsnummern bei Peter so schnell in die Höhe gehen. :P Share this post Link to post