Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Warning Hack V1.5 Details »»
Warning Hack V1.5
Version: 1.00, by Zero Tolerance Zero Tolerance is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 05-19-2004 Last Update: 07-12-2004 Installs: 161
 
No support by the author.

Version 1.5 Note: You must have v1 installed to upgrade, the upgrade process is small so there was no need to write out a fresh install.

It has come to my attention that a "decent" warning system isn't available here on vbulletin.org, which is quite a shame, and because forums like mine, and probably yours need a simple yet advanced warning system to keep things under wraps

Anyway, i thought i might aswell release what i made, prior to me getting off my ass... lol

Administration Features:
View Warning Logs
- Displays all warnings, warned user, warned by, link to the warned post, date, warning type, and the comment specified when the warning was given, and a remove warning link
(Remove will remove the log and also put the members warning level back down in accordance to how much it was increased by the selected warning removed)
Unban Banned Members
- A simple page that you should visit every few days, it will automatically ban any auto banned users by the warning system where there ban time has expired
Warning Options
- Here you can set the following:
-- Number of warn points before member is auto banned
-- Number of days a member is auto banned for
-- View Warnign Types
-- Add Warning Type
-- Add warning type has the following fields:
---- Name/Description/Warn Points Given

Forum Features:
Every post has "Warn [Name]" and "View [Names] Warnings"
These are only accessiable by a member group which is allowed to "moderate" (Moderating groups are auto detected)
Clicking the Warn link will bring you to a page where you view the user your warning, a link to review the warned post, members current warning level, and below the warning types, has a drop down menu to select the warning type, and a text field to put your comment for why this warning is been issued
Upon completing the warning form, the warned user will be Pm'ed from the person who warned them, with the comment put down and a link to the post

View Warnings link will display logs of only that specified user's warnings, the same features as the admin cp warning logs, only just for this user

Members can access only 1 page of the warning system, which is "View My Warnings", this link is added to the quick links drop down menu
Here they simple view there warnings, just like a moderator would, only without the remove warning link

V1.5 Features:
Protectable Usergroups:
No user's in these defined groups can be warned, or banned.
Root Admin Force Protection:
Userid 1 cannot be warned, canned be banned, this is not optional, this is forced for security.
New Unban Members Set Up:
Now displays all currently banned user's, what time they were banned, what time they are supposed to be unbanned. You may unban the user even if there time has not expired (You will be notificed if they have not served the time issued upon ban, but not stopped). Upon unbanning, you choose the members 'new' warning level and the user's usergroup to move them into
Set banned usergroup:
You can now easily choose from a drop down menu which usergroup user's are sent to if after been warned they are banned.

V1.5 Bug Fixes:
- User locations in 'Users online' shown as unknown if they are warning/viewing warnings (Priority: Medium)
- Unban members system renovated and now fully works (Priotity: Maximum)
- No mysql errors upon sending a pm if the PM table had been altered (Priotity: Maximum)
- New protectable usergroups to stop any group of your choice been banned (Priotity: Maximum)
- Last time visited didn't appear when error page occured (Priotity: Low)
- Un-used global in PM function (Priority: Low)

I hope you enjoy the system, my staff teamare very pleased with it and find it of great use, enjoy the hack

- Zero Tolerance

Show Your Support

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

Comments
  #392  
Old 10-23-2004, 11:30 PM
bnn121 bnn121 is offline
 
Join Date: May 2004
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was woundering if I could get some help with this hack.


The problem is I have four styles

Purple is the defualt style

And the other three are just different colors of the defualt.

Well from looking at the postbit and postbit legacy templates they do not match the defualt template where the hack instructions says to modify.

Could somebody help me on adding this hack to the other three styles? It works like a champ on the first style which is the defualt...

I'm able to make the modification to the navbar in style two...and I'm able to modify the postbit and postbit legacy templates on style two...but when I click on the view users warning...I get a blank page.

Thanks
Reply With Quote
  #393  
Old 10-24-2004, 05:07 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bnn121
I was woundering if I could get some help with this hack.


The problem is I have four styles

Purple is the defualt style

And the other three are just different colors of the defualt.

Well from looking at the postbit and postbit legacy templates they do not match the defualt template where the hack instructions says to modify.

Could somebody help me on adding this hack to the other three styles? It works like a champ on the first style which is the defualt...

I'm able to make the modification to the navbar in style two...and I'm able to modify the postbit and postbit legacy templates on style two...but when I click on the view users warning...I get a blank page.

Thanks
Bnn121,

I have no idea how the different styles work, but as far as I can tell, there is nothing that should prevent the hack from working with different styles. If you could upload here the postbit and postbit_legacy templates of your one of your other styles, I could have a look and see if we can do something, but as you understand, I have no way to test it.

Rgds
Reply With Quote
  #394  
Old 10-24-2004, 12:18 PM
bnn121 bnn121 is offline
 
Join Date: May 2004
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay...I was told that we are not using the postbit templates on the forum...only the posbit_legacy templates. I have been sucsessful in getting the thread to display the warning hack but again when I click on view users warnings I get a blank page. This is only in the last three styles...in the main style this hack works just fine.

I'm uploading the main postbit template and the main postbit_legacy template

Also uploading postbit and postbit_legacy template of one of the other styles.

The other two styles are all the same except for where they get there images from.

I did notice in the warn.php file that there is alot of calls for fetch_template. I'm not a php programmer...but would I need to add/change anything in the warn.php file in order for it to call the correct style?

I also uploaded a screen shot of the warning hack on the brown style...the brown style is the one I'm working with...If I click on the

View BNN121's Warnings

button. it takes me to a blank page.
I hope this helps.
Reply With Quote
  #395  
Old 10-24-2004, 01:51 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bnn121
Okay...I was told that we are not using the postbit templates on the forum...only the posbit_legacy templates. I have been sucsessful in getting the thread to display the warning hack but again when I click on view users warnings I get a blank page. This is only in the last three styles...in the main style this hack works just fine.

I'm uploading the main postbit template and the main postbit_legacy template

Also uploading postbit and postbit_legacy template of one of the other styles.

The other two styles are all the same except for where they get there images from.

I did notice in the warn.php file that there is alot of calls for fetch_template. I'm not a php programmer...but would I need to add/change anything in the warn.php file in order for it to call the correct style?

I also uploaded a screen shot of the warning hack on the brown style...the brown style is the one I'm working with...If I click on the

View BNN121's Warnings

button. it takes me to a blank page.
I hope this helps.
As I said, I am no expert in multi-style environments, my site has just one, so I am not able to help much. I have to assume a few things here, so correct me if I am wrong. First of all, have you added all the templates to all your styles?

From what I understand about the styles-templates things, you shouldn't alter anything in your php files in order to call the template of the particular style. The style is just a variable the user selects and then all his "views" of vB are rendered using that style. I have to assume that the template names do not change, from one style to the other, or else nothing would work in vB.

I would expect that in the last template, the links should be entered somewhere within the following code:

HTML Code:
        <td class="thead" style="font-weight:normal" align="$stylevar[right]">
                &nbsp;
                <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a></if>
        </td>
somewhere after &nbsp.

I am sorry I can't be of more help.

Rgds
Reply With Quote
  #396  
Old 10-24-2004, 03:35 PM
bnn121 bnn121 is offline
 
Join Date: May 2004
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have not added all the templates to all the styles yet. only two of them...the main defualt and the drown one.

ITs to bad the installer could not be moded to install the templtes to all styles with some sort of option in the installer...but doing it manully is a good learning expirence.

I will wait an see if anybody else has any ideas on this...I have all templates installed in the defualt template as well as template two. As I said before. I was told that we only use the postbit_legacy template so there mite be some issues with this template and the original files that need moded...dont know for sure.

I continue working on this...I could have very well missed something...all this code looks the same after awhile.

I just wanted to ad this

Warn.php?do=ViewWarnings&id=1

When I click on the view users warning button...I get the blank screen...but thats what I see in the url.
Reply With Quote
  #397  
Old 10-24-2004, 09:42 PM
bnn121 bnn121 is offline
 
Join Date: May 2004
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay...I fianlly got all this style stuff figured out and sorted..I no have a working hack on all four styles...thanks for the direction...

Now...Seeing that this thread is four pages long...I got lost somewhere along the way..

I no I seen in one of the post in this thread that you can set this hack up to do the following

1) Allow all users to see this hack
2) Allow mods to view all users but only allow them to use this hack from within the forum they are modding.
3) Allow Supermods all access board wide
4) Only Admins can unban.

Like I said I seen this in one of the post...but I cant find the specific one I need.

Can somebody help me locate this mod or repost whats needed

Thanks
Reply With Quote
  #398  
Old 10-25-2004, 03:49 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bnn121
Okay...I fianlly got all this style stuff figured out and sorted..I no have a working hack on all four styles...thanks for the direction...

Now...Seeing that this thread is four pages long...I got lost somewhere along the way..

I no I seen in one of the post in this thread that you can set this hack up to do the following

1) Allow all users to see this hack
2) Allow mods to view all users but only allow them to use this hack from within the forum they are modding.
3) Allow Supermods all access board wide
4) Only Admins can unban.

Like I said I seen this in one of the post...but I cant find the specific one I need.

Can somebody help me locate this mod or repost whats needed

Thanks
This thread is 27 pages long (not 4), so happy reading. All these issues are mentionned in previous posts.

Rgds
Reply With Quote
  #399  
Old 10-25-2004, 08:33 AM
bnn121 bnn121 is offline
 
Join Date: May 2004
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL...not if you have it set to see 100 post per page...then its only four pages long.

Anyway...okay I'll do some reading...got to be in here somewhere.
Reply With Quote
  #400  
Old 10-25-2004, 05:23 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bnn121
LOL...not if you have it set to see 100 post per page...then its only four pages long.

Anyway...okay I'll do some reading...got to be in here somewhere.
Ooops, sorry, you are right. Never assume anything in this world! LoL
Reply With Quote
  #401  
Old 10-28-2004, 10:17 PM
moethelawn's Avatar
moethelawn moethelawn is offline
 
Join Date: Nov 2003
Location: Iowa
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there an uninstall script for the warning system to be totally removed? (If you don't run install_warn.php again to uninstall it - I have Warning v1.5)

There's nothing wrong with it, and it is a very good hack. All i'm doing is changing some stuff on the forums and I kinda want to remove it for now...
Reply With Quote
Reply


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 01:33 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.05130 seconds
  • Memory Usage 2,330KB
  • 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
  • (1)bbcode_html
  • (4)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
  • (2)pagenav_pagelinkrel
  • (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