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 06:55:31)

2

Re: Sex specific profile pictures?

Try this

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

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.

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 05: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 06:03:28)

10

Re: Sex specific profile pictures?

There is a message&comment issue with this mod seen in this post:

"However, when a MAN with no photo sends a WOMAN a message or wink message, the picture displayed in the inbox or account_messages_view is the wrong gender picture, i.e displays girlanime when the sender is a guy. However when a WOMAN with no profile pic sends a MAN a message, it shows up in the man's inbox and account messages view as the correct no-photo gender image.
I cannot figure out why, it has me totally stumped. Both account inbox and account_messages_view tpl files use the member_sections_picture template to display the members, so it should work. Regular member photos are being displayed ok.
Does anyone have any solutions please?"

Radioact mentioned this "You can't achieve this unless you edit account_messages.php to get profile data as well because by default there is no profile data variables when you read/compose messages."

How do you fix the account_messages/php file to fix the comment/message gender profile pic issue?

Here is the original link of the post, thanks! http://www.vldpersonals.com/forum/post/54335/#p54335

11

Re: Sex specific profile pictures?

I know its not the best solution but I added a tooltip to display gender, username and location when you mouse over someone with the generic "?" user image.

12

Re: Sex specific profile pictures?

how do you add this tooltip? thanks so much

13

Re: Sex specific profile pictures?

You can see a demo here: http://abfsingles.net/page/general/onlinenow

It was supposed to be a temporary fix until 3.0 was released (I added the tool tips at the start of 2012)
I followed this thread and just customized it to suit my needs.

http://www.vldpersonals.com/forum/topic … -homepage/

14

Re: Sex specific profile pictures?

Does this work for 2.7? thanks for your help definitive!

Last edited by shortcircuit (2013-01-05 08:34:30)