The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
There is a way to insert in cron the userupdate?
I use to assign a rank to specific usergroup, that rank is an image for user that give us a donation for the current year, but when I add an user in the secondary usergroup, to give them they user rank I must run a manteinance script to update user ranks title, there is a way to run it by shell or in forum cron?
|
#2
|
|||
|
|||
You'd have to do some coding, I think. If you look at admincp/misc.php and find the section labeled "Start update user" you can see how it's done when you do it from the Maintenance menu, so you could use that code. It is written to do only a certain number of users per page so you'd have to figure out how to deal with that.
And you could either create your own php file in includes/cron and create a scheduled task for it, or you could create a plugin using hook cron_script_cleanup_daily or _hourly if you don't want to go through the trouble of making your own script. |
#3
|
||||
|
||||
but how can I do for login and auth?
|
#4
|
|||
|
|||
Sorry, I'm not sure what you're asking.
|
#5
|
||||
|
||||
misc.php need admin hash to check if you are logged in admincp, than the system checks if you have right permission, after that you can do the updates
|
#6
|
|||
|
|||
Oh, I see what you mean. I was suggesting that you could copy some code from misc.php and put it somewhere else, so that it would be run by a cron job. But it's true that it takes some php programming ability to do that. Otherwise, I'm not sure what you could. I guess it would be possible to set something up that was automated and could login in as an admin and execute the existing misc.php, but I'm not sure how to do that.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|