Seite 21 von 111

Verfasst: 20.12.2002 11:59
von Gast
saerdnaer hat geschrieben:
Morpheus hat geschrieben:Ich habe es versucht, aber leider kommt nun folgender Fehler:
zeig mal ein bischen mehr code... ( zeile 218 - 227 )

@Kakarrot: url zu deiner seite...

ah
ok:

Url zum Board http://zelda-planet.ufosnetwork.com/phpbb2/

Verfasst: 20.12.2002 15:24
von Kakarrot
ups das war ich! hab vergessen zu loggen :D

Verfasst: 20.12.2002 17:07
von saerdnaer
speichere deine posting.php als posting.txt ab und poste den link zu ihr...

ah

Verfasst: 20.12.2002 17:35
von Kakarrot

Verfasst: 20.12.2002 17:45
von Kakarrot
Oh!
Ich döskopf!
habe schon wider den gleichen fehler gemahct und in eine funktion das Kommentar eingefügt!
naja zum glück hastemich auf posting.php aufmerksam gemahct!
Es klappt jetzt alles wieder!
Toller Hack danke!

Ich habe da eine Idee:
Ich habe mal in einem wbb gesehen dass sie ihrepunkte über ein konto zueinander verschreiben konnten.
ist sowas auch bei diesem Hack möglich?

Verfasst: 20.12.2002 18:26
von Kakarrot
saerdnaer hat geschrieben:

..und nu noch {POSTER_QUIZ_POINTS}' in der templates/xxx/viewtopic_body.tpl eintragen.
wo in viewtopic_body.tpl?

Verfasst: 20.12.2002 18:28
von saerdnaer
suche einfach nach rank... da in der nähe kannst du das einbauen...

ah

Verfasst: 20.12.2002 19:54
von Faser
Hmm, kann nochmal jemand den kompletten Mod posten?

Habe jetzt nämlich keine Lust, mir die einzelnen Teile selber zusamenzusuchen

Verfasst: 21.12.2002 02:15
von Benny
Nächste Quiz-Frage am
Datum & Uhrzeit wann der die nächste Quiz-Frage
gestellt wird. (Stellt sich automatisch weiter..)
man kann dort nur zwischen 1968 und 1972 einstellen

Wieso??? :roll:


Benny

Verfasst: 21.12.2002 13:16
von Benny
man kann dort nur zwischen 1968 und 1972 einstellen
hat niemand einen ahnung??

Wenn ich eine Frage Quizfrage manuell stellen will, kommt folgende Fehlermeldung:

Code: Alles auswählen

Warning: Missing argument 21 for submit_post() in /usr/local/httpd/htdocs/971/903/forum/includes/functions_post.php on line 222


Allgemeiner Fehler 
Error in posting

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near ' , 1)' at line 1

INSERT INTO phpbbol_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_icon, topic_quiz) VALUES ('Quiz Frage #1 ...', 2, 1040472501, 21, 0, 0, 0, , , 1)

Line : 268
File : /usr/local/httpd/htdocs/971/903/forum/includes/functions_post.php 


Powered by phpBB 2.0.3 © 2001 phpBB Group

Code aus der functions_post.php

Code: Alles auswählen

//
// Post a new topic/reply/poll or edit existing post/poll
//
Zeile 222: function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length, &$MsgIcon)
{
	global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
	global $userdata, $user_ip;

Nur die Zeile 256 bis 275

Code: Alles auswählen

if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) )
	{
		$topic_vote = ( !empty($poll_title) && count($poll_options) >= 2 ) ? 1 : 0;
		
		// BEGINN Quiz Hack
		$quiz_sql1 = !empty($post_data['topic_quiz']) ? ', topic_quiz' : '';
		$quiz_sql2 = !empty($post_data['topic_quiz']) ? ', 1' : '';
		// END Quiz Hack
		
		$sql  = ( $mode != "editpost" ) ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote, topic_icon, topic_quiz) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote, , $quiz_sql2)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type, topic_vote = $topic_vote, topic_icon = $MsgIcon WHERE topic_id = $topic_id";
		if ( !$db->sql_query($sql) )
		{
			message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
		}

		if ( $mode == 'newtopic' )
		{
			$topic_id = $db->sql_nextid();
		}
	}