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
veiled, always similar, to install on a virgin rc4 and always the same error, to afflict :ermm:
PHP Code:
Database error in vBulletin 3.0.0 Release Candidate 4:
Invalid SQL:
SELECT
userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
language.phrasegroup_threadmanage AS phrasegroup_threadmanage,
language.phrasegroup_posting AS phrasegroup_posting,
language.phrasegroup_postingbans AS phrasegroup_postingbans,
language.phrasegroup_global AS phrasegroup_global,
language.options AS lang_options,
language.languagecode AS lang_code,
language.charset AS lang_charset,
language.locale AS lang_locale,
language.imagesoverride AS lang_imagesoverride,
language.dateoverride AS lang_dateoverride,
language.timeoverride AS lang_timeoverride,
language.registereddateoverride AS lang_registereddateoverride,
language.calformat1override AS lang_calformat1override,
language.calformat2override AS lang_calformat2override,
language.logdateoverride AS lang_logdateoverride,
language.decimalsep AS lang_decimalsep,
language.thousandsep AS lang_thousandsep
FROM user AS user
INNER JOIN userfield AS userfield ON (user.userid = userfield.userid)
INNER JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) INNER JOIN language AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid))
WHERE user.userid = 1
mysql error: Champ 'language.phrasegroup_postingbans' inconnu dans field list
mysql error number: 1054
Date: Wednesday 18th of February 2004 08:12:40 AM
I will like that somebody of other tests it because, I have to install it almost 10 times and I ever succeeded has to make it function ! :tired:
Ok, obviously the problem is you haven't created the phrasegroup 'postingbans'. That's what all these errors are telling you.
This SQL query is the one that adds that:
[SQL]INSERT INTO `phrasetype` VALUES (152, 'postingbans', 'User-Defined Posting Bans', 3);[/SQL]
Are you using a prefix for your tables? If so, you may need to adjust the queries. I don't use additional languages on my forum, so I'm not sure if you need to include the "language.*" prefix.
In any event, this is undoubtedly your problem, as I stated before.
I have to ask has a friend to test your hack, it also has the same problem as me to know the error sql, I am to afflict, but the hack does not function
Wait, are you asking me to have a friend install the hack? Or, are you telling me that you had a friend install the hack?
In any event, there's not really much more I can do to help unless you can create a temporary account on your system so I can check everything for myself. I'm 99.9% sure it's something simple, SQL related. I've installed this on 3 RC4 forums, and it worked fine.
Socrate, it just dawned on me what the problem was.
Run this query:
[SQL]
ALTER TABLE `language` ADD `phrasegroup_postingbans` MEDIUMINT NOT NULL;
[/SQL]
That will fix your problem. I've gone ahead and updated the .TXT file.
good, that still does not go (see screen1), the text does not appear.
I have thus to add the sentences in ACP STATE manually (via manager language, screen2) and the text appears (your requests sql for the addition of the sentences does not function apparement)
INSERT INTO `phrasetype` VALUES (152, 'postingbans', 'User-Defined Posting Bans', 3);
INSERT INTO `phrase` VALUES (17188, 0, 'banned_users', 'Banned Users', 152);
INSERT INTO `phrase` VALUES (17189, 0, 'banned_users_desc', 'List of users, separated by commas, who cannot reply to this thread. (ie. user1,user2)', 152);
INSERT INTO `phrase` VALUES (17190, 0, 'banned_from_posting', 'You have been prohibited by the thread author from posting in this thread!', 1000);
who seems to pose problems, and to replace them by manual installation of the sentences in the ACP