Verfasst: 03.02.2006 16:17
Natürlich funktioniert es dann ^^ Habs ja selber so...
Gruss, Andy
Gruss, Andy
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Was soll das bedeuten ??Andy120 hat geschrieben:
Die einte Lösung von seardnear ging nicht ganz mit folgendem Code =>
Auswirkung? Cash MOD zeigt keine Taler nach dem Beitrag schreiben an, und addiert diese auch nicht.Code: Alles auswählen
if ( !empty($GLOBALS['cm_posting']) ) { $cash_message = $GLOBALS['cm_posting']->update_post($mode, $post_data, $forum_id, $topic_id, $post_id, $topic_type, $bbcode_uid, $post_username, $post_message); }
GreetzZzzZ Andy
Code: Alles auswählen
So ist jetzt die functions_post.php
if (!empty($GLOBALS['cm_posting']) )
{
if ( isset($GLOBALS['cm_posting']) )
{
$cash_message = $GLOBALS['cm_posting']->update_post($mode, $post_data, $forum_id, $topic_id, $post_id, $topic_type, $bbcode_uid, $post_username, $post_message);
}
}
$meta = ...
und die includes/quiz.php so :
//
// This function post a message with the quizbot
//
function make_post($subject, $message, $mode, $topic_id = 0, $post_id = 0)
{
global $db, $phpbb_root_path, $phpEx, $userdata;
global $html_entities_match, $html_entities_replace, $code_entities_match, $code_entities_replace;
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
define('IN_CASHMOD', true);
define('CM_POSTING', true);
global $table_prefix;
include($phpbb_root_path . 'includes/functions_cash.'.$phpEx);
if ( isset($userdata) )
Code: Alles auswählen
if (!empty($GLOBALS['cm_posting']) )
{
if ( isset($GLOBALS['cm_posting']) )
{
$cash_message = $GLOBALS['cm_posting']->update_post($mode, $post_data, $forum_id, $topic_id, $post_id, $topic_type, $bbcode_uid, $post_username, $post_message);
}
}
Code: Alles auswählen
if ( isset($GLOBALS['cm_posting']) )
{
$cash_message = $GLOBALS['cm_posting']->update_post($mode, $post_data, $forum_id, $topic_id, $post_id, $topic_type, $bbcode_uid, $post_username, $post_message);
}
Das hat bei mir funktioniert. Die Fehlermeldung ist weg und der Cash und Quizmod laufen nun zusammen. Super, danke!Andy120 hat geschrieben:Das ist schonmal der erste Punkt, der zweite besteht darin, in der functions_post.php folgende Zeile: (Lösung von Mickroz)saerdnaer hat geschrieben:in der includes/quiz.php:
suche:danach einf�gen:Code: Alles auswählen
function make_post($subject, $message, $mode, $topic_id = 0, $post_id = 0) { global $db, $phpbb_root_path, $phpEx, $userdata; global $html_entities_match, $html_entities_replace, $code_entities_match, $code_entities_replace; include($phpbb_root_path . 'includes/bbcode.'.$phpEx); include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
anschlie�end hoffen das es funktioniertCode: Alles auswählen
define('IN_CASHMOD', true); define('CM_POSTING', true); global $table_prefix; include($phpbb_root_path . 'includes/functions_cash.'.$phpEx);
achja die alten �nderungen sollten vorher wieder gel�scht werden
mitCode: Alles auswählen
$cash_message = $GLOBALS['cm_posting']->update_post($mode, $post_data, $forum_id, $topic_id, $post_id, $topic_type, $bbcode_uid, $post_username, $post_message);
zu ersetzen.Code: Alles auswählen
if ( isset($GLOBALS['cm_posting']) ) { $cash_message = $GLOBALS['cm_posting']->update_post($mode, $post_data, $forum_id, $topic_id, $post_id, $topic_type, $bbcode_uid, $post_username, $post_message); }
Dann sollte das ganze dingens laufen.
--
Die einte Lösung von seardnear ging nicht ganz mit folgendem Code =>
Auswirkung? Cash MOD zeigt keine Taler nach dem Beitrag schreiben an, und addiert diese auch nicht.Code: Alles auswählen
if ( !empty($GLOBALS['cm_posting']) ) { $cash_message = $GLOBALS['cm_posting']->update_post($mode, $post_data, $forum_id, $topic_id, $post_id, $topic_type, $bbcode_uid, $post_username, $post_message); }