Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Counters for male and female

  1. #1
    valentino
    Guest

    Default Counters for male and female

    don't know if this is the right forum to post, but i found this on a site:
    new members last 24 hours: 24
    changed their profile last 24 hours: 10
    men total: 600
    women total: 400
    couples total: 200

    Is this possible to get this on the index page? somewhere?

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

    Default

    Very possible - perhaps not that hard to code... anyone wanna try?

    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

    Join Date
    Oct 2005
    Posts
    226

    Default

    Is this still wanted?

    I have done it for the admin panel so porting it to the home page is easy enough.
    Regards
    Greg

    ----------------------------------------
    www . adult only dating . com

    Any help supplied is tested and working on version aeDating 4.02 CLEAN 4

    ----------------------------------------
    ** For Sale **
    www. the date exchange . com (Whitelabel)
    www. the adult exchange . com (Whitelabel)
    See http://www.modmysite.com/showthread.php?t=1841 for more details

  4. #4
    valentino
    Guest

    Default very much wanted

    yes i would like this also for my site, could you explain to me how to do it?

  5. #5

    Join Date
    Oct 2005
    Posts
    226

    Default

    In my admin/index.php i have:

    Code:
    // number of Male Members
    $male_arr = db_arr( 'SELECT COUNT(ID) FROM Profiles where sex = "male" ' );
    
    // number of Female Members
    $female_arr = db_arr( 'SELECT COUNT(ID) FROM Profiles where sex = "female" ' );
    Then within the 'registered member' table at the top of the Admin Panel i have added two new rows:

    Code:
     	    <tr class="text">
                        <td class="text"  bgcolor="#ffffff" align="left" valign="middle">&nbsp;&nbsp;&nbsp;&nbsp;<img src=images/arrow.gif>  Male Members</td>
                        <td width="50" align="right"><? echo $male_arr[0]; ?></td>
                        </tr>
                        <tr class="text">
                        <td class="text"  bgcolor="#ffffff" align="left" valign="middle">&nbsp;&nbsp;&nbsp;&nbsp;<img src=images/arrow.gif>  Female Members</td>
                        <td width="50" align="right"><? echo $female_arr[0]; ?></td>
                        </tr>
    I'll work out where this all needs to go for the site stats on the home page and post it up.
    Regards
    Greg

    ----------------------------------------
    www . adult only dating . com

    Any help supplied is tested and working on version aeDating 4.02 CLEAN 4

    ----------------------------------------
    ** For Sale **
    www. the date exchange . com (Whitelabel)
    www. the adult exchange . com (Whitelabel)
    See http://www.modmysite.com/showthread.php?t=1841 for more details

  6. #6
    valentino
    Guest

    Default profiles

    the codes are oke for the admin pannel, but it doesn't make a difference for the couples, i tried to add a couple line but it didn't retrieve it from the database.
    It would be nice to display this on the frontpage, thanks for the help, hope you find out how also to display couples and display it on the frontpage.

    regards

    mike

  7. #7
    valentino
    Guest

    Default gold members

    did you already find a solution for displaying the membership levels instead of the price kolum in the admin panel, i guess the price i not important to show, just if the member is free or paying

  8. #8

    Join Date
    Oct 2005
    Posts
    226

    Default

    Quote Originally Posted by valentino
    the codes are oke for the admin pannel, but it doesn't make a difference for the couples, i tried to add a couple line but it didn't retrieve it from the database.
    It would be nice to display this on the frontpage, thanks for the help, hope you find out how also to display couples and display it on the frontpage.

    regards

    mike
    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
    Regards
    Greg

    ----------------------------------------
    www . adult only dating . com

    Any help supplied is tested and working on version aeDating 4.02 CLEAN 4

    ----------------------------------------
    ** For Sale **
    www. the date exchange . com (Whitelabel)
    www. the adult exchange . com (Whitelabel)
    See http://www.modmysite.com/showthread.php?t=1841 for more details

  9. #9

    Join Date
    Oct 2005
    Posts
    226

    Default

    Quote Originally Posted by valentino
    did you already find a solution for displaying the membership levels instead of the price kolum in the admin panel, i guess the price i not important to show, just if the member is free or paying
    How do you mean?

    I have the following columns:

    ID Photo Regsistered Last Visited NickName RealName Sex Mem Level Remaining
    Regards
    Greg

    ----------------------------------------
    www . adult only dating . com

    Any help supplied is tested and working on version aeDating 4.02 CLEAN 4

    ----------------------------------------
    ** For Sale **
    www. the date exchange . com (Whitelabel)
    www. the adult exchange . com (Whitelabel)
    See http://www.modmysite.com/showthread.php?t=1841 for more details

  10. #10
    valentino
    Guest

    Default counters

    Thanks very much,

    Works great!!!

Page 1 of 2 12 LastLast

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
  •