vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Set ban reason (for usergroup move) through plugins? (https://vborg.vbsupport.ru/showthread.php?t=316953)

Skyrider 01-27-2015 10:16 AM

Set ban reason (for usergroup move) through plugins?
 
I have a plugin that automatic moves people to a specific ban usergroup, which works great. However, all the ban reasons are "N/A / Reason not given", Does a PHP/plugin code happen to exist that can set a specific ban reason? I'm asking in general discussions as I was hoping for a existing/valid vBulletin code that can do this without any other custom plugin.

Dave 01-27-2015 10:21 AM

I'm kind of confused what you want.
The "Ban User" function in the admincp makes it possible for you to provide a ban reason.

I guess you should modify your existing plugin and make it give a ban reason along with the ban.

Skyrider 01-27-2015 10:56 AM

Quote:

Originally Posted by Dave (Post 2534799)
I'm kind of confused what you want.
The "Ban User" function in the admincp makes it possible for you to provide a ban reason.

I guess you should modify your existing plugin and make it give a ban reason along with the ban.

The ban reason can be specified when you normally ban a user, yes. But if you move users to a banned usergroup, no reason is specified. Hence I'd like to know if there's any code that adds a ban reason.

ozzy47 01-27-2015 11:02 AM

You would need to update the userban table as well, when your script runs.

Skyrider 01-27-2015 11:12 AM

Ah, so no official code for it then ey? like "banreason = yada". But then in code form :p. So, shame. Would you mind if I PM you the existing/current plugin we use? Would appreciate it.

ozzy47 01-27-2015 11:21 AM

Sure, you can PM it to me and I can take a look later today and see if there is anything I can do.

Skyrider 01-27-2015 11:30 AM

Appreciate your help, submitted the info through PM.

ozzy47 01-27-2015 11:49 AM

It will be later today before I can even look into it, as I am at work for the next 10 hrs.

Skyrider 01-27-2015 11:57 AM

10 hours work is over-kill if you ask me :p. But no worries, I appreciate the fact you are willing to take a look at it :).

ozzy47 01-28-2015 08:59 PM

Sorted via PM. :)


All times are GMT. The time now is 11:22 PM.

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.01170 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete