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)

SimonP 05-10-2007 07:43 PM

Here is the auto-ban-fix f?r 3.6.x boards:

In file WARN.PHP search for this:
Code:

foreach ($vbulletin->usergroupcache AS $usergroupid => $usergroup)
                {
                        if ($usergroup['genericoptions'] & $vbulletin->bf_ugp_genericoptions['isbannedgroup'])
                        {
                                if ($vbulletin->options['warn_ban_usergroup'] == $usergroupid)
                                {
                                        $Found = $usergroupid;
                                }

                                $Temp = $usergroupid;
                        }
                }

Replace all lines above with one line:
Code:

$Found=$vbulletin->options['warn_ban_usergroup'];
This removes the autosearch-for-ban-group feature that was failing in 3.6.x boards,

Also make sure that you have the set the correct Banned Usergroup-ID in AdminCP -> vBulletin Options -> Inferno Warning Options.

LiLSnooP 05-11-2007 09:53 PM

Quote:

Originally Posted by SimonP (Post 1245160)
Here is the auto-ban-fix f?r 3.6.x boards:

In file WARN.PHP search for this:
Code:

foreach ($vbulletin->usergroupcache AS $usergroupid => $usergroup)
                {
                        if ($usergroup['genericoptions'] & $vbulletin->bf_ugp_genericoptions['isbannedgroup'])
                        {
                                if ($vbulletin->options['warn_ban_usergroup'] == $usergroupid)
                                {
                                        $Found = $usergroupid;
                                }

                                $Temp = $usergroupid;
                        }
                }

Replace all lines above with one line:
Code:

$Found=$vbulletin->options['warn_ban_usergroup'];
This removes the autosearch-for-ban-group feature that was failing in 3.6.x boards,

Also make sure that you have the set the correct Banned Usergroup-ID in AdminCP -> vBulletin Options -> Inferno Warning Options.


THX man it helps me !

deepak7 05-26-2007 02:25 PM

I installed this but disabled it cause I don't know (And didnt find the answer in previous pages!) how to:

- give permission to moderators also not only supermoderators
- (most important): HOW can I make warnings visible only to warned users! After I installed the hack only super moderators were able to see it

aakhan136 07-16-2007 01:20 PM

Thanks

doopz 10-10-2007 11:41 AM

Hello!

I seem to have a small problem.
Our Moderators and Super Moderators are unable to see the "View User's Warnings"

As far as I know all the settings in the AdminCP are correct.

Heres an output of the devdebug log:

Code:

(Page Generated in 0.88229 Seconds)
        AutomaticWarner1
        $threadedmode is empty
        (unspecified) fetch_permissions(222, 33868, 2,''); -> cached fperms for forum 222
        ignored users:
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
        threadinfo[vote] =
        hierarchical = 1
        useradmin = 0, postadmin = 1, usermod = 0, postmod = 0, usersmod = 0
        showpoints = , showwarnsignmgm = , showwarnsign =
        showwarnlink = 0, showviewwarnlink = 0, showviewyourslink = 0
          USER IS A SUPER MODERATOR
        returning smilies from the datastore
        returning smilies from the datastore
        (unspecified) fetch_permissions(222, 33868, 2,''); -> cached fperms for forum 222
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
        hierarchical = 1
        useradmin = 0, postadmin = 0, usermod = 0, postmod = 0, usersmod = 0
        showpoints = , showwarnsignmgm = , showwarnsign =
        showwarnlink = 1, showviewwarnlink = 0, showviewyourslink = 0
          USER IS A SUPER MODERATOR
        (unspecified) fetch_permissions(222, 33868, 2,''); -> cached fperms for forum 222
          USER IS A SUPER MODERATOR
        hierarchical = 1
        useradmin = 0, postadmin = 1, usermod = 0, postmod = 0, usersmod = 0
        showpoints = , showwarnsignmgm = , showwarnsign =
        showwarnlink = 0, showviewwarnlink = 0, showviewyourslink = 0
          USER IS A SUPER MODERATOR
        (unspecified) fetch_permissions(0, 1, ,''); -> trying to get combined permissions for non $bbuserinfo
        (unspecified) fetch_permissions(222, 33868, 2,''); -> cached fperms for forum 222
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
        hierarchical = 1
        useradmin = 0, postadmin = 0, usermod = 0, postmod = 0, usersmod = 0
        showpoints = , showwarnsignmgm = , showwarnsign =
        showwarnlink = 1, showviewwarnlink = 0, showviewyourslink = 0
          USER IS A SUPER MODERATOR
        (unspecified) fetch_permissions(222, 33868, 2,''); -> cached fperms for forum 222
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
        hierarchical = 1
        useradmin = 0, postadmin = 0, usermod = 0, postmod = 0, usersmod = 0
        showpoints = , showwarnsignmgm = , showwarnsign =
        showwarnlink = 1, showviewwarnlink = 0, showviewyourslink = 0
          USER IS A SUPER MODERATOR
        (unspecified) fetch_permissions(0, 40675, ,''); -> trying to get combined permissions for non $bbuserinfo
        (unspecified) fetch_permissions(222, 33868, 2,''); -> cached fperms for forum 222
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
        hierarchical = 1
        useradmin = 0, postadmin = 0, usermod = 0, postmod = 0, usersmod = 0
        showpoints = , showwarnsignmgm = , showwarnsign =
        showwarnlink = 1, showviewwarnlink = 0, showviewyourslink = 0
          USER IS A SUPER MODERATOR
        (unspecified) fetch_permissions(0, 40675, ,''); -> trying to get combined permissions for non $bbuserinfo
        (unspecified) fetch_permissions(222, 33868, 2,''); -> cached fperms for forum 222
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
        hierarchical = 1
        useradmin = 0, postadmin = 0, usermod = 0, postmod = 0, usersmod = 0
        showpoints = , showwarnsignmgm = , showwarnsign =
        showwarnlink = 1, showviewwarnlink = 0, showviewyourslink = 0
          USER IS A SUPER MODERATOR
        (unspecified) fetch_permissions(222, 33868, 2,''); -> cached fperms for forum 222
          USER IS A SUPER MODERATOR
        hierarchical = 1
        useradmin = 0, postadmin = 1, usermod = 0, postmod = 0, usersmod = 0
        showpoints = , showwarnsignmgm = , showwarnsign =
        showwarnlink = 0, showviewwarnlink = 0, showviewyourslink = 0
          USER IS A SUPER MODERATOR
        (unspecified) fetch_permissions(0, 1, ,''); -> trying to get combined permissions for non $bbuserinfo
        (unspecified) fetch_permissions(222, 33868, 2,''); -> cached fperms for forum 222
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
        hierarchical = 1
        useradmin = 0, postadmin = 0, usermod = 0, postmod = 0, usersmod = 0
        showpoints = , showwarnsignmgm = , showwarnsign =
        showwarnlink = 1, showviewwarnlink = 0, showviewyourslink = 0
          USER IS A SUPER MODERATOR
        (unspecified) fetch_permissions(0, 38817, ,''); -> trying to get combined permissions for non $bbuserinfo
        (unspecified) fetch_permissions(222, 33868, 2,''); -> cached fperms for forum 222
          USER IS A SUPER MODERATOR
        First Post: 705739; Last Post: 705794
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
          USER IS A SUPER MODERATOR
        php_sapi_name(): apache2handler

The moderators and Super Moderators are defined per usegroup ID, and view waring links is on.

Any suggestions?

Thanks in advance

CoryNickerson 10-11-2007 11:08 PM

Fatal error: Call to undefined function construct_warning_display() in /home/ezpknet/public_html/includes/class_postbit.php(296) : eval()'d code on line 7

what can i do to fix this error?

powerful_rogue 01-08-2008 08:47 AM

Just installed on 3.6.7 and seems to be working fine :)

powerful_rogue 01-09-2008 12:57 PM

Is there an edit to the code which will remove the rights of moderators, so only admins and super mods can view and issue warnings?

Im guessing its something to do with:

Quote:

if ($_GET['do'] == 'removewarning')
{
if (!can_moderate() || !$vbulletin->options['can_del_warn'])
{
print_no_permission();
}

if (!$Warn = $DB->query_first("select w.*, u.* from " . TABLE_PREFIX . "warnlog w left join " . TABLE_PREFIX . "user u on(u.userid = w.w_user) where w.wid = '" . intval($_GET['log']) . "'"))
which is located in the warn.php

Any idea how this can be altered to put in the Admin + Supermod usergroup?

(If you search "can_moderate) in the warn.php you will notice that relates to the view/warn and delete.

psxnet 02-04-2008 03:33 PM

Small problem :)

Everything works fine, EXCEPT it just refuses to auto ban people when the warning limit is reached.
Banned usergroup is set correctly in admincp

Running vBulletin 3.6.8 Patch Level 2

If anyone has come across this before I would be grateful if they could suggest a fix, as it is a great system apart from this.

Thanks.

steve1966 07-09-2008 03:53 PM

hi can someone please give me some full settings for this i am trying to install on v3,72


i complete the details here in step 4 but i get the message

what should i put in

Varname ?

Description ?

Log Phrase ?

Code:

Please Complete All Required Fields
step 4:
Add the following Cron task (ACP -> Scheduled Tasks -> Add New Scheduled Task):
--
Title: Inferno Warning Tasks
Day Of The Week: *
Day Of The Month: *
Hour: 23
Minute: 2 - - -
Log Entries: (Up to you)
Filename: ./includes/cron/warning.php


All times are GMT. The time now is 07:38 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.02064 seconds
  • Memory Usage 1,772KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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