Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Ban Ignored/Specified Users from Replying v2.0 Details »»
Ban Ignored/Specified Users from Replying v2.0
Version: 1.00, by magnus magnus is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

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

Click here for upgrade instructions from 1.0!

Planned Features
v3.0
- Who knows? You tell me.

If you use this, please click

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 02-16-2004, 10:28 PM
Catch-22|BL Catch-22|BL is offline
 
Join Date: Aug 2003
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Take your time and thanks for your efforts.

If nothing else, I can wait to see someone else with RC4 give it a try.
Reply With Quote
  #33  
Old 02-17-2004, 06:57 AM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Catch-22|BL
Take your time and thanks for your efforts.

If nothing else, I can wait to see someone else with RC4 give it a try.
I am on RC4!

It misses a sentence one would say (see screen) another thing, at the time of the edition of a station or the user was banished, one cannot nothing to modify (screen2)
Reply With Quote
  #34  
Old 02-17-2004, 09:37 AM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Socrate
I am on RC4!

It misses a sentence one would say (see screen) another thing, at the time of the edition of a station or the user was banished, one cannot nothing to modify (screen2)
You're missing a sentence because either a phrase is missing, more specifically:

[SQL]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);[/SQL]

or you forgot to add 'postingbans' to the $phrasegroup variable in newthread.php.

Also, you cannot modify the banned users by simply editing the first post -- you must edit the thread itself via "Thread Tools" -> "Edit Thread".
Reply With Quote
  #35  
Old 02-17-2004, 10:04 AM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not, I have to check I have to add this request sql well
PHP Code:
INSERT INTO `phraseVALUES (171890'banned_users_desc''List of users, separated by commas,  who cannot reply to this thread. (ie. user1,user2)'152); 
indeed, I had to forget to add:
PHP Code:
'postingbans' 
veiled, after addition of that, I obtains this when I click on "newthread":
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=0user.usergroupiddisplaygroupid) 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.useridINNER JOIN language AS language ON (language.languageid = IF(user.languageid 01user.languageid)) 
        
WHERE user.userid 1
    
mysql error
Champ 'language.phrasegroup_postingbans' inconnu dans field list

mysql error number1054 
AND, you known as to find this:
PHP Code:
'title' => STR 
But there are 2 text of this: ligne 472 and ligne 987, is it necessary to make the changes 2 times or right at the first ?
Reply With Quote
  #36  
Old 02-17-2004, 04:40 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Socrate
PHP Code:
Database error in vBulletin 3.0.0 Release Candidate 4:
mysql errorChamp 'language.phrasegroup_postingbans' inconnu dans field list 
You didn't run all the queries in the .txt file, you need to run:

[SQL]INSERT INTO `phrasetype` VALUES (152, 'postingbans', 'User-Defined Posting Bans', 3);[/SQL]

Quote:
Originally Posted by Socrate
AND, you known as to find this:
PHP Code:
'title' => STR 
But there are 2 text of this: ligne 472 and ligne 987, is it necessary to make the changes 2 times or right at the first ?
Search for:
PHP Code:
        'reason' => STR,
        
'title' => STR 
Replace with:
PHP Code:
        'reason' => STR,
        
'title' => STR,
        
'bannedposters' => STR 
Reply With Quote
  #37  
Old 02-17-2004, 05:57 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by magnus
You didn't run all the queries in the .txt file, you need to run:

[SQL]INSERT INTO `phrasetype` VALUES (152, 'postingbans', 'User-Defined Posting Bans', 3);[/SQL]



Search for:
PHP Code:
        'reason' => STR,
        
'title' => STR 
Replace with:
PHP Code:
        'reason' => STR,
        
'title' => STR,
        
'bannedposters' => STR 
I remake the installation supplements 2 times, while checking well to have executer all the requests on virgin Rc4 of hack and your hack does not function, I always have same error SQL.

Then, please, take your txt file, to install Rc4 new locally and known as moa if you arrived has to make it function bus me, I do not arrive there !
Reply With Quote
  #38  
Old 02-17-2004, 06:51 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Socrate
I remake the installation supplements 2 times, while checking well to have executer all the requests on virgin Rc4 of hack and your hack does not function, I always have same error SQL.

Then, please, take your txt file, to install Rc4 new locally and known as moa if you arrived has to make it function bus me, I do not arrive there !
I just installed this on my recently upgraded RC4 install, in fact, I was so confident I did it on my live forum. I followed my instructions, step-by-step, and it works flawlessly.

I would be glad to help you fix this, if you'd like. I'm sure it's a simple mistake. Could you create a temporary login/pass so I could check the edited files?
Reply With Quote
  #39  
Old 02-17-2004, 08:12 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by magnus
I just installed this on my recently upgraded RC4 install, in fact, I was so confident I did it on my live forum. I followed my instructions, step-by-step, and it works flawlessly.

I would be glad to help you fix this, if you'd like. I'm sure it's a simple mistake. Could you create a temporary login/pass so I could check the edited files?
the problem, I work locally for the moment, I waits left the version Gold de Vbulletin

I will test once again because the doubt takes to me, thank you has you to grant your time to me, I appreciate Socrate friendship
Reply With Quote
  #40  
Old 02-17-2004, 08:55 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see that you have to modify your joined file, you should still checking it because the request which follows does not exist, this:
Code:
// get special phrase groups
$phrasegroups = array('threadmanage');
does not exist in the template "newthread.php"

your texte :
PHP Code:
*** Filenewthread.php

Find
:
##############################################################
// get special phrase groups
$phrasegroups = array('threadmanage');
##############################################################

Replace with:
##############################################################
// get special phrase groups
$phrasegroups = array('threadmanage''postingbans');
############################################################## 
Reply With Quote
  #41  
Old 02-17-2004, 11:23 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Socrate
I see that you have to modify your joined file, you should still checking it because the request which follows does not exist, this:
Code:
// get special phrase groups
$phrasegroups = array('threadmanage');
does not exist in the template "newthread.php"

your texte :
PHP Code:
*** Filenewthread.php

Find
:
##############################################################
// get special phrase groups
$phrasegroups = array('threadmanage');
##############################################################

Replace with:
##############################################################
// get special phrase groups
$phrasegroups = array('threadmanage''postingbans');
############################################################## 
Man, I need to stop drinking early in the afternoon. Yes, I modified the file earlier. That should be 'postings.php' -- not 'newthread.php'. It's fixed now. The added line, however, has no effect on functionality. It simply allows phrases to be used when editing the thread via Thread Tools.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:03 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05191 seconds
  • Memory Usage 2,363KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (12)bbcode_php
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete