Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > Advanced Warning System (AWS)
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
Question and Possible Bug Details »»
Question and Possible Bug
Version: , by NickCat NickCat is offline
Developer Last Online: Jan 2021 Show Printable Version Email this Page

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

I just installed this on a fresh upgrade to 3.0.10 from Zero Tolerance's 1.5 hack. I had a bunch of trouble mainly with the upgrade script removing the old templates, adding the new ones, and then removing the new templates once I got the the apply database changes step.

I also noted that the upgrade didn't add a couple of phrases to the database and also didn't add the warn_notes field to the user table. I figured it all out by checking the install_warn script and finding the differences.

First off... GREAT hack... a much improved system over the original.

Now onto my question. I need to have the ability to allow any of my moderators to warn users in any forum. Or if that's not possible perhaps at least a few select forums I choose. Reason being we have certain forums which have such high traffic everyone of my 40+ moderators helps pitch in to moderate.

Now onto the possible bug. I don't have the moderation queues setup, but one of my users got this error today when trying to reply to a thread.

Code:
Warning: Unknown modifier '!' in /includes/functions_warning.php on line 707
That line looks to be a regex check... but I can't find a ! anywhere in the line. Also I asked the user and it appears he had sworn in the post (tripping one of my censored words to replace the word with ****) But I have the auto warning functions disabled, so I'm not sure why it would even call the warning fuctions.

Any help would be greatly appreciated. Thanks.

-Nick
http://www.nasioc.com/

EDIT: It in fact pops up this warning everytime you make a post with a censored work that the software changes.

Show Your Support

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

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

I would suggest that you check the changes you have made in includes/functions_newpost.php, you must have left some ! there, somewhere.

As for your moderators issue, if a member is allowed to moderate a forum, he can warn other members, so it has to do more with how you set up your vB permissions, than anything else.
  #3  
Old 11-07-2005, 05:14 PM
NickCat NickCat is offline
 
Join Date: Mar 2002
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey John,
I just started from a clean copy of functions_newpost.php and hacked from your directions, but I'm still getting the same error.

Why would you have suspected that file when the error says it's encountering a problem in the fuctions_warning.php?

And also in regards to the moderators... I understand how the permissions work, with the previous hack the warnings we're visible to all moderators in all forums. I assume it's just a matter of editing the if condition in the postbit, I just wanted to know if you had a more elegant solution before I go hacking up the postbit permissions you setup in the first place. Seems like it would be a pretty easy hack to add an if condition based on forum ids that would allow any moderator to warn in that forum.

With sites as large as mine... check NASIOC on big boards for confirmation... something like this would be very beneficial.

And yes I could manually add all 40+ of my moderators to the few forums that need the moderation... but thats a lot of extra permissioning for something that could be fixed with a small if statement.

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

For the simple reason that there is no ! in that function and because that function is called from functions_newpost.php (function build_new_post). Also check your edits in newreply.php and newthread.php (depending on if the error occurs when entering a new post or a new thread).

As for your moderators question, you can alter the conditional to check for the moderator/smoderator/admin usergroups, instead of checking if the user can moderate the post, but then make sure that you do not use the hierarchical option, I am not even sure what problems can arise from such a change.
Closed Thread


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:48 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.04036 seconds
  • Memory Usage 2,229KB
  • Queries Executed 19 (?)
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_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete