Version: 1.00, by magnus
Developer Last Online: Feb 2012
Version: 3.0.0
Rating:
Released: 01-27-2004
Last Update: Never
Installs: 15
No support by the author.
Ban Ignored/Specified Users from Replying v2.0
Description
This hack will prevent ignored users from replying to your threads, as well as give you the option to ban additional users without adding them to your ignore list.
Information
This hack was previously titled "User-Defined Posting Bans (Ban specified users from replying)"
Tested on RC4, should work on RC1+
Version History
v1.0 - Initial Release
v2.0 - Added auto-ban of ignored users, created installer script for convenience
##############################################################
ALTER TABLE " . TABLE_PREFIX . "thread ADD bannedposters VARCHAR( 250 ) NOT NULL ;
##############################################################
this sql error
PHP Code:
requ?te SQL :
ALTER TABLE " . TABLE_PREFIX . "thread ADD bannedposters VARCHAR( 250 ) NOT NULL
MySQL a r?pondu:
#1064 - Erreur de syntaxe pr?s de '" . TABLE_PREFIX . "thread ADD bannedposters VARCHAR( 250 ) NO' ? la ligne 1
[Documentation] ? [Retour]
an idea (on RC3) ?
Hrm, are you including the ";" at the end? There's no reason for that query not to work, you can try removing the " . TABLE_PREFIX ." portion (provided you don't actually use a table prefix).
Hrm, are you including the ";" at the end? There's no reason for that query not to work, you can try removing the " . TABLE_PREFIX ." portion (provided you don't actually use a table prefix).
idem
PHP Code:
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 '" . TABLE_PREFIX . "thread ADD bannedposters VARCHAR( 250 ) NO' ? la ligne 1
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 '" . TABLE_PREFIX . "thread ADD bannedposters VARCHAR( 250 ) NO' ? la ligne 1
on a RC3 coldly to install :surprised:
veiled the solution
PHP Code:
ALTER TABLE thread ADD bannedposters VARCHAR( 250 ) NOT NULL ;
Hrm, are you including the ";" at the end? There's no reason for that query not to work, you can try removing the " . TABLE_PREFIX ." portion (provided you don't actually use a table prefix).
Quote:
Originally Posted by Socrate
veiled the solution
PHP Code:
ALTER TABLE thread ADD bannedposters VARCHAR( 250 ) NOT NULL ;
thank at Pithchoume
That's what I said to do, heh. Seems RC3 doesn't like " . TABLE_PREFIX . " .. odd.
BUGFIX!
With the existing preg_split() statement, users with spaces in their name could cause problems for other users which share a common world. For example, if the user "BIG BAD GUY" is banned from a thread, inherently the user "BIG BOY" would be banned because of the shared word, "BIG". With the following fix, that will be fixed:
In newreply.php:
Find: ** NOTE, THERE ARE TWO INSTANCES OF THIS, REPLACE BOTH! **
The only drawback to this fix, is now users are comma delimited instead of space. So, you'll need to update the phrase (bannd_users_desc) to reflect this, personally, I use List of users, separated by commas, who cannot reply to this thread. (ie. user1,user2).
This has been updated in the attachment in the first post, only existing users need to concern themselves with this.