What does "number of days" by Membership Status in the profile approval section do and what do you put there?
What does "number of days" by Membership Status in the profile approval section do and what do you put there?
No one has an idea?
Could it be that my question is too cryptic...or no one has any idea what that field that defaults to ONE DAY do? If you don't change it from one on a FREE site, what does it do to the profiles? Does it disable them after a day?
General Smoge, I know you were busy with the new crap patch. But its been 5 days...kindly give me an answer...
Thanks.
Number of days is how many days a user will have this membership level.
As for it being decreased daily - there is code in /periodic/cmd.php for this, but I have no idea if it works. It's it's broken, we will fix it, I'm sure.
But what it does mean, is you need to run cmd.php daily as a cron job to do this task.
Here is the code from cmd.php
PHP Code:// - Membership check -
echo "\n- Membership check -\n";
$exp_res = db_res( "SELECT ID, mem_level FROM `Profiles` WHERE mem_level_days <= 0", 0 );
$rows = mysql_num_rows( $exp_res );
echo "Expired membership records: $rows\n";
if ( $rows )
{
while( $row = mysql_fetch_array( $exp_res ) )
{
db_res( "UPDATE `Profiles` SET `mem_level` = 1, `mem_level_days` = 1 WHERE ID = {$row[ID]}", 0 );
mem_expiration_letter( $row['ID'], $row['mem_level'] );
}
echo "Change membership status to 'standart': $rows members today\n";
}
if ( !((int)getParam("days_forall_caff")) )
{
$chicks_for_free = str_replace('\'','',getParam('chicks_for_free'));
$chicks_for_free = split(',',$chicks_for_free);
$add = '';
foreach($chicks_for_free as $param)
{
$add .= ( 'couple' == $param ) ? " AND ProfileType != 'couple'" : " AND Sex != '$param'";
}
echo "UPDATE `Profiles` SET mem_level_days = mem_level_days - 1 WHERE mem_level != '1' $add";
db_res( "UPDATE `Profiles` SET mem_level_days = mem_level_days - 1 WHERE mem_level != '1' $add", 0 );
$rows = mysql_affected_rows();
if ( $rows == -1 )
echo "Failed updating membership records\n" . mysql_error() . "\n";
else
echo "Processed membership records: $rows\n";
}
ModMySite Administrator
Problems? Questions? Need modifications or other help with your site?
Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.
Thanks. What happens to a member IF THAT ONE DAY EXPIRES?Originally Posted by Smoge
Final clarification...Do you have to set this ON EVERY PROFILE YOU APPROVE? Or is there a default place You can go to set it up for ALL STANDARD MEMBERS - free site?
Thanks.
It looks like that user gets set to standard with 1 day membershipOriginally Posted by Sola
Slim
Thanks Slim. The site is free and there's only one membership, Standard, which has access to everything. If this was never changed from Standard, then it shouldn't be any problem.Originally Posted by slimshady
I just had a feeling it was disabling profiles because I did not change number of days. That CP could be made more intuitive. Everything that controls membership should be in the same section and make sense just by looking at it. Cr*p.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks