Het tekstbestand: http://forum.ngame.nl/posting.txtParse error: syntax error, unexpected T_CASE in /home/rob/domains/ngame.nl/public_html/forum/posting.php on line 371
Card Hack
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

Card Hack
Ik heb deze MOD net geïnstalleerd en krijg een probleem als ik een topic wil aanmaken (posting.php).
Code: Selecteer alles
switch( $mode )
{
case 'newtopic':
$redirect = "mode=newtopic&" . POST_FORUM_URL . "=" . $forum_id;
break;
case 'reply':
case 'topicreview':
$redirect = "mode=reply&" . POST_TOPIC_URL . "=" . $topic_id;
break;
case 'quote':
case 'editpost':
$redirect = "mode=quote&" . POST_POST_URL ."=" . $post_id;
break;
}
case 'editpost':
$redirect =
break;
Code: Selecteer alles
case 'editpost':
$redirect =
break;
Bedankt Spambot. Het werkt.
____
Blijkbaar zit er ook een fout in viewtopic.php
____
@ Nymphy
____
Blijkbaar zit er ook een fout in viewtopic.php
http://forum.ngame.nl/viewtopic.txtParse error: syntax error, unexpected T_STRING in /home/rob/domains/ngame.nl/public_html/forum/viewtopic.php on line 150
____
@ Nymphy
This is a major hack that will give your users/mods/admins (you choose) the right to give other users cards based upon their posts.
There are 4 types of cards.
RED - Ban the user immediately.
YELLOW - Give the users a warning, and if the total of warning is more than a limit that you set, then ban the user.
GREEN - Reactivate the user.
BLUE - Report post to moderators.
Aan het einde van regel 149:
Dit laatste stukje weghalen:
En dat is niet wat Nymphy bedoelde, maar je hoeft het ook niet meer te posten 
Code: Selecteer alles
$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments, $count_sql, f.auth_ban, f.auth_greencard, f.auth_bluecard . "
Code: Selecteer alles
. "

Ik krijg nu een andere fout:
Could not obtain topic information
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' f.auth_ban, f.auth_greencard, f.auth_bluecard FROM phpbb_topics t, phpbb_forum' at line 1
SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments, , f.auth_ban, f.auth_greencard, f.auth_bluecard FROM phpbb_topics t, phpbb_forums f WHERE t.topic_id = 2 AND f.forum_id = t.forum_id
Line : 156
File : viewtopic.php
In dezelfde regel:
..veranderen in:
Code: Selecteer alles
f.auth_attachments, $count_sql
Code: Selecteer alles
f.auth_attachments" . $count_sql . ",