Membership Cron Job

OK, here's the dillemma - I need to figure out how to set up a cron job which does the following:

1 - search each user in Profiles table and see if field (new_field) is empty or not

2 - if not empty, then check and see if the value in 'new_field' matches any values in field (special_id) in new table (special_id_table)

a - if the value does exist in field 'special_id' from table 'special_id_table' then check user membership level
a.1 - if the user membership level is not equal to Membership B then change membership to Membership B
a.2 - if the user membership level is equal to Membership B then do nothing for this user, and cycle through to the next user and start over

b - if the value does not exist in field (special_id) from table (special_id_table) then check membership level

a - if membership level is equal to Membership B then change membership level to Standard Member

b - if membership level is not equal to Membership B then do nothing for this user and cycle through to the next user and start over


I hope this is understandabel - any questions, please leave me a message.

Thanks in advance

caredesign.net
Quote · 15 Dec 2011

well the cron job is not going to do any of this. you would need to write the function, add the fields to the database, in the function, you would code the IF THEN ELSE, then the cron could fire a specific php file that would trigger this function. 

 

you may need to post this in the jobs section, or on oDesk and get somebody to write the function for you in the manner in which you are needing it to work. 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 15 Dec 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.