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)

Andreas 09-14-2005 05:28 PM

Weird. Can you attach the HTML source of the Page here?

EdQ 09-14-2005 05:43 PM

I see the issue...

Andreas 09-14-2005 06:00 PM

Fix

Plugin = AWS: Show Warning Info in User Manager (ACP)

PHP Code:

print_table_break(''$INNERTABLEWIDTH);
    
print_table_header("Warnings Information");
print_input_row('Alerts''user[alerts]'$user['alerts']);
print_input_row('Warnings''user[warnings]'$user['warnings']);
print_input_row('Warning Level''user[warning_level]'$user['warning_level']);
print_input_row('Bans''user[warning_bans]'$user['warning_bans']);
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>&nbsp;
    <a href=\"admin_warn.php?act=do_finduserwarnings&userid=
$user[userid]\">
    <input type=\"button\" class=\"button\" name=\"warn\" value=\"View 
$user[username]'s Warnings\" accesskey=\"v\"   onclick=\"window.open('admin_warn.php?act=do_finduserwarnings&userid=$user[userid]','','width=1024, height=500, resizable=yes, scrollbars=yes'); return false;\"></a>
    </center>"
); 

Guess my Firefox used the Link instead the JS.

EdQ 09-14-2005 06:00 PM

Is this the problem?

PHP Code:

<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>&nbsp; 

it need to be

PHP Code:

<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>&nbsp; 


EdQ 09-14-2005 06:07 PM

Quote:

Originally Posted by KirbyDE
Fix

Plugin = AWS: Show Warning Info in User Manager (ACP)

PHP Code:

print_table_break(''$INNERTABLEWIDTH);
    
print_table_header("Warnings Information");
print_input_row('Alerts''user[alerts]'$user['alerts']);
print_input_row('Warnings''user[warnings]'$user['warnings']);
print_input_row('Warning Level''user[warning_level]'$user['warning_level']);
print_input_row('Bans''user[warning_bans]'$user['warning_bans']);
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>&nbsp;
    <a href=\"admin_warn.php?act=do_finduserwarnings&userid=
$user[userid]\">
    <input type=\"button\" class=\"button\" name=\"warn\" value=\"View 
$user[username]'s Warnings\" accesskey=\"v\"   onclick=\"window.open('admin_warn.php?act=do_finduserwarnings&userid=$user[userid]','','width=1024, height=500, resizable=yes, scrollbars=yes'); return false;\"></a>
    </center>"
); 

Guess my Firefox used the Link instead the JS.

Ok that worked. :) But can it be started in a new window?

Andreas 09-14-2005 06:11 PM

Yes it can.
(If you are a fan of new Windows, I am not - prefer Tabs)

EdQ 09-14-2005 06:30 PM

Thanks!

EdQ 09-14-2005 06:35 PM

Did this make sense??

Quote:

Originally Posted by EdQ
If I used the "Private Messaging Cut-off Limit" when the user exceeds the number. He won't be able to send PM's till he falls under the limit which is set by Warn Maturity. So if I set the Warn Maturity to 30 days, he won't be able to use PM's for 30 days??

A user could be banned for just one day. But have their PM's taken away for 30 days. Doesn't sound right.
Can we have a preset setting or incremental like bans?


Andreas 09-14-2005 06:42 PM

Hmm, why not?
A Ban is stronger than turning of PMs, so why souldn't it be possible to turn them off longer than a ban lasts?

thecool 09-14-2005 10:21 PM

Found this bug while trying to remove a user warning

The requested URL /~user1/forums//admin_warn.php was not found on this server.

i'm assuming the error is with the //


All times are GMT. The time now is 04:13 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.01721 seconds
  • Memory Usage 1,763KB
  • 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
  • (4)bbcode_php_printable
  • (2)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