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)
-   -   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/showthread.php?t=71992)

JayJay 01-05-2005 02:20 PM

Thanks - I'll give that a try now and then tell you how I get on :)

sv1cec 01-05-2005 02:26 PM

Quote:

Originally Posted by Torqued
Looks like we were cross-posting. :)

Uninstalled and reinstalled.. updating options seems to work fine now.

Since I had made the file edits up to 3.0.3, I just applied the file edits for 3.0.3 -> 3.0.4 and am seeing a couple of issues when trying to warn from the Admin CP:

1: When entering a specific userID to warn, it just takes me to the user list.

2: When selecting Warn User from their profile page, it just takes me to a blank screen.

For the first, it's strange because I took the code directly from vB's admincp entry page and it works fine in my system. Anyone else is having this problem? If you go into the User Manager and you select Warn User from the Quick User Links, do you get the warn screen?

As for the second, check your warn_addwarn_nopost template, that's the one that is called from that point.

I'll look more into these two issues later tonight, my hands are kind of full right now.

Rgds

Rhoads 01-05-2005 02:47 PM

Quote:

Originally Posted by sv1cec
For the first, it's strange because I took the code directly from vB's admincp entry page and it works fine in my system. Anyone else is having this problem? If you go into the User Manager and you select Warn User from the Quick User Links, do you get the warn screen?

As for the second, check your warn_addwarn_nopost template, that's the one that is called from that point.

I'll look more into these two issues later tonight, my hands are kind of full right now.

Rgds

I have the same problem :

1: When entering a specific userID to warn, it just takes me to the user list.
2: When selecting Warn User from their profile page, it just takes me to a blank screen with "Internal Server Error" "The server encountered an internal error or misconfiguration and was unable to complete your request."

It was good, but after the 3.0.4 and 3.0.5 update it's wrong.

Torqued 01-05-2005 02:59 PM

Quote:

Originally Posted by sv1cec
For the first, it's strange because I took the code directly from vB's admincp entry page and it works fine in my system. Anyone else is having this problem? If you go into the User Manager and you select Warn User from the Quick User Links, do you get the warn screen?

As for the second, check your warn_addwarn_nopost template, that's the one that is called from that point.

I'll look more into these two issues later tonight, my hands are kind of full right now.

Rgds

I think I may be onto something:

My default style was a child style of the Default VB Style.

I switched my default style back to the parent Default VB Style and reinstalled. Now I get a 404 error when selecting the Warn User from the dropdown in the user profile.

Still getting just the user list when entering a userID. Searching by username now seems to be working.

I changed the following in admincp/user.php:

Code:

"/Warn.php?$session[sessionurl]do=WarnUserNoPost&id=$userid"
to:

Code:

"../Warn.php?$session[sessionurl]do=WarnUserNoPost&id=$userid"
Once I did that, I no longer get the 404, but instead get this:

Code:

An Error Has Occured!
An error has occured, the following message has been left below:

You may not issue warnings which are not related to a post

Edited to add: Ignore that last part right there.. when I reinstalled, I forgot I had to go back and change my warning options again. lol. sorry for being a retard! :nervous:

Still am getting only the whole userlist when I enter in a numeric userid via Warn User in the AdminCP

Viol8or 01-05-2005 04:17 PM

Another suggestion sv1cec:

Situation: a certain person has already got a few warnings. He makes a new posts that needs a warning to. ModA comes by, spots the post and gives warning. Few hours later ModB passes by, spots post. If it's smart moderator, he will first check the logs or warnings to see if this post was warned before. A lot of mods however will skip this step, and it's rather time consuming on bigger boards as well. Therefor it would be nice if the post that got the warning was marked in any way, or has a prevention from further warnings.
We had situations we users got 2 or 3 warnings for the same post.
Can be handy?

sv1cec 01-05-2005 06:17 PM

Quote:

Originally Posted by Torqued
I think I may be onto something:

My default style was a child style of the Default VB Style.

I switched my default style back to the parent Default VB Style and reinstalled. Now I get a 404 error when selecting the Warn User from the dropdown in the user profile.

Still getting just the user list when entering a userID. Searching by username now seems to be working.

I changed the following in admincp/user.php:

Code:

"/Warn.php?$session[sessionurl]do=WarnUserNoPost&id=$userid"
to:

Code:

"../Warn.php?$session[sessionurl]do=WarnUserNoPost&id=$userid"
Once I did that, I no longer get the 404, but instead get this:

Code:

An Error Has Occured!
An error has occured, the following message has been left below:

You may not issue warnings which are not related to a post

Edited to add: Ignore that last part right there.. when I reinstalled, I forgot I had to go back and change my warning options again. lol. sorry for being a retard! :nervous:

Still am getting only the whole userlist when I enter in a numeric userid via Warn User in the AdminCP

Folks,

I think that at some time, I installed a hack which allowed you to search by the User ID. I swear to God, it works fine with the code as it is in my site. I am trying to find out what else need to be changed, but I can't. I think it was a mini-mod that did that, but I can't find it at the moment.

I'll look at that and let you know as soon as possible.

As for the post being marked, this is an excellent idea, and I think it can be done.

Umtil later.

SamirDarji 01-05-2005 07:34 PM

Quote:

Originally Posted by Viol8or
Another suggestion sv1cec:

Situation: a certain person has already got a few warnings. He makes a new posts that needs a warning to. ModA comes by, spots the post and gives warning. Few hours later ModB passes by, spots post. If it's smart moderator, he will first check the logs or warnings to see if this post was warned before. A lot of mods however will skip this step, and it's rather time consuming on bigger boards as well. Therefor it would be nice if the post that got the warning was marked in any way, or has a prevention from further warnings.
We had situations we users got 2 or 3 warnings for the same post.
Can be handy?

I wouldn't think preventing a warning would be a solution, but what about changing the color or font (or both) of the "warn user" link in the post when there is already a warning for that post? This way, a mod will know there is already a warning on that post, but still has the option to warn again if it is warranted.

mojo8850 01-05-2005 09:22 PM

Thanks sv1cec..

Nice One Guys For Replying Appreciate It..!

Viol8or 01-06-2005 05:08 AM

Quote:

Originally Posted by SamirDarji
I wouldn't think preventing a warning would be a solution, but what about changing the color or font (or both) of the "warn user" link in the post when there is already a warning for that post? This way, a mod will know there is already a warning on that post, but still has the option to warn again if it is warranted.

This would indeed be an acceptable solution.

sv1cec 01-06-2005 05:43 AM

Good morning Gang,

Here is the answer to your problem. I knew it was not something difficult:

In your includes/adminfunctions_user.php find:

PHP Code:

$condition .= iif($user['email'], " AND email LIKE '%" addslashes_like($user['email']) . "%'"); 

Right above that, add:

PHP Code:

$condition .= iif($user['userid'], " AND user.userid = '" addslashes_like($user['userid']) . "'"); 

That should solve your search with User ID problem.

Let me go and update the installation instructions and all.

Rgds


All times are GMT. The time now is 05:02 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.05079 seconds
  • Memory Usage 1,764KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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