Hallo Oxpus und friends,
bin nach langer Enthaltsamkeit von phpbb plus auf Icy Phoenix umgestiegen. Versuche jetzt ein paar Mods anzupassen. Bei Meeting Mod habe ich jetzt ein Problem:
Die bb_codes werden jetzt richtig angezeigt, beim Einfügen der Kommentare habe ich allerdings ein Problem, diese werden nicht gespeichert.
Anbei die veränderte meeting.php. Habe ich einen Fehler gemacht?
Meeting Mod - Probleme mit Kommentare - XS-bbcode
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Meeting Mod - Probleme mit Kommentare - XS-bbcode
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Zuletzt geändert von JohnGF am Mi 28.Feb, 2007 13:30, insgesamt 1-mal geändert.
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
Icy Phoenix???
Ist, soweit ich sehe auch nur ein auf phpBB basierendes premodded Forum.
Aber was da wie behandelt werden muss...
Was hast Du denn an der meeting.php angepasst?
Klappen denn die BBCodes nicht bereits ohne Anpassungen?
Gibts bei den Kommentaren eine Fehlermeldung und sind überhaupt alle Tabellen in der DB korrekt vorhanden?
Ist, soweit ich sehe auch nur ein auf phpBB basierendes premodded Forum.
Aber was da wie behandelt werden muss...
Was hast Du denn an der meeting.php angepasst?
Klappen denn die BBCodes nicht bereits ohne Anpassungen?
Gibts bei den Kommentaren eine Fehlermeldung und sind überhaupt alle Tabellen in der DB korrekt vorhanden?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Problem bbcode-parser
Stimmt, Icy Phoenix ist auch nur premodde. Das Problem ist der bbcode-parser von UseLees.
Es kommt keine Fehlermeldung. Die datenbank ist o.k..
Ich mußte die bbcodes anpassen
Es kommt keine Fehlermeldung. Die datenbank ist o.k..
Ich mußte die bbcodes anpassen
- this parser could well break some other mods and stop your forum from working
- the function 'smilies_pass()' is no longer used or needed with this parser, to get around the error see example 1 below.
- the function 'bbencode_second_pass()' is also not used in this parser, any mods that make use of either of the afore mentioned function will need to be altered to work with this parser
- to add BBCode mods to this parser is completely different than how they are added to the phpBB parser, so the code you would normally add to 'bbcode.php' and/or 'bbcode.tpl' cannot be added to this parser. The code will need to be either altered or completely rewritten before the BBCode tag you want to add will work in this parser
Example 1:
Problem: Fully integrated shoutbox gives this error;
Quote:
Fatal error: Call to undefined function: smilies_pass() in /u2/www/pc-corner_biz/data/www/shoutbox_view.php on line 110
Solution: (not tested at the time of posting as I don't have the mod installed)
Code: [download] [hide]
Code: [download] [show]
if ( $board_config['allow_smilies'] && $shout_row['user_allowsmile'] && $shout != '' & $shout_row['enable_smilies'])
{
// $shout = smilies_pass($shout);
$bbcode->allow_smilies = true;
}
// $shout = bbencode_second_pass($shout,$shout_row['shout_bbcode_uid']);
$bbcode->allow_bbcode = $board_config['allow_bbcode'];
$shout = $bbcode->parse($shout,$shout_row['shout_bbcode_uid']);
As you can see above all that's changed is the class variable 'allow_smilies' is set to true if the condition in the if statement is true. Then the line with the call to the function 'bbencode_second_pass' is commented out and replaced with setting the class variable 'allow_bbcode' to the value of the board config setting. The message is then parsed, along with the smilies by the next line (115).
A method similar to the above can be used to fix any mod that calls either 'smilies_pass' or 'bbencode_second_pass' by commenting out the lines, setting the appropriate calls variables and then calling the '$bbcode->parse()' function in the bbcode class.
Zuletzt geändert von JohnGF am Mi 28.Feb, 2007 15:12, insgesamt 1-mal geändert.
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
Super, wo ich gerade schon so viel Zeit habe.
Sorry, aber aktuell kann ich Dir da wirklich nicht helfen...
Sorry, aber aktuell kann ich Dir da wirklich nicht helfen...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!