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)
-   -   Inferno Warning System v1.3 (https://vborg.vbsupport.ru/showthread.php?t=93669)

Onur 03-07-2006 12:01 PM

i don t know is it post earlyer in this thread but i have add on hook postbit_display_complete $post['userid'] != 0

like
Code:

global $vbulletin;
 
if ($post['postid'] && $post['userid'] != 0 && (can_moderate($forum['forumid']) || ($vbulletin->userinfo['userid'] == $post['userid'] && $vbulletin->options['warn_allow_view'])))
{
        require_once(DIR . '/includes/functions_warning.php');
        $show['warning'] = true;
        $post['warning'] = construct_warning_display($post, can_moderate($forum['forumid']));
}

so i disable displaying warnlevel for guests

DannyITR 03-07-2006 06:13 PM

Sorry but I just noticed that my forum specific mods can warn/ban anywhere. This is a problem because I don't consider them real mods (they are like rent-a-mods) and are used only to move delete posts when necessary.

Is that normal? How can I fix it?

Also how can I make the warning level visible to all users?

DannyITR 03-08-2006 12:43 PM

I really need tis mod fast. People are only seeing this warn logo next to their own name and nobody elses and the questions as to why are pooring in.

DannyITR 03-08-2006 07:45 PM

I can't beleive I'm the first to ask that it be visible to all users. The less smart people are complaining like crazy because they think its only them that has a warning meter.

DannyITR 03-11-2006 05:02 PM

anyone can help?

Mathiau 03-11-2006 06:42 PM

This looks greats, may try to conquer it later on :)

DannyITR 03-13-2006 03:34 PM

Can someone help make the hack visible to all users and prevent section mods form using it?

Pcparts 03-14-2006 08:04 AM

I have this saved (was posted in this thread sometime ago):

With this insatalled, now on my forums only admins can see the warning leve indicator in each post. And users only see if they have been issued a warning.


Quote:

When I added this my users went nuts - had no clue what it was and those with 0% thought they were in trouble.

I made a slight modification:

Code:

if ($Current == 0 && $user['userid'] == $vbulletin->userinfo['userid']) {
return 'No warnings.';
}

in the functions_warnings.php script above the return so that it would display No warnings to the user if they had a 0% score. This seems to have cut down on the panic.




Yes, because this only appears to the user themselves; not to the moderators who would warn that user. It's to avoid a 0% display which is confusing to my users.

I put it in the first function in functions_warning.php:


if ($Empty > 0)
{
for ($e = 0; $e < $Empty; $e++)
{
$Bits[] = bit_builder();
}
}

if ($Current == 0 && $user['userid'] == $vbulletin->userinfo['userid']) {
return 'No warnings.';
}




sinaluna 03-14-2006 11:55 PM

If you use the "PM the warned user" features of the Inferno Warning System, you might want to consider modifying warn.php to save the sent PM in the "sent Items" folder of the staff member that warned the user.

in warn.php, find this code:
PHP Code:

        if (!empty($Warning['pm']['title']) && !empty($Warning['pm']['message']))
        {
                
$pmdm =& datamanager_init('PM'$vbulletinERRTYPE_ARRAY);
                
$pmdm->set('fromuserid'$vbulletin->userinfo['userid']);
                
$pmdm->set('fromusername'$vbulletin->userinfo['username']);
                
$pmdm->set('title'$Warning['pm']['title']);
                
$pmdm->set('message'$Warning['pm']['message']);
                
$pmdm->set_recipients($UserData['username'], $null);
                
$pmdm->set('dateline'TIMENOW); 

And add this line at the end:
PHP Code:

                $pmdm->set_info('savecopy'true);      // MODIFICATION 

Final code should look like:
PHP Code:

        if (!empty($Warning['pm']['title']) && !empty($Warning['pm']['message']))
        {
                
$pmdm =& datamanager_init('PM'$vbulletinERRTYPE_ARRAY);
                
$pmdm->set('fromuserid'$vbulletin->userinfo['userid']);
                
$pmdm->set('fromusername'$vbulletin->userinfo['username']);
                
$pmdm->set('title'$Warning['pm']['title']);
                
$pmdm->set('message'$Warning['pm']['message']);
                
$pmdm->set_recipients($UserData['username'], $null);
                
$pmdm->set('dateline'TIMENOW);
                
$pmdm->set_info('savecopy'true);      // MODIFICATION 

Thats all there is to it. Hopefully this can become the default behaviour in future releases (/nudge /nudge)

bada_bing 03-15-2006 02:36 PM

Quote:

Originally Posted by sinaluna
If you use the "PM the warned user" features of the Inferno Warning System, you might want to consider modifying warn.php to save the sent PM in the "sent Items" folder of the staff member that warned the user.

in warn.php, find this code:
PHP Code:

        if (!empty($Warning['pm']['title']) && !empty($Warning['pm']['message']))
        {
                
$pmdm =& datamanager_init('PM'$vbulletinERRTYPE_ARRAY);
                
$pmdm->set('fromuserid'$vbulletin->userinfo['userid']);
                
$pmdm->set('fromusername'$vbulletin->userinfo['username']);
                
$pmdm->set('title'$Warning['pm']['title']);
                
$pmdm->set('message'$Warning['pm']['message']);
                
$pmdm->set_recipients($UserData['username'], $null);
                
$pmdm->set('dateline'TIMENOW); 

And add this line at the end:
PHP Code:

                $pmdm->set_info('savecopy'true);      // MODIFICATION 

Final code should look like:
PHP Code:

        if (!empty($Warning['pm']['title']) && !empty($Warning['pm']['message']))
        {
                
$pmdm =& datamanager_init('PM'$vbulletinERRTYPE_ARRAY);
                
$pmdm->set('fromuserid'$vbulletin->userinfo['userid']);
                
$pmdm->set('fromusername'$vbulletin->userinfo['username']);
                
$pmdm->set('title'$Warning['pm']['title']);
                
$pmdm->set('message'$Warning['pm']['message']);
                
$pmdm->set_recipients($UserData['username'], $null);
                
$pmdm->set('dateline'TIMENOW);
                
$pmdm->set_info('savecopy'true);      // MODIFICATION 

Thats all there is to it. Hopefully this can become the default behaviour in future releases (/nudge /nudge)

Installed this extra feature will test. Thanks


All times are GMT. The time now is 03:41 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.01742 seconds
  • Memory Usage 1,800KB
  • 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
  • (6)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
  • (2)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