vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Advanced Warning System (Beta Version) (https://vborg.vbsupport.ru/showthread.php?t=95921)

MGSteve 01-06-2006 09:55 AM

Quote:

Originally Posted by Xplorer4x4
John I can not remove warning either. For example when i hover the link to remove a warning, it shows up as www.domsforums.net// which in other words it is adding an extra trailing slash

One thing I have just found is that I couldn't removed a warning that had been made, it kept coming up with a invalid user Id message.

Well, the error is wrong and there's a bug in the code which stops you removing the first warning you place...

warn.php:1345,6 and 7 are like this...

if($_GET['id']=="" || !$_GET['id'] || $_GET['id']<=1){
RunError("Invalid User ID Input");
}

Ok, id in this case is not a user id, its the ID of the warning! (copy and paste error I bet).

Also, you need to change the 1 in the line to a 0, otherwise you can't remove the warning with the id of 1!

so, change line 1345 to

if($_GET['id']=="" || !$_GET['id'] || $_GET['id']<=0){

and you'll be able to remove the first warning.

sv1cec 01-06-2006 11:55 AM

Jesus, this is correct! Thanks MGSteve, I appreciate it!!!!

Follow the instructions above folks, your problem should be solved.

Sorry for that!

MGSteve 01-06-2006 12:46 PM

Quote:

Originally Posted by sv1cec
Jesus, this is correct! Thanks MGSteve, I appreciate it!!!!

Follow the instructions above folks, your problem should be solved.

Sorry for that!

No probs, its the kind of bug you never see as it only ever effects new installs!

Although it would only effect the first warning, I don't know if the others were all trying to delete their first warning or not..?

MGSteve 01-06-2006 02:38 PM

I'm getting 3 of these errrors now when posts are being made...

any ideas?

Warning: preg_replace(): Compilation failed: nothing to repeat at offset 16 in /includes/functions_warning.php on line 706

Bubble #5 01-06-2006 04:47 PM

Quote:

Originally Posted by MGSteve
so, change line 1345 to

if($_GET['id']=="" || !$_GET['id'] || $_GET['id']<=0){

and you'll be able to remove the first warning.

This is only a partial fix. The warning is still half there. The amount of warnings shown on thier account, and also their warning points are not reset....

So basically all this did was allow you to get past the error message and remove the warning gif image from their post...

stevew 01-06-2006 05:42 PM

Hi, 1st up, this is a great hack and extremely useful, so thanks to the author


I am however having a small problem, i have searched this thread and couldnt find a definate solution, the hack is working fine, if i warn someone they get warned or banned, which is all good


But i cant remove the warnings, if i try to remove them either via the forum- member profile or the admin cp/member profile/complete removal i get page not found, a 404 error, this is the url it is trying to find

HTML Code:

http://www.software-help.co.uk//admin_warn.php?act=completeremove&id=1&userid=7&uname=spazzo%20member&wname=Test%20warning&postid=728&orderstring=


Anybody have any idea where i have gone wrong??? Or is this a known bug that i just havent found in this thread yet????



regards
steve

Bubble #5 01-06-2006 06:37 PM

Quote:

Originally Posted by stevew
Or is this a known bug that i just havent found in this thread yet????

Removing warnings is a known bug, but yours might be a different problem. Double check and make sure that file is in the right place on your server.

stevew 01-06-2006 07:10 PM

It does seem to be the "bug" spoken of in this thread, i am also getting


Quote:

An error has occured, the following message has been left below:

Invalid User ID Input


But i still havent found an actual solution to it in this thread, so i had better not test the warning system on anyone else :nervous: I already have one casualty....oops lol



regards


I have found a couple more bugs, this time in the admin control panel, when i goto a users profile and click view warnings, it goes to this url

HTML Code:

http://www.software-help.co.uk/modcp/admin_warn.php?act=do_finduserwarnings&userid=7


Which gives a page not found error, which i know the reason for but dont know how to solve it

I need that button to point to this url

HTML Code:

http://www.software-help.co.uk/modcp/mod_warn.php?act=do_finduserwarnings&userid=7


Would appreciate a little nudge in the right direction on that :o




Also, while in mod cp looking at a user profile still, "warn user non post related" button, when i click that, it gives this error


Quote:

An error has occured, the following message has been left below:

Invalid User ID Input



regards and ssorry for being a pain, i am new to all this, but i am very willing to learn

SoftWareRevue 01-07-2006 02:36 AM

Quote:

Originally Posted by sv1cec
I am not sure I understand your request. You have the ability to have multiple warning types, each one associated with different points and different maturity period. Also, you have the ability to artificially mature a warning sooner than the maturity period (remove it) or to completely remove it (as if it was never issued). What more do you want? Oh, also, the admin can also change the number of points a user has etc.

Sorry. Been gone. Back now. :)

Something editable on the fly by the mod. A way to issue a warning and assign the points and days right then. Just a little more flexibility. :)

This gives moderators a better chance to moderate. They can look at any circumstance and decide if the warning issued should be harsher or less than the default.

MGSteve 01-07-2006 01:39 PM

Quote:

Originally Posted by Bubble #5
This is only a partial fix. The warning is still half there. The amount of warnings shown on thier account, and also their warning points are not reset....

So basically all this did was allow you to get past the error message and remove the warning gif image from their post...


No, what it fixed was not being able to remove the first post. I did say in my follow up post that it probably won't fix everyone's problems.

The bizarre thing is that I don't get half the problems removing warnings that you lot do... I just couldn't remove the first one, subsequent warnings have been removed fine.

Although it doesn't remove the warning icon from the post that led to the warning, that just looks like it doesn't do that (as opposed to suppost to but doesn't because of a bug.)


All times are GMT. The time now is 08:39 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.01962 seconds
  • Memory Usage 1,757KB
  • 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
  • (3)bbcode_html_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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