Pruning Private Messages in vBulletin

Discussion in 'vBulletin' started by minstrel, Feb 17, 2007.

  1. #1
    Is this a customization here at DP or is there an add-on for vBulletin that allows one to regularly prune PMs by age?
     
    minstrel, Feb 17, 2007 IP
    sundaybrew likes this.
  2. Jacqueline

    Jacqueline Well-Known Member

    Messages:
    232
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    123
    #2
    There is one at vBulletin.org.

    Mass Delete Old Private messages

    By default it deletes all private messages more than 60 days old. It has a time variable in it, so if you want a different time you can adjust the variable. It can be put in a cron job to run automatically or you can run it manually when you want to prune.
     
    Jacqueline, Feb 24, 2007 IP
  3. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #3
    Thanks, Jaqueline. That script needs some updating to work with 3.6x but it gives me a starting point. :)
     
    minstrel, Feb 24, 2007 IP
  4. Jacqueline

    Jacqueline Well-Known Member

    Messages:
    232
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    123
    #4
    Oops! I didn't even look at how old that was. It is the only thing I found. The query is a bit more complex than it was in the older version due to the addition of read receipts.

    I posted over there with a bit of pseudo-code that may help.
     
    Jacqueline, Feb 24, 2007 IP
  5. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #5
    Thanks, J. I had a look and posted where I'd got to so far... not yet working. :(

    I'm at a very basic level when it comes to SQL queries...
     
    minstrel, Feb 24, 2007 IP
  6. sundaybrew

    sundaybrew Numerati

    Messages:
    7,294
    Likes Received:
    1,260
    Best Answers:
    0
    Trophy Points:
    560
    #6
    There is a great forum Called

    --->>>http://www.vbulletin-faq.com/

    Maybe you can ask there :p :p j/k

    I am surprised Joey didn't know...thought he was the master

    Maybe Shawn will chime in...

    Good luck though finding the answer...someone has to know between those 2 forums
     
    sundaybrew, Feb 24, 2007 IP
  7. joeychgo

    joeychgo Notable Member

    Messages:
    3,368
    Likes Received:
    321
    Best Answers:
    0
    Trophy Points:
    255
    #7
    Only way to do it is with a hack - although I know this is under consideration as a built in feature of the next major upgrade.
     
    joeychgo, Mar 1, 2007 IP
    sundaybrew likes this.
  8. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #8
    I'm about 80% there with an add-on, with the help of Jaqueline and Sarah from TAZ.

    Needs a bit more tweaking as soon as I get time.
     
    minstrel, Mar 1, 2007 IP