Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Counters for male and female

  1. #11
    Prometheus
    Guest

    Default Couple Statistics

    Here is the code to diplay the number of couples in your admin panel.
    (For male/female see this post.)

    // number of coupled members

    $couple_arr = db_arr( 'SELECT COUNT(ID) FROM Profiles where profiletype = "couple" ' );


    and

    <tr class="text">
    <td class="text" bgcolor="#ffffff" align="left" valign="middle"><img src=images/arrow.gif> Couples</td>
    <td width="50" bgcolor="ffffff" align="right"><? echo $couple_arr[0]; ?></td>
    </tr>


    Todd

  2. #12
    Prometheus
    Guest

    Default Male / Female Member Count Statisics

    After looking at the code and wondering why my table numbers were not adding up I changed the code for determining how many male and female members you have registered...

    The old code does not filter out male and females from the couples.
    This code will tell you how many single males and single females are registered.

    Used with the couples code below gives an accurate count of members and their status.

    // number of Male Members
    $male_arr = db_arr( 'SELECT COUNT(ID) FROM Profiles where sex = "male" AND ProfileType = "single" ' );

    // number of Female Members
    $female_arr = db_arr( 'SELECT COUNT(ID) FROM Profiles where sex = "female" AND ProfileType = "single" ' );

    Enjoy.

    Todd

  3. #13
    valentino
    Guest

    Default codes

    thanks very much...really worked well, you should post this in the mods part.
    Thanks!

  4. #14
    mornebeck
    Guest

    Default

    Quote Originally Posted by Greggers
    Add the following to index.php:

    Below:
    Code:
    $members_online = get_users_online_number();
    Add:
    Code:
    // number of Single Male Members
    $male_single_arr = db_arr( 'SELECT COUNT(ID) FROM Profiles where ProfileType = "Single" AND sex = "male" ' );
    // number of Single Female Members
    $female_single_arr = db_arr( 'SELECT COUNT(ID) FROM Profiles where ProfileType = "Single" AND sex = "female" ' );
    // number of Couple Profiles
    $couple_arr = db_arr( 'SELECT COUNT(ID) FROM Profiles where ProfileType = "Couple" ' );
    Below:
    Code:
      $out .= "<tr><td width=17 align='right'><img src=$site[images]us6.gif></td><td width=100% align=\"left\">&nbsp;"._t("_Total")." - $total_arr[0]</td></tr>\n";
    Add:

    Code:
    //show Female, Male & Couple Numbers
    $out .= "<tr><td width=17 align='right'><img src='$site[images]us2.gif'></td><td width=100% align=\"left\">&nbsp;"._t("_Female")." -  $male_single_arr[0]</td></tr>\n";
    $out .= "<tr><td width=17 align='right'><img src='$site[images]us3.gif'></td><td width=100% align=\"left\">&nbsp;"._t("_Male")." - $female_single_arr[0] </td></tr>\n";
    $out .= "<tr><td width=17 align='right'><img src='$site[images]us3.gif'></td><td width=100% align=\"left\">&nbsp;"._t("_Couple")." - $couple_arr[0] </td></tr>\n";
    In your English-lang.php add

    Code:
    case '_Couple': return 'Couple';
    Can be seen in action at http://www.adultonlydating.com/index1.php
    Great Mod Greggers works really well with Dolphin - Version of current script is 5.6.0004
    After changing code a bit and where you put it.
    If anyone wants the mod let me know and I post it.
    Last edited by mornebeck; 04-11-2007 at 05:38 PM.

  5. #15
    PRluigi's Avatar
    Join Date
    Apr 2007
    Posts
    36

    Default Male female and total messages send


Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. QuickMod #5 - Male/Female/Couple Images
    By Smoge in forum Free Mod Exchange
    Replies: 15
    Last Post: 04-14-2007, 06:17 PM
  2. Problem with counters
    By valentino in forum General Troubleshooting
    Replies: 0
    Last Post: 10-10-2005, 06:17 AM
  3. counters
    By valentino in forum General Issues, Comments, Questions
    Replies: 2
    Last Post: 07-04-2005, 03:57 PM
  4. Split Online User Stats - Male/Female
    By Smoge in forum Wishlist
    Replies: 0
    Last Post: 06-21-2005, 10:43 PM
  5. Male/Female images
    By GamanSaman in forum General Issues, Comments, Questions
    Replies: 4
    Last Post: 05-23-2005, 11:02 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
  •