vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Moderators Functions - New Thread on User Banning by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=257040)

BirdOPrey5 01-12-2011 10:00 PM

New Thread on User Banning by BOP5
 
1 Attachment(s)
The purpose of this mod is to create a new thread in a forum you specify whenever any user is banned.

NEW In Version 1.3 - More REPLACEMNTS available in post body. {USERNAMEL} and {BANNEDBYL} are now links to the profiles of the user who was banned and the user who banned them, respectfully. In addition {USERID} and {BANNEDBYID} have been added in case you have any use for them.

Also as of version 1.3 this version no longer works on VB 4.x. Please see the VB 4.x thread for a different version.

NEW In Version 1.2 - Set a minimum post count for a user before a "new thread" is created on their banning- this way you don't bother making threads for spammers with just a handful of posts.

The title and message posted is easily customized, as is the username of the thread starter.

This has been tested on vBulletin 3.8.6 and it should work on all versions of 3.8.x. It may work on earlier versions too. See this thread for a VB4 version: https://vborg.vbsupport.ru/showthread.php?t=257041

Read the info txt file in the .zip for full instructions.

See the screenshots for more details.

Please "Mark as Installed" if you use this. :)

Added Russian Language phrases file by xorex. :up:

BirdOPrey5 01-13-2011 02:30 AM

Reserved.

ITDarasgah 01-13-2011 11:21 AM

also Reserved thanks .

Badshah93 01-13-2011 11:56 AM

Installed, but have a doubt,,..

what if i have got a vbseo done in my forum, how do i determine which section is to be put as to where the thread is supposed to get created? any solutions?

Boofo 01-13-2011 01:04 PM

Joe, for the forum id option, replace this:

Code:

                        <setting varname="bop5onban_fid" displayorder="30">
                                <datatype>posint</datatype>
                                <defaultvalue>2</defaultvalue>
                        </setting>


with this:

Code:

                        <setting varname="bop5onban_fid" displayorder="30">
                                <datatype>number</datatype>
                                <optioncode>select:eval
$options = construct_forum_chooser_options(1);</optioncode>
                                <defaultvalue>0</defaultvalue>
                        </setting>


That way, you get a drop down forum listing to choose the forum from.

BirdOPrey5 01-13-2011 01:20 PM

Quote:

Originally Posted by aayushagrawal90 (Post 2148410)
Installed, but have a doubt,,..

what if i have got a vbseo done in my forum, how do i determine which section is to be put as to where the thread is supposed to get created? any solutions?

In your Admin CP -> Forum Manager click on the forum you want and your forumid will be in the very top of the table.

Quote:

Originally Posted by Boofo (Post 2148443)
Joe, for the forum id option, replace this:

Code:

                        <setting varname="bop5onban_fid" displayorder="30">
                                <datatype>posint</datatype>
                                <defaultvalue>2</defaultvalue>
                        </setting>


with this:

Code:

                        <setting varname="bop5onban_fid" displayorder="30">
                                <datatype>number</datatype>
                                <optioncode>select:eval
$options = construct_forum_chooser_options(1);</optioncode>
                                <defaultvalue>0</defaultvalue>
                        </setting>


That way, you get a drop down forum listing to choose the forum from.

Thanks Boofo! I'll try this code and update ASAP.

Boofo 01-13-2011 01:28 PM

I tried to get you in IM to give it to you there, so I wouldn't have to clutter up your thread. ;)

BirdOPrey5 01-13-2011 01:45 PM

Thanks... yeah my computer rebooter and I forgot to open AIM/AOL. Just updated to version 1.1 with the new forum selector. :up:

Boofo 01-13-2011 02:04 PM

You might want to update the readme file as it still shows version 1.0.

Brandon Sheley 01-13-2011 02:08 PM

hm, not mod but I wouldn't want to showcase the spammers
all my threads would be "user X is banned for spamming"..lol
I could see it being helpful in the reported post forum, or a moderator forum ;)

BirdOPrey5 01-13-2011 03:10 PM

Quote:

Originally Posted by Boofo (Post 2148469)
You might want to update the readme file as it still shows version 1.0.

D'oh!

I updated the instructions but not the version number... all fixed now. Thanks.

Dj Smuggla 01-13-2011 03:49 PM

This is great, i've got a Banned Users sub forum in a mod only section & this'll save me some time... Thanks a lot BirdOPrey5

EddyMaxx 01-14-2011 12:27 AM

Works great. Nice job as always Joe.

BirdOPrey5 01-14-2011 03:09 AM

NEW In Version 1.2 - Set a minimum post count for a user before a "new thread" is created on their banning- this way you don't bother making threads for spammers with just a handful of posts.

Pakblogger 01-14-2011 10:23 AM

very nice,
one question, as there any option to make a settings for {USERNAME} and {BANNEDBY} in message area to show their full profile link..
example: http://www.noeman.org/gsm/banned-members/

BirdOPrey5 01-14-2011 03:44 PM

Yes, I think I can do that... will update this thread when I add that feature.

BirdOPrey5 01-15-2011 12:12 AM

I have updated this to v 1.3 with new replacements including {USERNAMEL} and {BANNEDBYL} which are linked versions of each, with links to their respective profiles.

Pakblogger 01-15-2011 11:17 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2149224)
I have updated this to v 1.3 with new replacements including {USERNAMEL} and {BANNEDBYL} which are linked versions of each, with links to their respective profiles.

Wow............I believe you can do anything....
Great Work and Thx a lot once again

but another addition if possible will be great

IT can create ban information thread in a specific forum, and it'll be great if you can add another option which can create posts in a specific thread.

is it possible to use this as new posts in a thread?????

BirdOPrey5 01-15-2011 12:56 PM

Yeah i'm sure I can let it post to one thread instead of making a new thread each time, but it will be a while (few days? couple weeks?) before I add that ability.

Pakblogger 01-15-2011 12:59 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2149454)
Yeah i'm sure I can let it post to one thread instead of making a new thread each time, but it will be a while (few days? couple weeks?) before I add that ability.

wow,.................that will make your MOD 100% Perfect................................
I am waiting for that addition

Thanks to you.......

Marios858 09-11-2011 08:10 AM

works fine on 4.1.5 , i edit the file , i change the product check , thanks a lot , great mod.

BirdOPrey5 09-11-2011 01:41 PM

Quote:

Originally Posted by Marios858 (Post 2244522)
works fine on 4.1.5 , i edit the file , i change the product check , thanks a lot , great mod.

There is a native vb4 version as mentioned in the first post: https://vborg.vbsupport.ru/showthread.php?t=257041

Marios858 09-11-2011 07:48 PM

Oh My God , i am blind , now i see it , i will remove that and install this one. Thanks a lot , its excellent modification.
Quote:

Originally Posted by BirdOPrey5 (Post 2244577)
There is a native vb4 version as mentioned in the first post: https://vborg.vbsupport.ru/showthread.php?t=257041


realmr 09-14-2011 07:14 PM

Joe how does this add-on work ? Is it a ban via infraction or ban via ACP or via ModCP ? or does this work for all ?

BirdOPrey5 09-14-2011 08:29 PM

It works no matter how the user is banned. It is called on the hook every time a usergroup is changed. Shouldn't matter how.

Taringa! CS 09-18-2011 11:59 PM

I've got problem using this mod,
thread it is'nt created and after banning i'm getting no ban message (only background)
Any ideas?

Thanks in advance

BirdOPrey5 09-19-2011 10:54 AM

Quote:

Originally Posted by Taringa! CS (Post 2247691)
I've got problem using this mod,
thread it is'nt created and after banning i'm getting no ban message (only background)
Any ideas?

Thanks in advance

What do you mean "only background"?
What version of VB are you using?
How are you banning a user, admin cp or some other way?

Taringa! CS 09-20-2011 12:01 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2247807)
What do you mean "only background"?
What version of VB are you using?
How are you banning a user, admin cp or some other way?

Hi

For only background i mean this: http://i55.tinypic.com/2ni718y.png

I'm using latest 3.8 vbulletin and banning from admincp

Thanks!

BirdOPrey5 09-20-2011 12:25 PM

If you go to your Admin CP -> Plugin Manager

Find the plugin: New Thread on Banning and "edit" it...

Are these the last few lines of that plugin?

PHP Code:

 build_forum_counters($forumid);

// end make thread code
    
     
}
    
 }
//End Enable If 


Taringa! CS 09-20-2011 05:45 PM

last lines are

PHP Code:

 build_forum_counters($forumid);

// end make thread code
    
     
}
    
 }
//End Enable If 


BirdOPrey5 09-20-2011 08:43 PM

I really can't imagine what the issue can be then. Do you by chance have a test forum where this is installed that I can play with without affecting your live board?

Taringa! CS 09-21-2011 12:22 AM

Not really, i think that the problem it's related with another hack... but i dunno wich it's... i'll try to investigate

BirdOPrey5 09-21-2011 11:03 AM

Quote:

Originally Posted by Taringa! CS (Post 2248417)
Not really, i think that the problem it's related with another hack... but i dunno wich it's... i'll try to investigate

If you look in your plugin manager in Admin CP, any other mod that uses the hook userdata_postsave would be a prime suspect.

Taringa! CS 09-22-2011 12:53 AM

I'm using DragonByte Tech: vBShout (Lite), if u have time can u please check if they are compatible?

Great thanks

BirdOPrey5 09-22-2011 10:14 AM

Quote:

Originally Posted by Taringa! CS (Post 2248790)
I'm using DragonByte Tech: vBShout (Lite), if u have time can u please check if they are compatible?

Great thanks

This one? https://vborg.vbsupport.ru/showthread.php?t=241651

Taringa! CS 09-22-2011 11:30 AM

YEs!

BirdOPrey5 09-22-2011 01:55 PM

I'm seeing no reason that mod should conflict... Do you have any other suspects? You can temp-disable a mod to see if disabling it makes this one work- if we can confirm which mod is conflicting that way I can work on a solution.

Taringa! CS 09-22-2011 08:32 PM

Hi
After a couple of testing, i found that this https://vborg.vbsupport.ru/showthread.php?t=242734 it's the problem!

BirdOPrey5 09-23-2011 11:31 AM

Quote:

Originally Posted by Taringa! CS (Post 2249053)
Hi
After a couple of testing, i found that this https://vborg.vbsupport.ru/showthread.php?t=242734 it's the problem!

You are correct. I installed the mod on my test site and banning is now producing an error:

Code:

Fatal error: Class 'USERTAG' not found in /home/juotnet/public_html/jutest/dbtech/usertag/hooks/postdata_presave.php on line 11
Unfortunately it's a problem with that mod as you can see so I really can't do anything about it. You could post this info in his thread and see if he has any ideas.

Taringa! CS 09-23-2011 02:09 PM

Great Thanks BirdOPrey5


All times are GMT. The time now is 04:22 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01473 seconds
  • Memory Usage 1,827KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete