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)

Julie 01-19-2006 02:01 PM

Quote:

Originally Posted by sv1cec
Email me that template.

Uuugh, never mind. It was just me being silly. I usually just search for parts of the code to find, but when I tried searching the first time I didn't find it. And then I saw the little code part now when I was going to send it to you.. But, just a small FYI, you've specified you don't want e-mails, unless by the above you meant PM... :P

But the odd thing, it sent a PM even though I didn't have the last PM part added in the template :S

But, thanks for the help! :)

Delphiprogrammi 01-23-2006 06:23 PM

hi people,

I've found a bug in this system.When you try to warn a user through the user manager in your admincp for a nonpost related warning it will show you "invalid userid input" and not allow you to issue the warning.

this can be solved by folowwing this steps
  • goto admincp => plugin system => plugin manager
  • click the plugin AWS:Show Warning Info In user Manager
  • click the button "large editbox" as we need to edit some code

FIND

PHP Code:

print_description_row("<center><a href=\"../Warn.php?$session[sessionurl]do=WarnUserNoPost&return=user&id=$user[userid]\"> 
    <input type=\"button\" class=\"button\" name=\"warn\" value=\"Warn 
$post[username] (non-post related)\" accesskey=\"w\" onClick=\"window.location='../Warn.php?$session[sessionurl]do=WarnUserNoPost&return=user&id=$userid'\"></a> 

change to

PHP Code:

print_description_row("<center><a href=\"../Warn.php?$session[sessionurl]do=WarnUserNoPost&return=user&id=$user[userid]\"> 
    <input type=\"button\" class=\"button\" name=\"warn\" value=\"Warn 
$post[username] (non-post related)\" accesskey=\"w\" onClick=\"window.location='../Warn.php?$session[sessionurl]do=WarnUserNoPost&return=user&id=$user[userid]'\"></a> 

wrong code

$userid should be $user[userid]

save plugin

all done

sv1cec 01-25-2006 04:36 PM

Thanks Delphi!

Luggruff 01-26-2006 03:06 PM

Hey. I wonder If you could add a little something that shows that a post has been alerted? So that no-one goes warning that post when it's allready been alerted?

And another question, how come I can't COMPLETELY DELETE soft-deleted/inactive warnings??

sv1cec 01-26-2006 03:21 PM

No, there is nothing that shows that a post has been alerted, but there is a huge red sign which shows that a post has been warned. Maybe I can add another sign there, for alerts. Let me check that.

Inactive warnings cannot be deleted? Do you mean the "Prune Warnings" selection does not work?

Update on the Alert Sign. I can't do it without a test site folks, this requires several changes in the hack, and I did it on the 3.4.xx version, but I can't work on fictional code.

Let me know if the Prune Warnings is what is not working.

BiReL41r 01-26-2006 11:27 PM

Great hack, got it installed!

ssslippy 01-28-2006 04:13 AM

When clicking view someones warning and attempt to remove the warnings I get the invalid userid input also. I cant find where I need to fix this. Anyone got an idea?

After doing some odd research. I have 2 forums, one can do it and one cant. The major different I know is the mySQL version. Im upgrading the the sql version on the one server and will let u know.

sv1cec 01-28-2006 05:40 AM

Check your Warn.php file. Search for:

Code:

if($_GET['do']=="RemoveWarning"){
A little below that, there should be some code lines which SHOULD look like this:

Code:

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

Make sure that it looks just like that, if it has something like $_GET['id']>1 or equal to 1, change it so that it looks exactly as above.

Delphiprogrammi 01-28-2006 08:18 AM

remove waring works fine with me

WNxWakko 01-28-2006 04:41 PM

Ok, Im having trouble locating wording within the emails that are sent to members when they get banned. Nothing seems to be in phrases. Ive searched the files, the plugins and no luck.

Where do you find this?
"This is a permanent ban and will last for ever"

Also any other wording in the emails would be helpful also.


All times are GMT. The time now is 12:26 AM.

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.02109 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)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