Card Hack

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Gebruikersavatar
Toad
Berichten: 406
Lid geworden op: 24 sep 2005, 20:08

Card Hack

Bericht door Toad » 09 jul 2006, 12:51

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

Nymphy
Berichten: 1504
Lid geworden op: 28 mar 2003, 18:00
Locatie: Grevenbicht

Bericht door Nymphy » 09 jul 2006, 12:54

kun je eens de modbeschrijving hier posten wat je in posting.php moest doen

ElbertF
Berichten: 5803
Lid geworden op: 12 okt 2004, 08:34
Contacteer:

Bericht door ElbertF » 09 jul 2006, 12:56

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):

Code: Selecteer alles

	case 'editpost': 
$redirect =
break;

Gebruikersavatar
Toad
Berichten: 406
Lid geworden op: 24 sep 2005, 20:08

Bericht door Toad » 09 jul 2006, 13:30

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.

ElbertF
Berichten: 5803
Lid geworden op: 12 okt 2004, 08:34
Contacteer:

Bericht door ElbertF » 09 jul 2006, 13:37

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:

Code: Selecteer alles

 . "
En dat is niet wat Nymphy bedoelde, maar je hoeft het ook niet meer te posten ;)

Gebruikersavatar
Toad
Berichten: 406
Lid geworden op: 24 sep 2005, 20:08

Bericht door Toad » 09 jul 2006, 13:50

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

ElbertF
Berichten: 5803
Lid geworden op: 12 okt 2004, 08:34
Contacteer:

Bericht door ElbertF » 09 jul 2006, 13:58

In dezelfde regel:

Code: Selecteer alles

f.auth_attachments, $count_sql
..veranderen in:

Code: Selecteer alles

f.auth_attachments" . $count_sql . ",

Gebruikersavatar
Toad
Berichten: 406
Lid geworden op: 24 sep 2005, 20:08

Bericht door Toad » 09 jul 2006, 13:58

Jep, dat werkt. Bedankt. :)

Gesloten