Pagina 1 van 1
Card Hack
Geplaatst: 09 jul 2006, 12:51
door Toad
Ik heb deze MOD net geïnstalleerd en krijg een probleem als ik een topic wil aanmaken (posting.php).
Parse error: syntax error, unexpected T_CASE in /home/rob/domains/ngame.nl/public_html/forum/posting.php on line 371
Het tekstbestand:
http://forum.ngame.nl/posting.txt
Geplaatst: 09 jul 2006, 12:54
door Nymphy
kun je eens de modbeschrijving hier posten wat je in posting.php moest doen
Geplaatst: 09 jul 2006, 12:56
door ElbertF
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;
De laatste drie regels van dit stuk even weghalen (regels 370/373):
Geplaatst: 09 jul 2006, 13:30
door Toad
Bedankt Spambot. Het werkt.
____
Blijkbaar zit er ook een fout in viewtopic.php
Parse error: syntax error, unexpected T_STRING in /home/rob/domains/ngame.nl/public_html/forum/viewtopic.php on line 150
http://forum.ngame.nl/viewtopic.txt
____
@ 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.
Geplaatst: 09 jul 2006, 13:37
door ElbertF
Aan het einde van regel 149:
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 . "
Dit laatste stukje weghalen:
En dat is niet wat Nymphy bedoelde, maar je hoeft het ook niet meer te posten

Geplaatst: 09 jul 2006, 13:50
door Toad
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
Geplaatst: 09 jul 2006, 13:58
door ElbertF
In dezelfde regel:
..veranderen in:
Geplaatst: 09 jul 2006, 13:58
door Toad
Jep, dat werkt. Bedankt. :)