Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
PS - Delete All Visitor Messages Every 30 Days Details »
PS - Delete All Visitor Messages Every 30 Days
Mod Version: 1.00, by PaulSonny (Member) PaulSonny is offline
Developer Last Online: Apr 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.x Rating: (3 votes - 5.00 average) Installs: 66
Released: 31 Mar 2008 Last Update: 31 Mar 2008 Downloads: 358
Not Supported DB Changes Additional Files  

vBulletin 3.7 Version


This is my third modification.

Any questions asked by members who have not marked this as installed will be considered low priority.

About This Hack: This has been requested from a vBulletin.org member. This will delete all Visitor Messages every 30 days. (1st of Every Month)

Installation Information: 1 Additional File, 1 Scheduled Task.

To install just unzip the download below and import into vB using the ACP Product Manager, further and full instructions are included.

If you wish to make the Scheduled Task run more often you can edit the Scheduled Task.

Go to Admin CP >> Scheduled Tasks >> Scheduled Task Manager >> Visitor Message Del >> Then Edit To Your Choice, for example if you choose Day of Week as Sunday, this will run every Sunday.

Please post your comments or suggestions for this hack. I read ALL posts.

Please remember to click Mark As Installed if you use this modification.
If you use this plug-in, and find it useful, please support us by nominating us for Mod Of The Month (MOTM) in the top right corner of this thread, or feel free to donate.

You will get an email when a new version is released.

History:

Version 1.00:
Initial version for vBulletin 3.7.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Mini Mods GS - Delete Soft Deleted Visitor Messages Every 30 Days 1.0 ForumsMods vBulletin 3.8 Add-ons 12 30 Jul 2014 00:42

Comments
  #2  
Old 31 Mar 2008, 23:20
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Thanks for this Paul! Will install now!

Quick question: Does it hard delete them?

Regards Jason
Reply With Quote
  #3  
Old 31 Mar 2008, 23:20
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Is there any way to add a setting for how many days?
Reply With Quote
  #4  
Old 31 Mar 2008, 23:26
PaulSonny PaulSonny is offline
 
Join Date: Dec 2006
Real name: Paul Cook
Originally Posted by Jase2 View Post
Thanks for this Paul! Will install now!

Quick question: Does it hard delete them?

Regards Jason
Yes Jason, this does hard delete them.

Originally Posted by Boofo View Post
Is there any way to add a setting for how many days?
Sorry Boofo I do not understand, a setting for how many days what? or do you mean like say from the 1st of january to 1st of february type thing?

Thanks, Paul.
__________________
Kind Regards, Paul.
Reply With Quote
  #5  
Old 31 Mar 2008, 23:35
Jase2 Jase2 is offline
 
Join Date: Dec 2007
I think what Boofo means is set it to their own choice of days. For example; 20 days.

And thanks Paul.

Regards Jason
Reply With Quote
  #6  
Old 31 Mar 2008, 23:42
PaulSonny PaulSonny is offline
 
Join Date: Dec 2006
Real name: Paul Cook
I'm afraid the only way I know how to do that at the minute is by manually going in and editing the Scheduled Task.

Go to Admin CP >> Scheduled Tasks >> Scheduled Task Manager >> Visitor Message Del >> Then Edit To Your Choice, for example if you choose Day of Week as Sunday, this will run every Sunday.

Thanks, Paul.
__________________
Kind Regards, Paul.
Reply With Quote
  #7  
Old 31 Mar 2008, 23:44
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Paul,

As this is a scheduled task, I'll be able to disable it, then click "run now" whenever I wish?

Regards Jason
Reply With Quote
  #8  
Old 31 Mar 2008, 23:46
PaulSonny PaulSonny is offline
 
Join Date: Dec 2006
Real name: Paul Cook
Originally Posted by Jase2 View Post
Paul,

As this is a scheduled task, I'll be able to disable it, then click "run now" whenever I wish?

Regards Jason
I believe so.

Thanks, Paul.
__________________
Kind Regards, Paul.
Reply With Quote
  #9  
Old 01 Apr 2008, 00:14
Jase2 Jase2 is offline
 
Join Date: Dec 2007
That's great Paul! Will do some testing, and report any bugs I may find.

Regards Jason
Reply With Quote
  #10  
Old 01 Apr 2008, 00:55
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I was thinking more like a setting so you could run it at 180 days if you wanted to.

But, no biggie, I'll make a hack to do a setting for me. Good job, though.
Reply With Quote
  #11  
Old 01 Apr 2008, 01:06
PaulSonny PaulSonny is offline
 
Join Date: Dec 2006
Real name: Paul Cook
Originally Posted by Boofo View Post
I was thinking more like a setting so you could run it at 180 days if you wanted to.

But, no biggie, I'll make a hack to do a setting for me. Good job, though.
If you do manage to make a jack which will allow you to run the scheduled task every 180 days I would be eternally grateful if you would either help me improve this modification or show me the code you create?

Thanks, Paul.
__________________
Kind Regards, Paul.
Reply With Quote
  #12  
Old 01 Apr 2008, 01:08
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I will do that, sir.
Reply With Quote
  #13  
Old 01 Apr 2008, 01:23
Jase2 Jase2 is offline
 
Join Date: Dec 2007
adafsfs

Last edited by Jase2; 07 Nov 2008 at 16:03.
Reply With Quote
  #14  
Old 01 Apr 2008, 01:28
PaulSonny PaulSonny is offline
 
Join Date: Dec 2006
Real name: Paul Cook
Originally Posted by Jase2 View Post
Just been testing this Paul, and received the following error:

Database error in vBulletin 3.7.0 Release Candidate 1:

Invalid SQL:
DELETE FROM visitormessage;

MySQL Error : Table 'user_vbulletin.visitormessage' doesn't exist
Error Number : 1146
Date : Monday, March 31st 2008 @ 05:22:20 PM
Script : http://www.techsupportteam.org/forum...cron&cronid=25
Referrer : http://www.techsupportteam.org/forum....php?do=modify
IP Address : 82.16.245.186
Username : Jason
Classname : vb_database
MySQL Version : 5.0.27-standard

It's saying it doesn't exist, when it quite clearly does. Any ideas?

Regards Jason
I think I know why, but to confirm my thoughts, do you use a Table Prefix?

Thanks, Paul.
__________________
Kind Regards, Paul.

Last edited by Marco van Herwaarden; 14 Apr 2009 at 12:11.
Reply With Quote
  #15  
Old 01 Apr 2008, 01:30
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Yes, I do.

I thought that may be the problem too. I'll need to edit it right, and include my table prefix? Which code would I edit? But there again, it's added my table prefix above -- it's just saying it can find it.

EDIT: I see this in the .php file:



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I believe I need to add my prefix at the beginning so it looks like this:



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Correct?

Regards Jason

Last edited by Jase2; 01 Apr 2008 at 01:44.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:33.

Layout Options | Width: Wide Color: