Results 1 to 7 of 7

Thread: number of days

  1. #1
    Sola
    Guest

    Default number of days

    What does "number of days" by Membership Status in the profile approval section do and what do you put there?

  2. #2
    Sola
    Guest

    Default

    No one has an idea?

  3. #3
    Sola
    Guest

    Default

    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.

  4. #4
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    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");
    $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]}");        
            
    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");
        
    $rows mysql_affected_rows();
        if ( 
    $rows == -)
            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.

  5. #5
    Sola
    Guest

    Default

    Quote Originally Posted by Smoge
    Number of days is how many days a user will have this membership level.
    Thanks. What happens to a member IF THAT ONE DAY EXPIRES?

    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.

  6. #6
    slimshady
    Guest

    Default

    Quote Originally Posted by Sola
    Thanks. What happens to a member IF THAT ONE DAY EXPIRES?
    It looks like that user gets set to standard with 1 day membership

    Slim

  7. #7
    Sola
    Guest

    Default

    Quote Originally Posted by slimshady
    It looks like that user gets set to standard with 1 day membership

    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.

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. no response for many days, smoge?
    By Charlie in forum General Issues, Comments, Questions
    Replies: 0
    Last Post: 05-03-2007, 01:37 AM
  2. reset days of gold membership
    By raeyo in forum General Troubleshooting
    Replies: 0
    Last Post: 12-04-2005, 04:02 AM
  3. Lost Days In Clean Forum
    By Smoge in forum Bugs aeDating v4.0.2
    Replies: 0
    Last Post: 09-25-2005, 12:39 AM
  4. My Vacation To Shanghai In A Few Days
    By ModMySite in forum Open Talk
    Replies: 0
    Last Post: 09-15-2005, 06:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •