vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Warning Hack V1.5 (https://vborg.vbsupport.ru/showthread.php?t=65336)

bnn121 11-03-2004 09:06 AM

I have another question...to sv1cec,

Within on these post there are several mentions of the hack allowing and not allowing certain users to view any or all of the warning hack details. I was woundering if I could get some sort of clarification on what I need to do in order to accomplish the following using your files.

1) I want to have all members regardless of there status to be able to view there own warnings, but not that of other members.

2) Only the Moderators that are assigned a specific forum are allowed to use the warning system within that forum...but are able to see the status of other members...but not able to do anything if its not there forum they moderate.

3) SuperMods need to have access to the warning system in all forums.

4) Admins can not be warned.

5) Supermods can warn mods

Right now...I am using your files on my board. I created a test user...and nomatter what status I give this user...It can see the warning system.

Again...I no some of these... if not all are posted in this thread...but from what I gather...they are not using the files that you submitted in order to use your config.

Thanks for any clarification.

sv1cec 11-03-2004 09:54 AM

Quote:

Originally Posted by bnn121
I have another question...to sv1cec,

Within on these post there are several mentions of the hack allowing and not allowing certain users to view any or all of the warning hack details. I was woundering if I could get some sort of clarification on what I need to do in order to accomplish the following using your files.

1) I want to have all members regardless of there status to be able to view there own warnings, but not that of other members.

2) Only the Moderators that are assigned a specific forum are allowed to use the warning system within that forum...but are able to see the status of other members...but not able to do anything if its not there forum they moderate.

3) SuperMods need to have access to the warning system in all forums.

4) Admins can not be warned.

5) Supermods can warn mods

Right now...I am using your files on my board. I created a test user...and nomatter what status I give this user...It can see the warning system.

Again...I no some of these... if not all are posted in this thread...but from what I gather...they are not using the files that you submitted in order to use your config.

Thanks for any clarification.

AS the system is today, members can see their own warnings, but not the warnings of other members. However, everyone can see how many warning points everyone else has, these are shown in the postbit.

As far as I remember, a moderator can see everyone's warnings (even in a forum he is not moderating), but can only issue warnings in the forums he/she is moderating. That is done, to help the moderator get a better idea of how bad a user is.

I do not use Supermoderators, so I do not know what they can and cannot do, at this moment. Sorry.

An administrator can do whatever he likes.

Admins, mods and supermods cannot be warned, these are the protected user groups, declared in the Warning Options.

rgds

sv1cec 11-03-2004 09:59 AM

One thing that has been requested in the past, or at least I think this is what has been requested, is to have increased banned days, depending on the ... offensiveness of the warned member. So what I did, is I did some mods, to increase the number of days a member is banned, if he is banned more than one time.

To clarify this, if a member is banned for the first time, let's say he is banned for days. If you activate this new feature (controlable from the Warning Options in AdminCP), if the same member is banned again, he will be banned for 14 days (2x7) If he is banned again, he will be banned for 21 days (3x7) etc..

The mods allow you to define a maximum number of bans, after which the member is permanently banned from your forums.

The mods are listed in the attached file, but if you have any problems, please let me know.

rgds

sv1cec 11-03-2004 01:45 PM

For those who downloaded the above instructions, please note that I had a small mistake in the file. Ijust reuploaded the instructions.

The mistake was in a line in Warn.php file, which said:

Replace with:

PHP Code:

if($warn_type['warn_permban']=="Yes" OR ($warn_options['incr_ban_days']="Yes" AND($warn_options['max_no_bans']!=and $number_of_bans>=$warn_options['max_no_bans']))) 

while it should say replace with:

PHP Code:

if($warn_type['warn_permban']=="Yes" OR ($warn_options['incr_ban_days']=="Yes" AND($warn_options['max_no_bans']!=and $number_of_bans>=$warn_options['max_no_bans']))) 

Two equals in the second comparison, instead of one.

j_86 11-03-2004 02:00 PM

Again, good work sv1 :) I hope to repay some day.

There is a problem, I cannot find;
Code:

<b>User ID :</b> $userid
</div>

in the standard VB template?

j_86 11-03-2004 02:19 PM

And one question; How do I remove the

Guest - No Permissions
Unable To View
Guests Are Unable To View This Page

When a guest tries to view warnings (I have allowed all people to view warnings, but it seems not for guests).

sv1cec 11-03-2004 03:45 PM

Quote:

Originally Posted by JimpsEd
Again, good work sv1 :) I hope to repay some day.

There is a problem, I cannot find;
Code:

<b>User ID :</b> $userid
</div>

in the standard VB template?

I think it is in the standard vB template, but then again, I am not 100% sure.

If you can't find that, try finding this:

PHP Code:

</td>
            <if 
condition="$show['profilepic']"

and put the code above this.


Quote:

And one question; How do I remove the

Guest - No Permissions
Unable To View
Guests Are Unable To View This Page

When a guest tries to view warnings (I have allowed all people to view warnings, but it seems not for guests).
I am not sure, where this originates from, I can't find anything in Warn.php, which prohibits guests from viewing the warnings. It must be somewhere else, I'll need some time to find it, if you do not mind.

Rgds

SamirDarji 11-03-2004 04:13 PM

Sounds almost like a usergroup permission thing?

sv1cec 11-03-2004 05:26 PM

Quote:

Originally Posted by SamirDarji
Sounds almost like a usergroup permission thing?

Nope, it is hidden in the WARN template. Edit that, and you will find something like:

HTML Code:

<if condition="$bbuserinfo[userid]=='0'">


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat" colspan="3">Guest - No Permissions</td>
</tr>
<tr>
        <td class="thead">Unable To View</td>
</tr>
<tr>
        <td class="alt1" colspan="1">Guests Are Unable To View This Page</td>
</tr>
</table>
<br/>

<else />


$warn_page
<br />
</if>

Replace that with:

HTML Code:

$warn_page
<br />


beano33 11-05-2004 05:45 PM

Quote:

Originally Posted by sv1cec

The mods allow you to define a maximum number of bans, after which the member is permanently banned from your forums.

Is there any way to carry over bannings from a previous system? We use a 3 strikes protocol and it would be nice if I could enter the users prior bans when switching over.


All times are GMT. The time now is 07:39 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.01464 seconds
  • Memory Usage 1,766KB
  • 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_html_printable
  • (3)bbcode_php_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