1

Topic: Sex specific profile pictures?

How do I change this?

member sections picture

<!-- IF member_picture AND member_picture_active -->
    <a href="{top.virtual_path}{member_profile_link}"><img src="{top.virtual_pic_path}{member_picture}" alt="" border="0" /><br></a>
<!-- ELSE -->
    <a href="{top.virtual_path}{member_profile_link}"><img src="{top.virtual_tpl_path}{session.template}/media/user_picture_none.gif" alt="" border="0" /><br></a>
<!-- ENDIF -->

Into

....
<!-- ELSE -->
<!-- IF SEX == MALE --> 
    <a href="{top.virtual_path}{member_profile_link}"><img src="{top.virtual_tpl_path}{session.template}/media/user_female_none.gif" alt="" border="0" /><br></a>
<!-- ELSE -->
        <a href="{top.virtual_path}{member_profile_link}"><img src="{top.virtual_tpl_path}{session.template}/media/user_male_none.gif" alt="" border="0" /><br></a>
<!-- ENDIF -->

Any ideas what I can query against to find out the members sex and thus display a male/female shadow?

Last edited by Albaengine (2008-11-20 07:55:31)

2

Re: Sex specific profile pictures?

Try this

<!-- IF profile_field_gender1_value == "Man" -->
Developer

3

Re: Sex specific profile pictures?

I tested this in "MEMBER_SECTIONS_PICTURE.TPL", but when the member has no picture I can see only that "femme.png" ! Or is my error thank you

<!-- IF member_picture AND member_picture_active -->
    <!-- IF top.active_module == "member_profile" -->
        <a class="picture_zoom" href="{top.virtual_pic_path}{member_picture_large}" id="profile_picture_{member_id}" target="_blank"><img src="{top.virtual_pic_path}{member_picture}" alt="" border="0" /><br></a>
        <div id="profile_picture_{member_id}_zoom" style="display:none"><img src="{top.virtual_pic_path}{member_picture_large}" alt="" border="0" /><br></div>
    <!-- ELSE -->
        <a href="{top.virtual_path}{member_profile_link}"><img src="{top.virtual_pic_path}{member_picture}" alt="" border="0" /><br></a>
  <!-- ENDIF -->
<!-- ELSEIF profile_field_gender1_value =="Man" -->
        <a href="{top.virtual_path}{member_profile_link}"><img src="{top.virtual_tpl_path}{session.template}/media/homme.png" alt="" border="0" /><br></a>
<!-- ELSE -->
        <a href="{top.virtual_path}{member_profile_link}"><img src="{top.virtual_tpl_path}{session.template}/media/femme.png" alt="" border="0" /><br></a>
<!-- ENDIF -->

4

Re: Sex specific profile pictures?

See your help desk ticket response. You were explained several times why it happens.

Developer

5

Re: Sex specific profile pictures?

I do not understand your answer!

I'm speaking French you must forgive me!

Ps : i have no help desk ticket in my account !

6

Re: Sex specific profile pictures?

Hi,

This is the code in my member_sections_picture.tpl, so where do I put the <!-- IF profile_field_gender1_value == "Man" --> and <!-- IF profile_field_gender1_value == "Woman" -->, so I can have different pictures for the male and female empty picture profiles?

<!-- IF member_picture AND member_picture_active -->
    <!-- IF top.active_module == "member_profile" -->
        <a class="picture_zoom" href="{top.virtual_pic_path}{member_picture_large}" id="profile_picture_{member_id}" target="_blank"><img src="{top.virtual_pic_path}{member_picture}" alt="" border="0" /><br/></a>
        <div id="profile_picture_{member_id}_zoom" class="picture_zoom_in" style="display:none"><img src="{top.virtual_pic_path}{member_picture_large}" alt="" border="0" /><br/></div>
    <!-- ELSE -->
        <a href="{top.virtual_path}{member_profile_link}"><img src="{top.virtual_pic_path}{member_picture}" alt="" border="0" /><br/></a>
    <!-- ENDIF -->
<!-- ELSE -->
    <a href="{top.virtual_path}{member_profile_link}"><img src="{top.virtual_tpl_path}{session.template}/media/user_picture_none.gif" alt="" border="0" /><br/></a>
<!-- ENDIF -->

7

Re: Sex specific profile pictures?

Can anyone tell the correct code for member_sections_picture.tpl???
I have last version of VLDPersonals.

8

Re: Sex specific profile pictures?

Damn, quiet from all...
But I solved this problem. tongue This solution is suitable for version 2.5.7 (and possibly others). Perhaps it is useful to someone. Part of the code should be written in a language that is used as the main. eg. <! - IF profile_field_gender1_value == "Мужчина" -> (where "Man" equals "Мужчина" on russian language)
WARNING! If ur server used UTF-8, u need to save this template in UTF-8 (without BOM)!
This code can also be used in member_profile.tpl wink
Verified by me personally, it should work.

<!-- IF member_picture AND member_picture_active -->
    <!-- IF top.active_module == "member_profile" -->
        <a class="picture_zoom" href="{top.virtual_pic_path}{member_media_path}{member_picture_large}" id="profile_picture_{member_id}" 

target="_blank"><img src="{top.virtual_pic_path}{member_media_path}{member_picture}" alt="" border="0" /><br/></a>
        <div id="profile_picture_{member_id}_zoom" class="picture_zoom_in" style="display:none"><img 

src="{top.virtual_pic_path}{member_media_path}{member_picture_large}" alt="" border="0" /><br/></div>
    <!-- ELSE -->
        <a href="{top.virtual_path}{member_profile_link}"><img src="{top.virtual_pic_path}{member_media_path}{member_picture}" alt="" 

border="0" /><br/></a>
    <!-- ENDIF -->
<!-- ELSE -->
<!-- IF profile_field_gender1_value == "Мужчина" -->
    <a href="{top.virtual_path}{member_profile_link}"><img src="{top.virtual_tpl_path}{session.template}/media/boys.png" alt="" border="0" 

/><br></a><center><font size="1">[ Фото недоступно ]</font></center>
<!-- ELSE -->
<a href="{top.virtual_path}{member_profile_link}"><img src="{top.virtual_tpl_path}{session.template}/media/girls.png" alt="" border="0" 

/><br></a><center><font size="1">[ Фото недоступно ]</font></center>
<!-- ENDIF -->
<!-- ENDIF -->

P.S. In fact, this very simple, but very useful feature! I really dont understand why the developers didnt include it in a VLDersonals by default. ^^

Last edited by r4mZeS (2010-08-31 06:42:19)

9

Re: Sex specific profile pictures?

Listen guys, i`d like to add some fields e.g. i wanna add more genders options (wan+woman, woman+woman, man+man...) How can I modify member_sections_picture.tpl template to add more "NoImage" images for different genders/groups?
Here is the code of my template now:

<!-- IF member_picture AND member_picture_active -->
    <!-- IF top.active_module == "member_profile" -->
        <a class="picture_zoom" href="{top.virtual_pic_path}{member_media_path}{member_picture_large}" id="profile_picture_{member_id}" target="_blank"><img src="{top.virtual_pic_path}{member_media_path}{member_picture}" alt="" border="0" /><br/></a>
        <div id="profile_picture_{member_id}_zoom" class="picture_zoom_in" style="display:none"><img src="{top.virtual_pic_path}{member_media_path}{member_picture_large}" alt="" border="0" /><br/></div>
    <!-- ELSE -->
        <a href="{top.virtual_path}{member_profile_link}"><img src="{top.virtual_pic_path}{member_media_path}{member_picture}" alt="" border="0" /><br/></a>
    <!-- ENDIF -->
<!-- ELSE -->
<!-- IF profile_field_gender1_value == "Man" -->
    <a href="{top.virtual_path}{member_profile_link}"><img src="{top.virtual_tpl_path}{session.template}/media/gender_images/man.png" alt="" border="0" /><br></a>
<!-- ELSE -->
    <a href="{top.virtual_path}{member_profile_link}"><img src="{top.virtual_tpl_path}{session.template}/media/gender_images/woman.png" alt="" border="0" /><br></a>
<!-- ENDIF -->
<!-- ENDIF -->

Last edited by r4mZeS (2010-10-08 07:03:28)