![]() |
Quote:
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. |
Jesus, this is correct! Thanks MGSteve, I appreciate it!!!!
Follow the instructions above folks, your problem should be solved. Sorry for that! |
Quote:
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..? |
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 |
Quote:
So basically all this did was allow you to get past the error message and remove the warning gif image from their post... |
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 |
Quote:
|
It does seem to be the "bug" spoken of in this thread, i am also getting
Quote:
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:
regards and ssorry for being a pain, i am new to all this, but i am very willing to learn |
Quote:
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. |
Quote:
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|