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)

smsmasters 06-26-2004 01:34 PM

Unban Banned Users does not work! Also, once you reach the number of points to get banned, they don't get banned by the specified number of days, they get banned forever. BLOODY HELL, this hack has more bugs than the cockroaches in my closet.

GamerzWorld 06-26-2004 06:53 PM

Installed with no problems :)

j_86 06-27-2004 11:16 AM

Quote:

Originally Posted by Zero Tolerance
If you want members to be able to view others warnings, please make this edit within Warn.php

Find:
PHP Code:

if($_GET['do']!='ViewMyWarnings'){
if(!
can_moderate(  )){
print_no_permission(  );
}


Replace With:
PHP Code:

if($_GET['do']!='ViewMyWarnings' && $_GET['do']!='ViewWarnings'){
if(!
can_moderate(  )){
print_no_permission(  );
}



This isn't working for me, even after editing the code as described above, normal members cannot view warnings.

smsmasters 06-29-2004 09:36 PM

Another bug, the PM notification of a warning to the member produces wierd characters. Quote:

Quote:

??? ???? ?????? ?????????????? ?? ?????????: ???? ?????????. ?????????? ????????????????? ??????: 9. ?????????????? ?? ???????? ?? ???????:: Copyrighted goods prohibited!. ???? ?? ?????? ???????? ?????????????? ???????? ??? ??.

Battle_Ring 06-30-2004 07:04 PM

is there a way to make it so only admins can ban people but mods and super mods still have permission to warn

blueuniverse 07-04-2004 03:21 PM

When I go to the view warnings page, or go to warn another member, I get a 404 error.

See - http://www.rouseindahouse.com/Warn.p...ViewMyWarnings

PranK 07-06-2004 12:13 AM

Quote:

Originally Posted by DiscussNASCAR
usergroup conditionals. I think someone else may have posted it further up, but here's what we did. Only Admins and SM's can see it now


PHP Code:

  
   <
font size=1><if condition="$bbuserinfo['usergroupid'] == '5'">[<b>Current Warning Level:</b$post[warning_level]/- <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'><b>Warn $post[username]</b></a> - <a href='Warn.php?do=ViewWarnings&id=$post[userid]'><b>View $post[username]'s Warnings</b></a>]</if> <if condition="$bbuserinfo['usergroupid'] == '6'">[<b>Current Warning Level:</b> $post[warning_level]/6 - <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'><b>Warn $post[username]</b></a> - <a href='Warn.php?do=ViewWarnings&id=$post[userid]'><b>View $post[username]'s Warnings</b></a>]</if> </font
  <if 
condition="$show['postcount']">? #<a 

that's all in the postbit. Don't forget to change the $post[warning_level]/6 to whatever your max warning level is set to (ours is 6)

Sweet - thanks mate.

hey ZeroTolerance, can you please answer my q's from this post.

Thanks.

bigreefer 07-12-2004 07:25 AM

I Installed this hack in VB 3.0.3

All goes great but only one thing does not go.
If i Warn a user an he has reach the Bann-Warnpoits, the Hack dount move the user to a banned group. The user always can use the Forum :(

bigreefer 07-12-2004 07:52 AM

Another Problen is in the Waring PM

Code:

You have been warned for the post: Your Post. Your warning level is now: 10. This action was taken for the following reason: . Please reply back if you have a dispute. Snatch
It don?t show me the reason. Onle the Comment shows me but if i leav the Comment blank it shows me no reason in the PM. I wan?t that it shows me the Warning Type.

Snatch 07-12-2004 07:30 PM

I have the same problem as Bigreefer.

The hack runs without problems bur user ho has bannes can always connect to the Forum.
They must move to group banned user but it dont move them.

Plz. Help.

DiscussNASCAR 07-12-2004 10:16 PM

Quote:

Originally Posted by bigreefer
I Installed this hack in VB 3.0.3

All goes great but only one thing does not go.
If i Warn a user an he has reach the Bann-Warnpoits, the Hack dount move the user to a banned group. The user always can use the Forum :(

we had that problem too. Turned out it was because only their primary group is changed (we have a temp fan usergroup), so, if they had a subgroup that let them in more places, they could still post where we didn't want them to.

dunno if it helps or not, but I guess what I'm getting at is, check for subgroups on that person

lots of issues with this hack. Essentially, all we are using it for now is to keep track of how many points a user has :(

Zero Tolerance 07-13-2004 05:58 PM

Version 1.5 has been released, check main post to download it. It covers a range of bug fixes and new features which is covering mainly what everyone has asked for, sorry for the delay on this update, been up to my neck working on rpg inferno. But here it is, check the main post to see what's new, enjoy all :)

- Zero Tolerance

Jolten 07-13-2004 06:25 PM

Trying to apply the 1.5 update...


Quote:

alter table warning_options
add `banned_usergroup_id` int(15) not null default '0'
add `protected_usergroups` varchar(255) not null default '';
results in

Error


SQL-query+:+


ALTER TABLE warning_options ADD `banned_usergroup_id` int( 15 ) NOT NULL default '0' ADD `protected_usergroups` varchar( 255 ) NOT NULL default ''


MySQL said:

#1064 - You have an error in your SQL syntax near 'ADD++`protected_usergroups` varchar( 255++)++NOT++NULL default++''' at line 1

Zero Tolerance 07-13-2004 06:33 PM

*Updates first post*

Missed a comma out, sorry about that, use this:

ALTER TABLE warning_options ADD `banned_usergroup_id` int( 15 ) NOT NULL default '0', ADD `protected_usergroups` varchar( 255 ) NOT NULL default ''

Jolten 07-13-2004 06:39 PM

Thanks Zero.. went smooth now. I really appreciate the work.

Zero Tolerance 07-13-2004 06:41 PM

Not a problem, glad i could help ^_^. Enjoy,

- Zero Tolerance

Snatch 07-13-2004 07:13 PM

Great Job !!

But one question.

At my Forum is Warn Level 10 = 1 Day Bann

If I warn a user and he has reach Level 10/10 he was banned for 1 day.
But if I warn him into this bantime the Level does not go for example to 15/10 etc. So if he reach for example 20/10 he banned 2 Days. Ist there a way to do this.

now is it so, if i warn a user and he reach level 10/10 an i ban him into the Bantime again and again the hack makes for the Same juser more and more reason.
Code:

1:
User: tester
Time banned: 21:59 13-07-2004
Time To Be Unbanned: 21:59 14-07-2004

2:
User: tester
Time banned: 22:05 13-07-2004
Time To Be Unbanned: 22:502 14-07-2004

but i wish, that he add the secound bann tho the first so he has 2 Day Ban instead og 1.

Sorry for bad English :)

Zero Tolerance 07-13-2004 07:32 PM

The system was set up so the warning level cannot go over the limit, so if a user has 9/10 and you warn them 3 points, it will only go to 10/10 (Otherwise that would be a bug)

What your asking could be done but then others may not want as say you give them 12/10 and they get banned for 17 days where normall people get 15/16 days banned. I feel it would be unfair aspecially when it may be done by accident from a mod because they didn't know of this feature therefor that user is banned longer than they should be.

However, in version 2 there will be admin controllable ban length's, and upon been warned if they are to be banned for exceeding the warning limit then a moderator may choose a suitable ban time length.

Hope that will be sufficient for your needs, i feel it would be better :)

- Zero Tolerance

j_86 07-13-2004 08:33 PM

If I was to set an IF condition, that displays to one user gorup only - does this include the sub-usergroups a user may be member of?

Say if there main one is 6, but are also part of 10. And I set if condition bbusergroup == 10 - will they get to see the warning links?

Zero Tolerance 07-13-2004 08:35 PM

This post has a way to show the links only to people who can moderate :)

https://vborg.vbsupport.ru/showpost....7&postcount=19

- Zero Tolerance

j_86 07-13-2004 08:54 PM

Thank you Zero :)

May I also ask - is the modification still the same, to allow people to view another person's warnings? Because, it does not seem to work for 1.5 :(

Zero Tolerance 07-13-2004 09:32 PM

I am aware that doesn't work.

This hasn't been tested but it should work

inside Warn.php
Find:
PHP Code:

if($_GET['do']!='ViewMyWarnings'){ 

Change to:
PHP Code:

if($_GET['do']!='ViewMyWarnings' || $_GET['do']!='ViewWarnings'){ 

- Zero Tolerance

j_86 07-13-2004 10:12 PM

Still doesnt work :(

I just get the usual;

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

Thing.

j_86 07-13-2004 10:14 PM

Looking at the code, isn't the above adjustment only allowing those that can moderate the forum to view the warnings?

PHP Code:

// You have permission to warn o_O
if($_GET['do']!='ViewMyWarnings' || $_GET['do']!='ViewWarnings'){ 
if(!
can_moderate(  )){
print_no_permission(  );


If so, is it possible to let anyone view warnings?

Zero Tolerance 07-13-2004 10:20 PM

My bad, today just isn't my day :P

Change
PHP Code:

if($_GET['do']!='ViewMyWarnings' || $_GET['do']!='ViewWarnings'){ 

To:

PHP Code:

if($_GET['do']!='ViewMyWarnings' && $_GET['do']!='ViewWarnings'){ 

Tested it, and it works =)

- Zero Tolerance

wrongful 07-14-2004 01:39 AM

One suggestion:
Some sort of system so that different admins/mods can't warn a user for the same post.

One minor gripe/possible bug:
When users are put into the banned usergroup, they don't take on the look of that usergroup (i.e. name color, custom title, etc).

Otherwise a great hack though!

Zero Tolerance 07-14-2004 05:59 AM

I like the first idea, ill include that in Version 2.

As for the member inherriting from the new usergroup, exactly what parts would you like them to inherrit and what parts do you want to stay? :)

- Zero Tolerance

wrongful 07-14-2004 10:50 AM

Quote:

Originally Posted by Zero Tolerance
I like the first idea, ill include that in Version 2.

As for the member inherriting from the new usergroup, exactly what parts would you like them to inherrit and what parts do you want to stay? :)

- Zero Tolerance

I definately want them to take on the name color of the banned usergroup and the pre defined custom title that the banned group has. It seems that when you move a user to a different usergroup, this would happen automatically, but I suppose it is something that has to be coded.

Zero Tolerance 07-14-2004 11:07 AM

I will make them inherrit those properties from the usergroup there are been moved into upon banned. :)

- Zero Tolerance

Snatch 07-14-2004 08:12 PM

Hello

I have one Problem more :)
If i bann a User for 1 day he did not automaticaly unban?after this day.
I wish that he jups after the Ban automaticaly to his normal usergroup.

Greetz
Snatch

Zero Tolerance 07-15-2004 04:10 AM

V2.0 will include a cron job that will automatically unban banned user's that have completed there time that was set. :)

- Zero Tolerance

Pitman 07-15-2004 05:40 AM

Any plans of adding the ability to increase time for secon, third, etc. offences with admincp options?

Also I would like to see the PM text either as a phrase, in a template, or as an option so it will be easier to modify it. :)

Thanks

j_86 07-15-2004 05:59 AM

Quote:

Originally Posted by Zero Tolerance
V2.0 will include a cron job that will automatically unban banned user's that have completed there time that was set. :)

- Zero Tolerance

I thought there was already a vBCron that unbanned banned members? (VB3 having a timed ban function and all).

Zero Tolerance 07-15-2004 06:17 AM

vB already has a built in cron system yes, but i will have to make a little script to be able to be added to that :)

- Zero Tolerance

bigreefer 07-15-2004 09:37 AM

when will version 2.0 come ?
Can i update from 1.5 easy or must I install the Hack completly new ?

bilco105 07-15-2004 11:00 AM

Having two problems with the script that I was hoping someone could help me out with.

First one is that I am using this code in postbit for admins only to be able to view everything
Code:

<if condition="$post[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">Current Warning Level: $post[warning_level]/30 ? <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[musername]</a> ? <a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[musername]'s Warnings</a> ?</if>
That works brilliantly and looks nice, so people are welcome to use that. Only thing is that is appearing in the postbit for the private messages aswell when it shouldnt be.

It shouldnt be appearing because this script does not support private message reporting if you know what I mean.

Secondly. Is there a way to format the pm it sends out. I was thinking of something like.

Quote:

Dear {user},

This private message is to inform you that your warning points have increased to {totalpoints}. This is in regard to a post made by yourself here.

Regards,
{warner}
Obviously it needs more info like what the "warner" said, and info about the maximum amount etc etc.

I took a look in Warn.php but the way its setup is does not support formatting. Any ideas?

j_86 07-15-2004 01:16 PM

Quote:

Originally Posted by Zero Tolerance
vB already has a built in cron system yes, but i will have to make a little script to be able to be added to that :)

- Zero Tolerance

What I mean is, VB already lets you have timed-bans for users, so why not use this system?

redlabour 07-15-2004 04:13 PM

Does the better Version work with 3.0.3 ??

Blam Forumz 07-18-2004 09:59 AM

How do I change stuff in the admincp? nothings there

PranK 07-19-2004 01:42 AM

Is there a timelimit on warning points? Theres no need for warning points to stick around for a year or two.


All times are GMT. The time now is 04:22 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.01701 seconds
  • Memory Usage 1,853KB
  • 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
  • (3)bbcode_code_printable
  • (8)bbcode_php_printable
  • (9)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
  • (40)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