The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
There are many forums that offer a priemium or paid for section. I have looked and looked to see if there is a hack to automaticly change that member back to normal status after a certain time period.
Lets say they pay for 3 months access to a prefered section, is there any way to make a hack to automatically pm or email say 5 days before there prefered status is to run out and then have then automatically revert to a specific group or the group they were previously at. Hope that makes sense, but I know there are many forums that would benifit by a mod like this. Thanks |
|
#2
|
|||
|
|||
|
I would sure use a hack like this.
An example would be... Joe is a reguler member and then he pays for XX days to my private area. I add him and when the XX days are up it automatically puts him back. Great Idea. |
|
#3
|
|||
|
|||
|
You would have to be able to use cron jobs,
but i'll look into it. |
|
#4
|
|||
|
|||
|
Cool, thanks
|
|
#5
|
|||
|
|||
|
yes
Thanks very much |
|
#6
|
|||
|
|||
|
Cron this script:
Code:
<?
require("./global.php");
$DB_site->query("UDPATE user SET usergroupid = new ugid WHERE usergroupid = old ugid");
?>
|
|
#7
|
|||
|
|||
|
Thanks for your help
Where do we input the time to change them back Thanks again for your help |
|
#8
|
|||
|
|||
|
Quote:
Now, for my subscription system, I have the following script running via a cron job, just so you have another example: PHP Code:
|
|
#9
|
|||
|
|||
|
I will try it
Does vb have a crono element? |
|
#10
|
|||
|
|||
|
This looks like a good one!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|