[SOLVED] Gender badges

9 years 2 months ago - 9 years 3 weeks ago #259669 by chanteur94
Replied by chanteur94 on topic Gender badges
Hi.

Here is the URL :
Then click on 'déjà membre' (the login)
Login : [REMOVED]
Password : [REMOVED]
Then go to the URL :
to see an exemple of the (not good) display

Tx

PS : if you modify the profil with avatar ou photo, you will see that the display is good
(to modify profil, 'mon profil'/'modifier mon profil'/'portrait'

[MOD EDIT]: These are public forums. Please do not post login credentials here.

Please Log in to join the conversation.

9 years 2 months ago - 9 years 2 months ago #259688 by krileon
Replied by krileon on topic Gender badges
Your HTML isn't valid is why it's breaking. The image tag is unclosed. Additionally the profile image field is not ordered first on that tab (currently a CSS limitation that requires it to be the first field of the profile image tab). Please see my previous replies as I provided the exact code you need to use; you just need to copy and paste it over.

The below is the broken HTML in question.

<img src="http://REMOVED/components/com_comprofiler/plugin/templates/default/images/avatar/nophoto_f.png" alt="femme" class="cbImgPict cbFullPict img-thumbnail" ]="" <="" div="">


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

9 years 2 months ago #259694 by chanteur94
Replied by chanteur94 on topic Gender badges
Kyle,

It's exactly what I've done :
here is the copy of my code :

[cb:if avatar!~"/(nophoto_n|tnnophoto_n)\.png$/"][value][/cb:if]
[cb:if avatar=~"/(nophoto_n|tnnophoto_n)\.png$/" and cb_vousetes="femme"]<img src="http://[REMOVED]/components/com_comprofiler/plugin/templates/default/images/avatar/nophoto_f.png" alt="femme" class="cbImgPict cbFullPict img-thumbnail" /][/cb:if]
[cb:if avatar=~"/(nophoto_n|tnnophoto_n)\.png$/" and cb_vousetes="homme"]<img src="http://[REMOVED]/components/com_comprofiler/plugin/templates/default/images/avatar/nophoto_m.png" alt="homme" class="cbImgPict cbFullPict img-thumbnail" /][/cb:if]
[cb:if avatar=~"/(nophoto_n|tnnophoto_n)\.png$/" and cb_vousetes=""]<img src="http://[REMOVED]/components/com_comprofiler/plugin/templates/default/images/avatar/nophoto_n.png" alt="inconnue" class="cbImgPict cbFullPict img-thumbnail" /][/cb:if]


Tx

Please Log in to join the conversation.

9 years 2 months ago #259695 by krileon
Replied by krileon on topic Gender badges
Compare you code to mine below.

www.joomlapolis.com/forum/153-professional-member-support/228527-gender-badges?start=6#259249

You're ending your image tags with /] instead of />.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

9 years 2 months ago #259698 by chanteur94
Replied by chanteur94 on topic Gender badges
Waooo ! I'm so sorry to bored you with my typing error!

now it works.

Thank you very much !!!!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.171 seconds

Facebook Twitter LinkedIn