vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Warning Hack V1.5 (https://vborg.vbsupport.ru/showthread.php?t=65336)

j_86 11-05-2004 08:30 PM

Thank you sv1 - this did it!

sv1cec 11-06-2004 05:06 AM

Quote:

Originally Posted by beano33
Is there any way to carry over bannings from a previous system? We use a 3 strikes protocol and it would be nice if I could enter the users prior bans when switching over.

There are always ways to do things, after all we are talking about computers here.

How do you plan to import the rest of the information? Is there a script you would run? It's not easy to tell if I do not know the other system and I have no experience with any other one.

The number of times a user has been already banned, is stored in his record in the user table, in the column called warning_bans, if that's of any help.

Rgds

Kmaster 11-06-2004 07:09 AM

Quote:

Originally Posted by sv1cec
It doesn't matter how many members you have, iwhat makes the difference is how many warnings you have issued. And yes, as far as I know they will all show in one page (haven't looked in that). Now for paging, I am not sure if my knowledge will allow me to do that, I'll give it a try tomorrow morning. If I'll come up with something, I'll let you know. I'll have to create at least 30 or 40 warnings in my test system to test that, so it might take some time.

Rgds


Hello sv1cec

any good news? no mean to push you, just let me know some information.
thanks a lot.

rgds,

Blam Forumz 11-06-2004 01:14 PM

How can I stop my Super Mods warning my Admins?

beano33 11-06-2004 02:55 PM

Quote:

Originally Posted by sv1cec
There are always ways to do things, after all we are talking about computers here.

How do you plan to import the rest of the information? Is there a script you would run? It's not easy to tell if I do not know the other system and I have no experience with any other one.

The number of times a user has been already banned, is stored in his record in the user table, in the column called warning_bans, if that's of any help.

Rgds

Our other system is all done manually. We recorded the info in usernotes and in a private forum. There's zero importablility. Past bans would have to be entered manually. Ideally there should be a field for this similar to the reputation field in User Manager in AdminCP that's editable by admins or others with permission. It's no biggie, this is going to save us a lot of time and work regardless of whether we can add in prior bans. :)

WAR 11-06-2004 04:12 PM

@beano33:

I was using what sounds like a similar system involving the usernotes and the built-in ban feature of vbulletin up till now. What we did was create an "instant ban" warning type titled "Previously Banned" and in the description we put "see user notes for details".

Then we just applied this warning to everyone that was previously banned.

Thought that that might be helpful...

sv1cec 11-07-2004 07:34 PM

Quote:

Originally Posted by beano33
Our other system is all done manually. We recorded the info in usernotes and in a private forum. There's zero importablility. Past bans would have to be entered manually. Ideally there should be a field for this similar to the reputation field in User Manager in AdminCP that's editable by admins or others with permission. It's no biggie, this is going to save us a lot of time and work regardless of whether we can add in prior bans. :)

Oh, then it's easy. Do the following changes in your admin/user.php file.

Search for:

PHP Code:

// PROFILE FIELDS SECTION
    
print_table_header($vbphrase['user_profile_fields']);
    
$profilefields $DB_site->query("SELECT * FROM " TABLE_PREFIX "profilefield ORDER by displayorder");
    while (
$profilefield $DB_site->fetch_array($profilefields))
    {
        
print_profilefield_row($profilefield$userfield);
    } 

Right below that, add:

PHP Code:

    print_table_break(''$INNERTABLEWIDTH);
    
    
print_table_header("Warnings Information");
    
print_input_row('Warning Level''user[warning_level]'$user['warning_level']);
    
print_input_row('Bans''user[warning_bans]'$user['warning_bans']); 

Two more fields are added, in the page you get when you are looking at the details of one of your users, the Warning Level of the user at that moment, and how many bans he has already. Edit to your heart's desire.

I hope this helps.

Rgds

sv1cec 11-07-2004 07:38 PM

Quote:

Originally Posted by Kmaster
Hello sv1cec

any good news? no mean to push you, just let me know some information.
thanks a lot.

rgds,

Sorry, didn't have the chance to look at that. It's not something I've done before, and I have to research code from other places in vBulleting to impelent it. But before doing that, I'll have to transfer my database from my production system to my test system at home, and that is not something I enjoy doing.

I'll post here if I get any result on the paging thing.

Rgds

UPDATE: I spend about 5 hours trying to figure that out, using admincp/user.php as an example. Unfortunatelly, I didn't manage to finish it. I have managed to display the first x warnings of y, but then I can't make it continue to the rest of them. If I don't manage it tomorrow morning, you will have to live with a long list. I am fed up (not with you, with the bloody code).

Rgds

sv1cec 11-08-2004 05:40 AM

OK, the paged layout for the Warning Logs is done.

You have to add a new column in your warning_options table, using the following SQL Query (remember to use the TABLE_PREFIX if you are using one):

alter table `warning_options` add warnings_per_page int(3)

After you've done this, use the attached admin_warn.php file. Sorry I can't provide a detailed step-by-step mods write-up, too many changes to make it viable.

Let me know if it works.

Rgds
------------
John

Blam Forumz 11-08-2004 06:00 AM

Is it possible to make it so I can set out a system like this :

5 - Warnings = 3 day ban.

After those 3 days are up, then another 5 warnings = 10day ban

Thanks

/Blam


All times are GMT. The time now is 07:54 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.01555 seconds
  • Memory Usage 1,755KB
  • 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
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete