![]() |
Just to let users know:
This is a cron job, you can disable it if you wish, then just click "Run Now" whenever you want and boom all visitor messages are gone! Regards Jason :) |
I think it's better that this hack only delete the mesasges which has been posted 30 days ago or more. not to delete all of the messages every 30 days.
thanks for this hack anyway! |
Good suggestion, I will try and get it working for you.
Thanks, Paul. |
Quote:
|
Quote:
1. Visitor messages limit, if possible different settings for each user group. 2. Exclude certain user groups to make it more attractive to subscribe for paid subscriptions or to join the moderator team. Thank you! |
Quote:
And the one about only deleting 30+ old messages, not the newnew ones :) Thanks! |
Quote:
Open visitormessagedelete.php file and find : $vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "visitormessage"); replace with: $vbulletin->db->query_write("DELETE FROM ".TABLE_PREFIX."visitormessage where FROM_UNIXTIME(dateline )<SUBDATE(CURDATE(), INTERVAL 30 DAY )"); it will work. You can change 30 DAY with whatever you want. You can also change cron job to run this script every day ;) |
Quote:
|
Installed!
Thanks ! |
Quote:
Also: Is there a way to make it so that certain members/usergroups do not get theirs deleted. |
All times are GMT. The time now is 09:32 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|