![]() |
PLS Help: How to add Scheduled Task to run Update User Titles and Ranks script when:
I have subscriptions in my forums for people that donate to the website. The subscriptions work fine but I have noticed that after the subscription ends the member is pulled from the "contributor group" but they still have a contributor title in their member name.
This is sure to cause confusion as their PM, Attachments, and PhotoPost limits are higher as a contributor, plus they have access to some "Members Only" forums. So, what I need is a way to run a "Scheduled Task" to ping the "Update User Titles and Ranks" script that we have in the "Update Counters" area of the Admin CP. Can someone advise how I might be able to add a task to do this and I assume there would be no problems with having the server do this at least once a day... Thanks! p.s. I did try VB.com but they said to try here: http://www.vbulletin.com/forum/showt...38#post1073338 Now, until someone suggest how to do this I am going to disect the code here: In /admincp I see the file /usertitle.php which has a section: Code:
// ###################### Start do update ####################### Code:
// ###################### Start user choices ####################### Code:
<script type="text/javascript"> |
I still need some help with programing this sceduled task....
Even if it was some help coming up with a small php file that acts like the original request so that when the CRON gets done it pings the PHP script that causes the work to be done.... I am sure others could use this as well.... |
just copy one of the existing scripts in the includes/cron directory, and work from there.
|
Yea, I am trying... I am prety sure I know what I need to do I just can't figure out the code to do it yet.... I assume I need to get the value "updateuser" to the "admincp/misc.php" script. I believe I need to do this with the variable "cpform"... (this from the code above)
I know it is the right section of code as I put the form in my main index.php file and it pinged the script and ran the user update as I need... The problem is it works in the forum but I need it out of the form. I will grow grey trying to figure this out with my PHP books and random pinging away with code... but one day I will figure it out (I think) ... :ermm: I think this tidbit of info might be along the line of what I need... http://www.alt-php-faq.org/local/55/#id55 Then there is this: http://www.phpbuilder.com/board/show...php?t=10317131 |
All times are GMT. The time now is 09:06 PM. |
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:
|