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 System, Automatic Ban, Make Posts Invisible, Edit Signature/ Avatar/ Picture (https://vborg.vbsupport.ru/showthread.php?t=59718)

Erwin 01-04-2004 10:00 PM

Warning System, Automatic Ban, Make Posts Invisible, Edit Signature/ Avatar/ Picture
 
Warning System, Automatic Ban, Make Posts Invisible, Edit Signature/ Avatar/ Picture - Version 1.1

Okay, this is my private forum's custom warning/ suspension/ banning system and postbit moderator system. This is a fairly involved hack, so it is crucial that you follow the instructions closely. :) It would benefit experienced hackers the most. The following instructions are for an unhacked board. If you have hacked your board, or use different moderator usergroups, just make the appropriate changes.


With this hack, your staff and you will be able to:

1) Add/ Substract/ Reset Warning Points for a Member from a Popup Window in Postbit.

2) When the Member has Warning Points that reach a set level (up to you), the Member will be Automatically Banned.

3) Easily View a Member's Warning Points in the Postbit.

4) Have the ability to easily Edit a Member's Avatar/ Profile Pic/ Sig/ Reputation comments from a Popup Window in Postbit.

5) Suspend temporarily or Ban permanently a Member from a Popup Window in Postbit.

6) Have 2 categories of Banned Members -

..... a) Normal Banned members where the posts all remain, and

..... b) Troll Banned members, where all the posts in this usergroup

.......... i) Automatically becomes Invisible from all other members! You no longer have to manually search and delete their posts. They virtually disappear from your forums when they get put in this usergroup. Also, Troll Banned members get

.......... ii) Fake 404 errors and can no longer access your site. ;)



Please be aware that this hack is designed for my private forums. If you want additional features, or customization, you have permission to do this yourself. Please do not expect me to customize this hack for your site. :)

FWIW, I've had this system running for 2 years now (obviously with different code). Time for me to share... ;)

The installation instructions are in the HTML file in the ZIP file below. The warn.php is also in the ZIP file.


Screenshots:

1. Options available with the dropdown menu for staff.

https://vborg.vbsupport.ru/attachmen...chmentid=15463


2. Popup window from postbit to warn members.

https://vborg.vbsupport.ru/attachmen...chmentid=15466


3. Popup window from postbit to suspend or ban members.

https://vborg.vbsupport.ru/attachmen...chmentid=15465


4. Popup window from postbit to edit signature.

https://vborg.vbsupport.ru/attachmen...chmentid=15468


5. Popup window from postbit to edit avatar.

https://vborg.vbsupport.ru/attachmen...chmentid=15469


NOTE: You can also edit profile pictures, reputation comments, etc. but I can't be bothered making screenshots of all the features. ;)

Enjoy! :)

With Erwin's Permision I've made an HTL Version of this hack.

HTL version (thanks to Dan) here:

Attached Fileshttps://vborg.vbsupport.ru/Warning_System_Automatic_Ban_Make_Posts_Invisible_ Edit_Signature_Avatar.htl

Normal version here:

Link14716 01-05-2004 08:48 AM

Think you have a long enough title?

And you should attach it to a .txt, remember? Bad Erwin. ;)

Looks like a nice hack, I'll give it a shot later. :)

Erwin 01-05-2004 08:51 AM

How to use this hack:

You control your members via the vB3 dropdown menu by clicking on a member's Username.

You then basically choose what to do, and a Popup Window will come up. Just choose what you want to do. Easy.

When you Troll Ban a member, ALL of the member's threads and posts disappear. They disappear from Forumdisplay, Showthread, even in Newreply (where the posts are quoted). This is a quick way of removing offensive posts by trolls.

As a bonus, Troll Banned members get fake 404 errors when they try to access your site. ;)

Anyway, install it, and let me know what you think.

A screenshot of the Postbit Moderator Dropdown Menu Controls, Popup Warning Window, Popup Banning Window, Popup Edit Avatar Window... I won't post screenshots of the rest of the Popup Windows, it's fairly common sense. ;)

Chris Gwynne 01-05-2004 08:57 AM

Great hack, I need something like this! I'll install when vB goes Gold.

Erwin, all the extra options you have in that screenshot like "Edit xx's Avatar" etc, is that another hack??

speedway 01-05-2004 09:01 AM

Excellent! Thanks Erwin

My mods have been asking about the warning system from VB2. This one will blow them away. I'll install it the instant I upgrade to RC1!

Cheers

Erwin 01-05-2004 09:03 AM

Quote:

Originally Posted by Link14716
Think you have a long enough title?

And you should attach it to a .txt, remember? Bad Erwin. ;)

Looks like a nice hack, I'll give it a shot later. :)

I'm too lazy to make a text file. ;) Releasing my hacks have taken me a few hours already, documenting all my changes. LOL!

Koutaru 01-05-2004 09:10 AM

Wow, nice hack Erwin! I could definately be using this ;)

[high]* Koutaru clicks install[/high]

Erwin 01-05-2004 09:13 AM

Quote:

Originally Posted by a-drive
Great hack, I need something like this! I'll install when vB goes Gold.

Erwin, all the extra options you have in that screenshot like "Edit xx's Avatar" etc, is that another hack??

It's all part of this hack. ;)

Chris Gwynne 01-05-2004 09:17 AM

Quote:

Originally Posted by Erwin
It's all part of this hack. ;)

Nice!! :D

obiwan8472 01-05-2004 10:33 AM

Nice one, Ill install as soon as I upgrade in about 1 week.

Dean C 01-05-2004 11:12 AM

How about a log on what the mods do?

nuke 01-05-2004 12:03 PM

Hi, I included the Hack, but I use the postbit_lagancy. What should I do to get the windows like they were posted? Thank for any help

Chris Gwynne 01-05-2004 01:14 PM

Quote:

Originally Posted by nuke
Hi, I included the Hack, but I use the postbit_lagancy. What should I do to get the windows like they were posted? Thank for any help

Edit the postbit_legacy template instead of the postbit one. :)

magnus 01-05-2004 02:39 PM

Great hack, but there's a few things I noticed:

1. In my default RC1 installation, I do not have the line

HTML Code:

<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
So, instead I added it after:

HTML Code:

        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
        </if>

2. You have references to "*****", I believe this should be "modcp".

3. "banning.php" does not exist in admincp, it does in modcp though. Might want to mention that. ;)

4. When a call is made to warn.php, all I get is a blank screen. I'm working on tracking that down as we speak.

minder 01-05-2004 04:15 PM

hi m8 i cant seem to get this to work
i followed all the install instructions and i am geting the extra options when i ckick on the user name only problem is when i chose any of the new options i get a pop up and it says HTTP 404 - File not found
Internet Explorer

what can i have done wrong?

thanks for any help given

rob

Aceman 01-05-2004 04:24 PM

I have a question or two..

1. Does this warning system allow warning 'reasons' to be entered? So that a record can be kept as to why the warning was issued. Also does it send a message to the user alerting them to their warning.. and indicating why they were warned?

2. Does the system allow ME to create warning types (with different values) so that if a user spams the site I can "Spam Warn" +7 warning points, or if they are just disrespectful to others "Disrespect Warn" +2.. this allows me to instantly apply warning to members based on WARNINGS that I've setup?

Thanks
Aceman

orca 01-05-2004 04:38 PM

Nice hack. Will install it later.

snyx 01-05-2004 04:42 PM

beauty!

paratek 01-05-2004 06:33 PM

Hi Erwin,

in the template mod for 'postbit',

this:

<if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7)">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('warn.php?$session[sessionurl]newuser=$post[userid]&username=$userinfo[username]&warnings=$post[field40]','warn','width=500,height=350')"><b>Warn $post[username] - Current Warnings: ($post[field40])</b></span></td></tr>

needs to have the field40 changed to the "hack Installers" field for warnings or it won't display.

Also, the template "warning" that you had us create is called from the program as "warn"

Once i made the changes above, and the "***" changes to "modcp" it works great

Paratek Smacks the install!

Erwin 01-05-2004 06:57 PM

First post updated to correct mistakes. :sorry:

1. Change "*****" to "modcp" in your postbit template (or whatever your moderator cp directory is).

2. Change "field40" in your postbit template to your "Warning" profilefieldid.

3. Change the name of the new template "warning" to "warn".

Sorry about this. I have updated the first post to Version 1.1 to signify the changes. It should work fine now. :)

paratek 01-05-2004 06:58 PM

This is fantastic Erwin....

TheAnt 01-05-2004 07:26 PM

Nice one

*install

minder 01-05-2004 08:11 PM

works 100% now thanks :)

paratek 01-05-2004 11:41 PM

Erwin, not sure if anyone else has come across this. If i select on a users postbit to activate the drop down box, it will display Warnings ( ). If I click to either add or subtract a warning, then it will display the number as Warnings(0) or whatever. Also, it wont display in the users profile unless you have actually warned a user. Even if it is Warnings (0) it will display. I guess what I am asking, is there a way to have it default and start every one at (0) instead of nothing at all?

also, which choice should this be set at?

Field Required Yes No No, but display at registration

Erwin 01-06-2004 12:45 AM

Quote:

Originally Posted by paratek
Erwin, not sure if anyone else has come across this. If i select on a users postbit to activate the drop down box, it will display Warnings ( ). If I click to either add or subtract a warning, then it will display the number as Warnings(0) or whatever. Also, it wont display in the users profile unless you have actually warned a user. Even if it is Warnings (0) it will display. I guess what I am asking, is there a way to have it default and start every one at (0) instead of nothing at all?

also, which choice should this be set at?

Field Required Yes No No, but display at registration

That happens to me too. You can add a line of code to showthread.php to make it 0 but why bother? :) Blank means zero.

As for that option, choose No.

paratek 01-06-2004 01:16 AM

Quote:

Originally Posted by Erwin
That happens to me too. You can add a line of code to showthread.php to make it 0 but why bother? :) Blank means zero.

As for that option, choose No.

Ok, Thanks. You may want to Update that part in your instructions, because you have all three displayed yes, no no but display...of course i chose the wrong one..lol

Erwin 01-06-2004 01:27 AM

Quote:

Originally Posted by paratek
Ok, Thanks. You may want to Update that part in your instructions, because you have all three displayed yes, no no but display...of course i chose the wrong one..lol

I didn't notice that! Thanks. :) Updated first post.

ENZcom 01-06-2004 01:42 AM

This is a great hack, but not worth installing now, because vB still isn't stable.

Zachery 01-06-2004 01:58 AM

erwin doesnt part of your hack sort of do the tatchy trick?

Erwin 01-06-2004 02:12 AM

Quote:

Originally Posted by Faranth
erwin doesnt part of your hack sort of do the tatchy trick?

Yes. But mine's better because it is based on a usergroup. Tachy relies on you manually putting the userid in your Admin CP. Here, it's all automated and usergroup based. ;)

Zachery 01-06-2004 02:25 AM

ah ok, i was just asking :) nice job, i wont be adding it to my live boards till down the road, but very nice work :)

shadowbreed 01-06-2004 08:14 AM

One question i have..
I tried logging in as one of my moderators, and they now have this option in ALL the forums, even the ones they're not moderator of, how can i prevent this?

I know it's all useroptions, but because of my forum setup i'd need them to be able to do this only to the users that visit the forums they're moderating.

shadowbreed 01-06-2004 08:24 AM

Quote:

Originally Posted by paratek
Erwin, not sure if anyone else has come across this. If i select on a users postbit to activate the drop down box, it will display Warnings ( ). If I click to either add or subtract a warning, then it will display the number as Warnings(0) or whatever. Also, it wont display in the users profile unless you have actually warned a user. Even if it is Warnings (0) it will display. I guess what I am asking, is there a way to have it default and start every one at (0) instead of nothing at all?

also, which choice should this be set at?

Field Required Yes No No, but display at registration

If you haven't warned anybody yet run this query:

UPDATE userfield SET field# = 0;

(replace field# with the custom profilefield for warning points)

Hialls 01-06-2004 01:03 PM

Installed except it doesn't seem to work when i add to users warning points?

Hialls 01-06-2004 01:17 PM

Solved the problem with adding an auto refresh to post, as it was updating just needed to be refreshed :P.
Ignore previous post

magnus 01-06-2004 02:33 PM

Quote:

Originally Posted by ENZcom
This is a great hack, but not worth installing now, because vB still isn't stable.

Erm.. "still isn't stable"? It's been "stable" since Beta 5 or so. Now that it's in RC1, it doesn't really get any more "stable". To each their own though.

Great hack, Erwin. :D

msimplay 01-06-2004 02:43 PM

lol my only question is why wasn't it made a standard :P

ap0c 01-06-2004 03:53 PM

simply amazing, will install once vb goes gold

magnus 01-06-2004 04:19 PM

Quick modification I made, if anyone is interested:

In POSTBIT (or POSTBIT_LEGACY) template -

Replace:
HTML Code:

        <if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7)">
With
HTML Code:

        <if condition="$post[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
This will allow your moderators the ability to only warn people in their forums. Plus, it will disallow the warning/banning/etc.. of Administrators.

minder 01-06-2004 06:24 PM

Quote:

Originally Posted by magnus
Quick modification I made, if anyone is interested:

In POSTBIT (or POSTBIT_LEGACY) template -

Replace:
HTML Code:

        <if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6 || $bbuserinfo[usergroupid]==7)">
With
HTML Code:

        <if condition="$post[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
This will allow your moderators the ability to only warn people in their forums. Plus, it will disallow the warning/banning/etc.. of Administrators.



nice addition well done :)


rob
:)


All times are GMT. The time now is 06:35 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.01449 seconds
  • Memory Usage 1,842KB
  • 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
  • (6)bbcode_html_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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