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)

docvader 01-19-2006 01:12 AM

Are you still able to issue post related warnings if the little graphical display is not there? And where exactly did you put this modification?

MPDev 01-19-2006 01:56 AM

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:

Code:

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

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


bada_bing 01-19-2006 02:27 AM

Quote:

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

I have added this code but had a question. Will only the staff see the meter like Mods,super mods & admins? and the rest of the usergroups will see the "no warnings" correct?

Also when that member is warned wll they then see the warning meter?

docvader 01-19-2006 03:59 AM

MPDEV, very impressive.

If you are an admin, you see all the warning meters. You see "No warnings" for yourself
If you are a member, you see "No Warnings" for yourself, and see no warning meter for anyone else.

Cleans it up nicely.

Brilliant.

But, if you warn someone, only they see it. No one else does. Which, if you're looking for a little public chastisement (we do, we warn people and send them to HELL, our members really kind of like that, believe it or not...), you lose a key feature of the warning system.

Any way of keeping it like you have it, but, showing a warned member's graph to the world?

Pcparts 01-19-2006 08:11 AM

Quote:

Originally Posted by MPDev
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.

Can you tell me please, where exactly did you add this code in the functions_warning.php?




[EDIT]

never mind, I got it after having a look at the file itself.

Just one more thing, how do I allow moderators (along with the administrators) to see the warning meter? and be able to issue warnings?


Thanks

EvilHawk 01-19-2006 09:18 AM

Quote:

Originally Posted by GTAce
I'm not sure whether or not this has been asked yet, sorry if it has - but are there plans to create some sort of location to keep track of ALL warnings issued? Basically one central log for the admins to list all warnings issued ordered by time, I guess

A working solution is to download and install "Custom Queries with parameters" by MarcoH64 and import the following xml! It contains two queries : Warning Log (ALL) and Warning Log by Moderator, both with custom order fields and sorting. ;)

EvilHawk 01-19-2006 09:31 AM

Quote:

Originally Posted by MPDev
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 have made something simillar with a different approach (no file edits)!
I have put the postbit templates edit between an if statement
Code:

<if condition="$show['inlinemod']"><br /><br /><div class="smallfont">$post[warning]</div></if>
So only members with moderating rights can see it in the postbit and my members can see their warning log at their public profile! ;)

MPDev 01-19-2006 11:48 AM

Another tip I use, since I use the postbit_legacy and don't like making the iplogged section two lines (opens up all that space to the right where a couple button sit; I prefer the warning indicator in the profile section along with all the other user information. I also like it formatted like the other items:

So, in the postbit_legacy template, I put the code here:

Code:

                <if condition="$post[icqicon] or $post[aimicon] or $post[msnicon] or $post[yahooicon] or $post[skypeicon]"><div class="info">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div></if>
                <if condition="$show['warning']"><div class="smallfont"><div class="info">$post[warning]</div></if>

Quote:

Any way of keeping it like you have it, but, showing a warned member's graph to the world?
The only thing my change above did was instead of displaying a 0% meter to a user, it says "No warnings." to them; it doesn't change any other functionality and only effect what the user sees about themselves. To show a warning level to the world would mean changing some other logic and I haven't looked that close to know offhand what to change.

kridisi 01-19-2006 02:17 PM

How can I do that other users will see the warning to other users.

thanks in advance
kridisi

HO3R 01-19-2006 04:20 PM

Can someone please help me with my problem a page ago:

When i try to warn a member i still get this error:
The user you are trying to warn doesn't exist.

Really dont know what to do, tried a lot
I'm using 3.5.3

Tnx in advance

Greetz


All times are GMT. The time now is 03:35 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.01476 seconds
  • Memory Usage 1,750KB
  • 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_code_printable
  • (5)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