PDA

View Full Version : Question about infraction system


hollyboy
02-02-2016, 03:47 PM
Hi,

I am testing the infraction system but I have some concern.
If I set that user spamming are banned for a day and moved to the group "banned"

How does the user return active?
Do I have to manually change its group from banned to user or does it happen automatically?

Dave
02-02-2016, 03:49 PM
vBulletin its cronjob will automatically take care of that.

hollyboy
02-02-2016, 03:53 PM
vBulletin its cronjob will automatically take care of that.

do I have to set it anywhere?

Dave
02-02-2016, 03:54 PM
Nope, those cronjobs come with vBulletin its default installation.

hollyboy
02-02-2016, 03:59 PM
Nope, those cronjobs come with vBulletin its default installation.

But I get users complaining because they are still banned.

--------------- Added 1454436791 at 1454436791 ---------------

So here are my settings
https://vborg.vbsupport.ru/external/2016/02/18.jpg

What is confusing is the column "mai" (never) which is when the ban expires.
Does it have to be hours or days?
Note below I have the automatic ban settings so for examples when a users spams he is banned for 1 day

Dave
02-02-2016, 04:20 PM
The first table is the overview of infractions and when the infraction/warning itself expires. It looks fine.

Does your style have the cronjob image in the footer? If you're unsure what that is, give us a link to your forum and we can check it for you.

hollyboy
02-02-2016, 04:58 PM
The first table is the overview of infractions and when the infraction/warning itself expires. It looks fine.

Does your style have the cronjob image in the footer? If you're unsure what that is, give us a link to your forum and we can check it for you.

http://www.interfans.org/forum/

thank you for your help

Dave
02-02-2016, 05:02 PM
Yep, the theme you have does not have the cronimage in it.

Open the "footer" template and add:
{vb:raw cronimage}
inbetween the comments of the cronimage removal warning:
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
{vb:raw cronimage}
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->

hollyboy
02-02-2016, 05:08 PM
Yep, the theme you have does not have the cronimage in it.

Open the "footer" template and add:
{vb:raw cronimage}
inbetween the comments of the cronimage removal warning:
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
{vb:raw cronimage}
<!-- Do not remove cronimage or your scheduled tasks will cease to function -->

it is there already

https://vborg.vbsupport.ru/external/2016/02/17.jpg

Dave
02-02-2016, 06:19 PM
Not entirely sure why it's not working, doesn't make much sense when I check the PHP code where it's generating the cronimage.

You can try to add it manually by replacing {vb:raw cronimage} with
<img src="http://www.interfans.org/forum/cron.php?t={vb:date timestamp}">

Just keep in mind that it's hardcoded this way. In case your domain or directory structure changes, you have to modify that URL as well.

hollyboy
02-02-2016, 07:01 PM
Not entirely sure why it's not working, doesn't make much sense when I check the PHP code where it's generating the cronimage.

You can try to add it manually by replacing {vb:raw cronimage} with
<img src="http://www.interfans.org/forum/cron.php?t={vb:date timestamp}">

Just keep in mind that it's hardcoded this way. In case your domain or directory structure changes, you have to modify that URL as well.

well the birthday automatic messages work so it should also work the infraction, shouldn't it?

Dave
02-02-2016, 07:01 PM
It should indeed. :)