Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Why photo column dissapeared in CB 2.0

9 years 3 months ago - 9 years 3 months ago #267201 by tlwebdesign
Why photo column dissapeared in CB 2.0 was created by tlwebdesign
Hi, why did the photo column dissapear in the new CB2.x in Community Buider -> User management?

My client used this a lot to see who added a photo and who did not.

Now i added it by changing this file: view.com_comprofiler.showusers.xml

I exchanged the "banned" column because we are not using that functionality. But since changing it the page is loading much slower.

This is what i changed it to:
Code:
<field name="avatar" type="checkmark" width="5%" align="center" label="Foto" allowordering="ascending,descending"> </field>

Did i do this correct? it does work. But is slow to load.

Original code:
Code:
<field name="banned" type="xml:user_banned" width="5%" align="center" label="Banned" onclick="toggle" class="self" method="toggleUserBan" responsivehiddenon="xsmall" allowordering="ascending,descending"> <attributes> <attribute name="onclick"> <if name="" type="permission" permission="core.edit or core.edit.state"> <then> <if name="id" nametype="user:int" operator="=" value="id" valuetype="param:int" type="condition"> <then> <param name="" default="" type="string" /> </then> <else> <param name="" default="toggle" translate-default="no" type="string" /> </else> </if> </then> <else> <param name="" default="" type="string" /> </else> </if> </attribute> </attributes> </field>
Last edit: 9 years 3 months ago by tlwebdesign.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #267230 by krileon
Replied by krileon on topic Why photo column dissapeared in CB 2.0
There never was a photo column in CB > User Management. My guess is you manually added it, which would be a core edit and will be lost on every upgrade. We don't have an XML type to render the users avatar field so no that won't work.

There was only a filter for this, which you can still do using the advanced filtering. Click "Search Tools" then in the repeat usage "- Select Field -" select "Profile image" then select "Equal to" and leave the value empty. This should find all users with no photo. Use the "Not equal to" to find all users with a photo.


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 or Create an account to join the conversation.

9 years 3 months ago #267231 by tlwebdesign
Replied by tlwebdesign on topic Why photo column dissapeared in CB 2.0
Hmm i must have forgotten it over the years. i was sure i was looking at an original file. Guess not then.

Well the funny thing is! it does work :D

Check this screenshot:




I modified that one file and it is not displaying an X if no image is uploaded. And an V when there is an image present. It does not show you unapproved / approved images tho but that is ok.
Attachments:

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #267240 by krileon
Replied by krileon on topic Why photo column dissapeared in CB 2.0
That'll work to show a checkmark based off there being a value or not. As I understood you wanted it to show the actual photo, which it won't do.


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 or Create an account to join the conversation.

9 years 3 months ago #267241 by tlwebdesign
Replied by tlwebdesign on topic Why photo column dissapeared in CB 2.0
Ahh no that would be kinda weird. especially with 2700+ users in the list.

Customer just needs to know if there is an avatar uploaded or not.

Can that code be improved on?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #267248 by krileon
Replied by krileon on topic Why photo column dissapeared in CB 2.0
Your usage should be fine, but you don't need to replace an existing row, but just add a new one. Alternatively you could just use the filter as explained above instead of adding a column at all.


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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum