View Full Version : Countdown For Banned Users
Breathex
08-17-2007, 03:42 AM
Countdown timer for banned users will show what time left to finish user's ban on postbit or somewhere else in user's message area.
Is there any mod like this, or is it possible to have one soon?
Julrou
08-17-2007, 02:13 PM
Countdown timer for banned users will show what time left to finish user's ban on postbit or somewhere else in user's message area.
Is there any mod like this, or is it possible to have one soon?
It would be great, indeed ! :)
EnIgMa1234
08-17-2007, 02:18 PM
So liftdate in postbit?
Julrou
08-17-2007, 05:37 PM
So liftdate in postbit?
I would prefer in the page which indicates the reason of the ban. :) (the page seeing by the user banned). ;)
EnIgMa1234
08-18-2007, 11:49 AM
Pretty easy to do. If I get a free minute I'll do this
Feckie (Roger)
08-18-2007, 12:42 PM
Pretty easy to do. If I get a free minute I'll do this
So Is It Finished Yet.............:)
Julrou
08-18-2007, 02:39 PM
So Is It Finished Yet.............:)
:D
Are you exagerating ?? :siffle:
:D :D
FreshFroot
08-19-2007, 07:13 AM
sounds like a good idea.. hope someone makes it happen :)
Breathex
08-21-2007, 12:43 AM
Pretty easy to do. If I get a free minute I'll do this
I would be very happy, any news about it?
EnIgMa1234
08-21-2007, 12:44 AM
Havent gotten a free minute :p
Julrou
08-21-2007, 12:36 PM
Havent gotten a free minute :p
Really ?? :affraid:
:D :D :D
:p
;)
Breathex
08-21-2007, 06:06 PM
This will be very usefull for both admins and users.
Can anyone pay attention for this idea seriously?
Julrou
08-22-2007, 10:16 AM
This will be very usefull for both admins and users.
Can anyone pay attention for this idea seriously?
Wait a little, EnIgMa1234 said he will do it. ;)
:cool:
Breathex
08-25-2007, 02:30 AM
Bump... :)
Julrou
09-01-2007, 03:05 PM
Any news ?
:)
;)
Breathex
09-04-2007, 03:51 PM
Still waiting for this little hack. Is it really too hard for coders to do?
Ksb2050
09-10-2007, 10:21 PM
Im also interested in this.
EnIgMa1234
09-10-2007, 10:43 PM
Hey guys been busy with my battle hack. Once everything settles down ill have this for you
Breathex
09-13-2007, 02:29 AM
Hey guys been busy with my battle hack. Once everything settles down ill have this for you
Thanks for your interest Enigma :up:
midorinome
09-18-2007, 01:33 PM
this sounds really useful!!
i'd be interested in having it as well. :D
bigcurt
09-19-2007, 01:19 AM
This would be nice to see.
G0F0RBR0KE
09-19-2007, 02:15 AM
I hope it's release, if not. I'll take a look at it (which I am rite now ;) )
Breathex
09-21-2007, 07:17 PM
I hope it's release, if not. I'll take a look at it (which I am rite now ;) )
This is a good new, now 2 coders will look at it :p
In my forum there is only 1 usergroup for banned users and i use a hack that shows banned users in a list. Permanently banned users and the users banned for a while appear in this list together, but in messages (Postbit) both users appear as "Banned User". If in postbit or anywhere else in the message area shows the lift date of the ban, then it will be very understandable for users, admins and mods.
If this is not so hard to do, i will be glad to see this hack completed as soon as possible. :up:
FullyTested
09-23-2007, 08:49 AM
If all you want to do is display the time remaining on the ban whenever the user tries to log on, then...
1). Open 'includes/functions.php'
2). Find eval(standard_error(fetch_error('nopermission_bann ed', $reason['reason'], $date)));
3). ABOVE it insert:
// start code 'ban time'
if ($date != $vbphrase['never'])
{
$remain = $reason['liftdate'] - TIMENOW;
$remain_days = floor($remain / 86400);
$remain_hours = ceil(($remain - ($remain_days * 86400)) / 3600);
if ($remain_hours == 24)
{
$remain_days += 1;
$remain_hours = 0;
}
if ($remain_days <= 0)
{
$timeremaining = "<i>Will be lifted soon.</i>";
}
else
{
if ($remain_days == 1)
{
$day_word = $vbphrase['day'];
}
else
{
$day_word = $vbphrase['days'];
}
if ($remain_hours == 1)
{
$hour_word = $vbphrase['hour'];
}
else
{
$hour_word = $vbphrase['hours'];
}
$timeremaining = "$remain_days $day_word, $remain_hours $hour_word";
}
$date .= "<br />Time Remaining: $timeremaining";
}
// end code 'ban time'
Cheers,
David.
iogames
09-23-2007, 10:08 PM
Lol... :p
I was about to tell them :mad:
Breathex
09-23-2007, 10:48 PM
If all you want to do is display the time remaining on the ban whenever the user tries to log on, then...
1). Open 'includes/functions.php'
2). Find eval(standard_error(fetch_error('nopermission_bann ed', $reason['reason'], $date)));
3). ABOVE it insert:
// start code 'ban time'
if ($date != $vbphrase['never'])
{
$remain = $reason['liftdate'] - TIMENOW;
$remain_days = floor($remain / 86400);
$remain_hours = ceil(($remain - ($remain_days * 86400)) / 3600);
if ($remain_hours == 24)
{
$remain_days += 1;
$remain_hours = 0;
}
if ($remain_days <= 0)
{
$timeremaining = "<i>Will be lifted soon.</i>";
}
else
{
if ($remain_days == 1)
{
$day_word = $vbphrase['day'];
}
else
{
$day_word = $vbphrase['days'];
}
if ($remain_hours == 1)
{
$hour_word = $vbphrase['hour'];
}
else
{
$hour_word = $vbphrase['hours'];
}
$timeremaining = "$remain_days $day_word, $remain_hours $hour_word";
}
$date .= "<br />Time Remaining: $timeremaining";
}
// end code 'ban time'
Cheers,
David.
FullyTested, thanks for your interest but i'm not talking about this. I need a countdown which will show in postbit under the nick name or under the age, and only unbanned users will see this countdown.
FullyTested
09-24-2007, 12:02 AM
Hi Breathex,
I've attached a simple mod to this post.
It will display the time remaining on a ban inside the postbit.
All members will see this.
Edit...
For the actual code, please see:
https://vborg.vbsupport.ru/showthread.php?t=158800
Breathex
09-24-2007, 02:41 PM
Hi Breathex,
I've attached a simple mod to this post.
It will display the time remaining on a ban inside the postbit.
All members will see this.
Install Instructions:
1). Import the product via the Admin CP
2). Open the 'postbit' and 'postbit_legacy' templates and
Find:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
BELOW it insert:
<!-- start code 'sbt' -->
<if condition="$post['ban_time_remaining']"><div class="smallfont">$post[ban_time_remaining]</div></if>
<!-- end code 'sbt' -->
3). Done.
I hope this is what you are looking for.
David.
Hi David,
It works like a charm my friend, thanks alot. :)
FullyTested
09-24-2007, 05:10 PM
You are very welcome.
Breathex
09-24-2007, 11:20 PM
David, i have a small but important problem with the codes. After i imported the product, it writes "Ban is Permanent!" on some of my members postbits but they are not banned. I'll be glad if u find a solution for this problem.
FullyTested
09-25-2007, 01:12 AM
Breathex, that means you have a corrupt userban table with userids of previously banned users that were somehow not deleted.
How many such users do you have?
The easiest fix would be to delete them from the userban table.
Breathex
09-25-2007, 01:36 AM
Breathex, that means you have a corrupt userban table with userids of previously banned users that were somehow not deleted.
How many such users do you have?
The easiest fix would be to delete them from the userban table.
I have over 50.000 users and 3582 of them are banned. From the begining of my forum, i didn't delete any of them. Any other way to fix this problem without deleting them?
FullyTested
09-25-2007, 01:50 AM
Yes. Re-import the attached revised product.
Don't forget to select 'Allow Overwrite'.
This version also checks to see if the poster usergroupid is in a banned group.
This should solve the problem.
Edit...
For the actual code, please see:
https://vborg.vbsupport.ru/showthread.php?t=158800
bigcurt
09-25-2007, 05:34 AM
I have a forum of 11K+ members and over 3,000 are banned :P. We are a trading site. I think this would be great to have. Are all the bugs worked out bud?
FullyTested
09-25-2007, 05:57 AM
Well it's a simple hack. No bugs that I know of.
The above issue is not really a bug so much as an issue.
This hack does not modify anything so you have nothing to lose by trying it.
Just don't forget to follow the little instruction a few posts back on adding a variable to your postbit template.
Breathex
09-25-2007, 03:34 PM
Yes. Re-import the attached revised product.
Don't forget to select 'Allow Overwrite'.
This version also checks to see if the poster usergroupid is in a banned group.
This should solve the problem.
This one is cool and works perfect, also translating to own language is very simple. Thanks for all David.
lasto
09-25-2007, 03:43 PM
works perfect cheers Fullytested
bigcurt
09-25-2007, 06:12 PM
Should release it as a full hack so people can mark installed bud ;). Great job.
Breathex
09-26-2007, 08:51 AM
Should release it as a full hack so people can mark installed bud ;). Great job.
I agree :up:
FullyTested
09-26-2007, 09:41 AM
Thanks for the kind words.
Done! :)
https://vborg.vbsupport.ru/showthread.php?t=158800
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.