The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Updating Counters Automatically
Is there any way to set up a cron job to automatically update a certain counter?
The one I'm interested in is the "Delete Duplicate Threads". I'd like to also only do this for a certain forum. Is it possible? |
#2
|
||||
|
||||
Sure, you can write a cron job to run any query.
Here's a basic template for your cron job: PHP Code:
|
#3
|
|||
|
|||
So all I would do is enter a query where it says "your query would go here."?
Excuse me if I still sound like a noob, but what do I put there? |
#4
|
||||
|
||||
Basically, yeah, and then upload the page to your cron folder and make a new cron job to run that page at a set time. However, I would run it on a test site before putting it on a real site.
|
#5
|
|||
|
|||
I'm interested in this too. How does one find what query is used when this is invoked manually in the maintenance area?
|
#6
|
||||
|
||||
You look at the source code in the page and see what form action is being taken when you click on the Submit button. Then, open that page in an editor and see what query they are calling.
|
#7
|
|||
|
|||
First off Lynne thank you for helping out in this matter here is the code I have would this be correct.
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|