Viewing user profiles from a userlist loses Itemid

11 years 3 months ago #152632 by vahekassardjian
Replied by vahekassardjian on topic Re: Viewing user profiles from a userlist loses Itemid

krileon wrote: Also, are you clicking the username for example or just the table row?

I'm clicking on the username. It still goes to the default ItemID.
However if I click elsewhere in the table row it takes the new (hardcoded) ItemID.
Almost there :)

Please Log in to join the conversation.

11 years 3 months ago #152742 by krileon

However if I click elsewhere in the table row it takes the new (hardcoded) ItemID.

Right, all that was changed was the row. To change the username is a bit different as this will affect ALL locations.. not just userlist. I recommend maybe using a delimiter field with the [username] substitution and displaying that field on userlist instead so it won't be linked.


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.

11 years 3 months ago #152823 by vahekassardjian
Replied by vahekassardjian on topic Re: Viewing user profiles from a userlist loses Itemid
I followed your suggestion (detailed info for other people reading):
- I created a new field of type "Fields delimiter".
- In the Description I typed [name].
- Published and visible on profile (necessary for the field to be available in the list view)
- Then in the list I choose this field :)
- Since I don't want this field on the profile (it's already displayed) I created a new tab, assigned it to a position that I hide using CSS (is there a better way?).

Now I tried the same trick for the avatar which had the same problem (i.e. opening with the user profile itemid).
In the description field I entered [code type=php-brief][cb:userfield field="avatar" /][/code]. The problem is it displays the full size avatar, not (one of) the thumbnail version.
So my (hopefully last) question is: what is the syntax to use the thumbnail version of the avatar?

Please Log in to join the conversation.

11 years 3 months ago #152891 by krileon
All substitutions render with Profile as he location. So avatar for example will render full size. You can use CSS to scale the image down to a maximum width and/or height.


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.

Moderators: beatnantkrileon
Time to create page: 0.177 seconds

Facebook Twitter LinkedIn