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

Thread: QuickMod #5 - Male/Female/Couple Images

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

    Default QuickMod #5 - Male/Female/Couple Images

    Here are some pics...

    Attached below

    man.gif
    woman.gif
    couple.gif

    Changing the male and female pic shown when there is no thumbnail is easy, just replace the images currently in the id_img directory with these.

    This will replace the image in most places... but I think there needs to be some changes in some of the code to have it work system-wide.

    When I have time, I will post this code.

    Note: Code posted - read posts in this thread

    But for now, it is a good start.
    Attached Images Attached Images
    Last edited by Smoge; 11-08-2005 at 10:36 AM.

  2. #2

    Join Date
    Apr 2005
    Posts
    110

    Default

    Thanks I will add them to mine

    I cant do the couples thoe because I have some gay couples on my site as well as straight. So I'm still trying to figure out what to put for that pic.

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

    Default

    Quote Originally Posted by forplaz
    Thanks I will add them to mine

    I cant do the couples thoe because I have some gay couples on my site as well as straight. So I'm still trying to figure out what to put for that pic.
    Does your site ask people if they are Girl/Girl or Boy/Boy?

    If so, you could use a mirror image of the Girl or Boy images, and make a new one, with a boy looking at a boy, or a girl looking at a girl (using the current images, but making new ones), and then if you ask them the match up - write some code to show the correct image for couple.

    Just an idea.

    Smoge

  4. #4

    Join Date
    Apr 2005
    Posts
    110

    Default

    Mine is just the generic feild that says couples. I guess maybe I should make them seperate or something.

  5. #5
    stevie's Avatar
    Join Date
    May 2005
    Posts
    253

    Default

    how do you add the couples image

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

    Default

    This takes care of the couple, man, and woman pics showing up as they should in the profile view page.

    (note: some of the line numbers may be different between v3.1 and v3.2 - look carefully in your code - and you should be able to find the code snips. Pay attention to the { and } characters also, depending on your version of aeDating, you may or not need all the } shown below.)


    In profile.php, find near line 919

    Code:
        else
            echo "$site[images]pic_not_avail.gif";

    Replace with:

    Code:
        else
        {
         if ( $p_arr[Sex] == "couple" )  
            echo $ID_PIC_URL . "couple.gif";
         elseif ( $p_arr[Sex] == "male" )  
            echo $ID_PIC_URL . "man.gif";
         elseif ( $p_arr[Sex] == "female" )  
            echo $ID_PIC_URL . "woman.gif";
         else 
            echo "$site[images]pic_not_avail.gif";     
        }
    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.

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

    Default

    Quote Originally Posted by stevie
    how do you add the couples image
    just replace the images currently in the id_img directory with those in this thread. Of course, for couple, it is new, as there is no existing couple image in aeDating.

    and make the changes to the code as also supplied in this thread.

    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.

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

    Default

    You need to make these changes so the photos show correctly on the search_result (both standard and gallary view).

    (note: some of the line numbers may be different between v3.1 and v3.2 - look carefully in your code - and you should be able to find the code snips. Pay attention to the { and } characters also, depending on your version of aeDating, you may or not need all the } shown below.

    search_result.php

    function PageCompGallery ( )

    Code:
    around line 669
    
    			else
    			{
    				$sex_pic = $p_arr[Sex] == 'female' ? 'woman.gif' : 'man.gif';
    				$out .= "$ID_PIC_URL$sex_pic";
    			}
    		}
    		
    		
    replace with
    
    			else
    			{
    				if ( $p_arr[Sex] == 'female' ) {
    				$sex_pic = 'woman.gif';
    				$out .= "$ID_PIC_URL$sex_pic";
    			    }
    			    elseif ( $p_arr[Sex] == 'male' ) {
    				$sex_pic = 'man.gif';
    				$out .= "$ID_PIC_URL$sex_pic";
    			    }
    				else {
    				$sex_pic = 'couple.gif';
    				$out .= "$ID_PIC_URL$sex_pic";
    			    }						
    			}
    		}
    members.inc.php

    function PrintSearhResult

    Code:
    around line 219
    
            else 
            {
    				$sex_pic = $p_arr[Sex] == 'female' ? 'woman.gif' : 'man.gif';
    				$thumbnail .= "$ID_PIC_URL$sex_pic";
    				
    			}
    		}
    		
    		
    replace with
    
    			else
    			{
    				if ( $p_arr[Sex] == 'female' ) {
    				$sex_pic = 'woman.gif';
    				$thumbnail .= "$ID_PIC_URL$sex_pic";
    			    }
    			    elseif ( $p_arr[Sex] == 'male' ) {
    				$sex_pic = 'man.gif';
    				$thumbnail .= "$ID_PIC_URL$sex_pic";
    			    }
    				else {
    				$sex_pic = 'couple.gif';
    				$thumbnail .= "$ID_PIC_URL$sex_pic";
    			    }						
    			}
    		}
    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.

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

    Default

    This mod has been added to "Loaded"

    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.

  10. #10
    meethem
    Guest

    Default problem

    Hi everybody
    I ve a problem with this mod ...
    For male and female, all is ok.
    But for couple, the thumbnail displayed is not the couple one : in fact that display man or female one, If the first person of the couple is a man, i see man thumbnail, and if the first person is a woman, i see the woman one .....

    CAN YOU HELP ME PLEASE ????????????????????????

    Really thanks

    Renaud

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. I Need Profile Generator Male Photos
    By Flip Booth in forum Dolphin General Discussion v6.00 and above
    Replies: 2
    Last Post: 03-23-2010, 08:19 PM
  2. Counters for male and female
    By valentino in forum Bugs aeDating v4.0.2
    Replies: 14
    Last Post: 12-22-2007, 10:11 PM
  3. Couple profiles disabled - still shows couple
    By Smoge in forum Bugs aeDating v4.0.2
    Replies: 0
    Last Post: 10-22-2005, 12:34 AM
  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
  •