Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > Advanced Warning System (AWS)

Closed Thread
 
Thread Tools
Not working correctly Details »»
Not working correctly
Version: , by DaveBeel DaveBeel is offline
Developer Last Online: Feb 2014 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-06-2005 Last Update: Never Installs: 0
 
No support by the author.

I have just installed the Warning system from scratch and so far I am impressed.

There are a few things though that you say it can do, but I do not have available in my options.

Screenshot

In the above screenshot there are a lot more options, including a Manage Warning Options. I do not have this option. I purely have Control Warnings, Warning Logs and Unban Banned Users.

I do not have any of the options to user hierarchical schema, banned usergroup etc.

Also the feature is decribed where the warning level is shown under the users profile and next to his posts. I don't have this facility either.

Please adivise. Thankyou

Further to this my moderators also don't have the ability to give out warnings. Even though they are still the default usergroup number as suggested.

Show Your Support

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

Comments
  #12  
Old 03-19-2005, 01:48 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First of all, please delete those files from here, if you do not want to hear from the forums moderators. You are not supposed to post complete vB files or templates here, it is a breech of your license agreement.

Second, before anything else, and because this thing reminds me of something I've fixed before, please download the latest zip file. Make sure you upload Warn.php and includes/function_warning.php files to your server. Let me know if this helped.

Rgds
  #13  
Old 03-19-2005, 02:08 PM
DaveBeel DaveBeel is offline
 
Join Date: Mar 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sv1cec
First of all, please delete those files from here, if you do not want to hear from the forums moderators. You are not supposed to post complete vB files or templates here, it is a breech of your license agreement.

Second, before anything else, and because this thing reminds me of something I've fixed before, please download the latest zip file. Make sure you upload Warn.php and includes/function_warning.php files to your server. Let me know if this helped.

Rgds
By uploading those two files I now get the following when I try to warn someone.

Database error in vBulletin 3.0.7:

Invalid SQL:
UPDATE vb3_user SET
usergroupid = ,
displaygroupid = ,
warnings=1,
warning_bans = 1,
usertitle = 'Temporarily Banned'
WHERE userid = 39

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '
displaygroupid = ,
warnings=1,
warning_bans = 1,


mysql error number: 1064

Date: Saturday 19th of March 2005 04:09:37 PM
Script: http://www.webcadets.com/forum/Warn.php
Referer: http://www.webcadets.com/forum/Warn....id=39&post=245
Username: Dave
IP Address: 217.44.114.125


I haven't done the full install using version 3.3.0 but have using 3.2.0 before now, just had a two little problems above. Seems I have a big problem now though mate.
cheers
  #14  
Old 03-19-2005, 02:38 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DaveBeel
By uploading those two files I now get the following when I try to warn someone.

Database error in vBulletin 3.0.7:

Invalid SQL:
UPDATE vb3_user SET
usergroupid = ,
displaygroupid = ,
warnings=1,
warning_bans = 1,
usertitle = 'Temporarily Banned'
WHERE userid = 39

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '
displaygroupid = ,
warnings=1,
warning_bans = 1,


mysql error number: 1064

Date: Saturday 19th of March 2005 04:09:37 PM
Script: http://www.webcadets.com/forum/Warn.php
Referer: http://www.webcadets.com/forum/Warn....id=39&post=245
Username: Dave
IP Address: 217.44.114.125


I haven't done the full install using version 3.3.0 but have using 3.2.0 before now, just had a two little problems above. Seems I have a big problem now though mate.
cheers
You really got me confused. You have been using version 3.2.0 before with no problems. Then you upgraded to version 3.3.0, following the instructions in the UpdateToLatestVersion.txt file. Is that right? But in the beginning of your thread, you said you just install 3.3.0 from scratch!

What is it? I can't help if you are giving me contradictory information.

Have you set your Warning Options properly, in the admincp?
  #15  
Old 03-19-2005, 03:12 PM
DaveBeel DaveBeel is offline
 
Join Date: Mar 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sv1cec
You really got me confused. You have been using version 3.2.0 before with no problems. Then you upgraded to version 3.3.0, following the instructions in the UpdateToLatestVersion.txt file. Is that right? But in the beginning of your thread, you said you just install 3.3.0 from scratch!

What is it? I can't help if you are giving me contradictory information.

Have you set your Warning Options properly, in the admincp?
Okay just to clear things up. Sorry if I was confusing. The one I installed from scratch was 3.2.0. I have now followed the full instructions for 3.3.0 and things seem to be working okay.

I still for some reason have two lots of Warn user and View User warnings on each post.

Everything else seems to be working okay apart from when I issue a warning I am getting a parse error at the top of the confirmation of issue page.

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/dbeel/public_html/forum/includes/functions_warning.php(475) : eval()'d code on line 19

The warning is still issued however.
  #16  
Old 03-19-2005, 03:43 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For the two sets of Warn/View Warnings links, check your changes in your postbit/postbit_legacy templates.

For your second issue, check your warn_pm template. Make sure there is no warn_opts in there.

Also, how many styles are you using in your forums?
  #17  
Old 03-19-2005, 04:04 PM
DaveBeel DaveBeel is offline
 
Join Date: Mar 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sv1cec
For the two sets of Warn/View Warnings links, check your changes in your postbit/postbit_legacy templates.

For your second issue, check your warn_pm template. Make sure there is no warn_opts in there.

Also, how many styles are you using in your forums?
only using one style for all.

In regards to checking my warn_pm template where do you mean mate? Through the CP cos I can't find it?? :disappointed:
  #18  
Old 03-20-2005, 05:12 AM
Blootix Blootix is offline
 
Join Date: Feb 2005
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DaveBeel
Okay just to clear things up. Sorry if I was confusing. The one I installed from scratch was 3.2.0. I have now followed the full instructions for 3.3.0 and things seem to be working okay.

I still for some reason have two lots of Warn user and View User warnings on each post.

Everything else seems to be working okay apart from when I issue a warning I am getting a parse error at the top of the confirmation of issue page.

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/dbeel/public_html/forum/includes/functions_warning.php(475) : eval()'d code on line 19

The warning is still issued however.
I have the exact same problem as his second issue. And the warning is also still issued. And I checked warn_pm and there was no warn_opts.

[b]EDIT: ALSO: the Warn PM doesn't contain anything. See screenshot for more information.
Attached Files
File Type: (21.3 KB, 6 views)
  #19  
Old 03-20-2005, 05:59 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Replace the contents of your warn_pm template with the code below:

HTML Code:
Dear $user[username],

You have been warned for one of your posts, which violated $vboptions[bbtitle] Rules. The reason you have been warned is because: 

[b][i] $warn_type[warn_desc] [/i][/b]
(Warning Type = $warn_type[warn_name]) 

For this violation, you have been given : [b]$warn_type[warn_points][/b] point(s).
The point(s) will remain in your account for [b]$warn_type[warn_maturity] days[/b].
After that, they will be removed automatically.

The post for which you are warned can be seen here:

$thread1

The admin/moderator who warned you, entered this comment: 

=======================================
[i]$_POST[comment][/i]
=======================================

Your total Warning Level at the moment is: [b] $level [/b] point(s).

If you reach the maximum of [b]$vboptions[warn_points_before_banned][/b], you will be banned from the Forums, for [b] $peruserbanlimit [/b] days.

To see details about all the warnings you have received, until now, please click [URL="$vboptions[bburl]/Warn.php?do=ViewMyWarnings"]here[/URL].

Please reply back if you have a dispute.
Quote:
Originally Posted by Blootix
I have the exact same problem as his second issue. And the warning is also still issued. And I checked warn_pm and there was no warn_opts.

[b]EDIT: ALSO: the Warn PM doesn't contain anything. See screenshot for more information.
If your PM does not contain text, and this is a first-time installation, please open your private.php file and find:

PHP Code:
warn_notify($thread1$thread2$bbuserinfo$warnerdata['email'], $warnerdata['username'], $vboptions['warn_automatic_warner'], $warn_type$level$wcomment);
}
}
// End of automated warnings things 
Right below that, add:

PHP Code:
    $message=$pm_message
  #20  
Old 03-20-2005, 06:10 AM
Blootix Blootix is offline
 
Join Date: Feb 2005
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sv1cec
add the following in your warn_pm template

HTML Code:
Dear $user[username],

You have been warned for one of your posts, which violated $vboptions[bbtitle] Rules. The reason you have been warned is because: 

[b][i] $warn_type[warn_desc] [/i][/b]
(Warning Type = $warn_type[warn_name]) 

For this violation, you have been given : [b]$warn_type[warn_points][/b] point(s).
The point(s) will remain in your account for [b]$warn_type[warn_maturity] days[/b].
After that, they will be removed automatically.

The post for which you are warned can be seen here:

$thread1

The admin/moderator who warned you, entered this comment: 

=======================================
[i]$_POST[comment][/i]
=======================================

Your total Warning Level at the moment is: [b] $level [/b] point(s).

If you reach the maximum of [b]$vboptions[warn_points_before_banned][/b], you will be banned from the Forums, for [b] $peruserbanlimit [/b] days.

To see details about all the warnings you have received, until now, please click [URL="$vboptions[bburl]/Warn.php?do=ViewMyWarnings"]here[/URL].

Please reply back if you have a dispute.

If your PM does not contain text, and this is a first-time installation, please open your private.php file and find:

PHP Code:
warn_notify($thread1$thread2$bbuserinfo$warnerdata['email'], $warnerdata['username'], $vboptions['warn_automatic_warner'], $warn_type$level$wcomment);
}
}
// End of automated warnings things 
Right below that, add:

PHP Code:
    $message=$pm_message
It was specifically the warning PM that did not contain anything. Every other PM contained their contents.

Thank you everything seems to be in order except for the "\" problem but I think that'll be fixed soon. No sweat.

Thanks!
  #21  
Old 03-20-2005, 06:18 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Most welcome!
Closed Thread

Thread Tools

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 07:14 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.05227 seconds
  • Memory Usage 2,347KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_html
  • (4)bbcode_php
  • (7)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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete