The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#182
|
|||
|
|||
![]()
AWESOME HACK!!!
Installed quickly and easily, and works WONDERFULLY! ![]() * Clicks Install |
#183
|
|||
|
|||
![]()
Ok, I've made a little script that should go through and delete any warns that are more then a month old
![]() Simply upload this script to your webserver, and set up a Scheduled Task (in your vB AdminCP) to run it once a day ![]() |
#184
|
|||
|
|||
![]()
Great, but i need a Script that unbann all Banned user after the Bantime.
|
#185
|
|||
|
|||
![]()
I am afraid this is not as simple as that.
If you are to delete aged warnings (and I believe one should do that), the task is a bit more involved than just deleting the warnings themselves. I believe that you should also reduce the points the member has accumulated, until that time, by the number of points associated with the warning you delete. I tried to do such a thing, but it gets too complicated for my knowledge of queries. You have to fetch the user id, then go to the warnings table, get the warned_warning_id and from their find how many points are associated with this warning type and subtract these points from the user table. If you can do that, I guess you are solving one of the major issues with this hack. And of course, the un-banning script will be a welcome improvement too. Rgds |
#186
|
|||
|
|||
![]()
Some people (me included) had expressed the hope that the PM send to the members when they are warned, is formed by an easy-to-adapt template. Well, I've managed to do it, so here are some details:
In Warn.php, find : PHP Code:
PHP Code:
PHP Code:
Rgds |
#187
|
|||
|
|||
![]()
After a lot of trial-and-error, I've managed to improve on Jag's script above.
The script below, will test every warning to see if it is more than a month old. If it is, it will erase the warning and reduce the points of the member by the number of points that warning had. One question Jag, that number you used, $date = $today-240800, the 240800, where does it come from? I believe that it should be $date = $today-2592000 (for 30 days x 24 hours x 60 minutes x 60 seconds). Here is my script: PHP Code:
|
#188
|
||||
|
||||
![]()
Who all have access to warn? Can super moderators and moderators have access?
|
#189
|
|||
|
|||
![]() Quote:
Rgds |
#190
|
||||
|
||||
![]() Quote:
Quote:
|
#191
|
|||
|
|||
![]() Quote:
To see how mine looks like go to: http://forum.m1911.org/showthread.php?t=597 Now if you were logged in as a user, in your posts, you would also see the "View my warnings" link too. Word of caution. After all the customization I've done to this hack, I am not sure of what comes with it and what I added. So please take my response as a "yes, in my case.". Thanks |
#192
|
||||
|
||||
![]()
Ok.. so how to I add it
![]() |
#193
|
|||
|
|||
![]()
OK, here is what I use in my postbit templates. I do not use the legacy one, but try it and let me know how it works for you.
In your postbit (or legacy) template, find: HTML Code:
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a> </if> HTML Code:
<!-- checks for warning system --> <if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])"><a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> ? </if> <if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6)"> <a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?</if> <if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]==2 AND $post[warning_level]>0"> <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> ?</if> <!-- end of warning system --> For the number of points each user has, to appear in the post: Find: HTML Code:
<if condition="$show['reputation']">$post[reputationdisplay]</if> HTML Code:
<if condition="$post[usergroupid]==2"><BR>Warns Level: $post[warning_level]</if> Rgds |
#194
|
|||
|
|||
![]() Quote:
As for the 240800, that's why you shouldn't do math at 4am ![]() |
#195
|
||||
|
||||
![]()
Works like a charm
![]() Warns Level: 0 But when that user has a warning, it would be: Warns Level: 1 (have the color to be red for the non-zero number). I think it would be a condition or something. Dunno. |
#196
|
|||
|
|||
![]() Quote:
HTML Code:
<if condition="$post[usergroupid]==2"> <if condition="$post[warning_level]>0"><font color='#ff0000'></if> <BR>Warns Level: $post[warning_level] <font color='#ffffff'> </if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|