Results 1 to 3 of 3

Thread: counters

  1. #1
    valentino
    Guest

    Default counters

    Hi there, i am quit a newby on ae dating, but i want to know how to change the counters, because it only shows active members registered, i would like it to show all registered members, active and approval.
    Where can i change this?In which php file to look?
    Kind Reagards.

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

    Default

    Well - I'll point you in the right direction....

    In members.inc.php, you will find:
    Code:
    // members statistics
    
    $total_c = strlen( $_POST[total_c] ) ? (int)$_POST[total_c] : GetParam( "default_country" );
    $total_arr = db_arr( "SELECT COUNT(ID) FROM `Profiles` WHERE Status = 'Active'" );
    $total_arr_week = db_arr( "SELECT COUNT(ID) FROM `Profiles` WHERE Status = 'Active' AND (TO_DAYS(NOW()) - TO_DAYS(LastReg)) <= 7" );
    $total_arr_gold = db_arr( "SELECT COUNT(ID) FROM `Profiles` WHERE Status = 'Active' AND ExtraAddons IS NOT NULL AND ExtraAddons != ''" );
    $total_c_arr = db_arr( "SELECT COUNT(ID) FROM `Profiles` WHERE Status = 'Active' AND Country = $total_c" );
    $total_members = $total_arr[0];
    $total_c_members = $total_c_arr[0];
    And if you take out the "Status = 'Active' AND" you may get what you want.

    Smoge
    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.

  3. #3
    valentino
    Guest

    Default counters

    thanks smog, i already got the php adjustements from aedating personel..this time they where fast in there respons...hahaha
    anyway thanks for the help.

    there solution was this:
    open index.php and change into:

    $total_arr = db_arr( "SELECT COUNT(ID) FROM `Profiles`" );

    $total_arr_week = db_arr( "SELECT COUNT(ID) FROM `Profiles` WHERE (TO_DAYS(NOW()) - TO_DAYS(LastReg)) <= 7" );

    $total_arr_gold = db_arr( "SELECT COUNT(ID) FROM `Profiles` WHERE ExtraAddons IS NOT NULL AND ExtraAddons != ''" );

    $total_c_arr = db_arr( "SELECT COUNT(ID) FROM `Profiles` WHERE Country = $total_c" );

    and it worked...thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Counters for male and female
    By valentino in forum Bugs aeDating v4.0.2
    Replies: 14
    Last Post: 12-22-2007, 10:11 PM
  2. men women couple counters
    By valentino in forum Wishlist
    Replies: 0
    Last Post: 10-10-2005, 12:28 PM
  3. Problem with counters
    By valentino in forum General Troubleshooting
    Replies: 0
    Last Post: 10-10-2005, 06:17 AM

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
  •