Skip to Content Skip to Menu

Display groupjive members in a module

  • andrew432
  • andrew432
  • OFFLINE
  • Posts: 72
  • Thanks: 8
  • Karma: 2
10 years 7 months ago #242771 by andrew432
Replied by andrew432 on topic Display groupjive members in a module
Thanks, the groupjive groups avatars have to go in a jreviews field, with a link to their profile. I couldn't figure out how to do it in jreviews alone so I set up a CB Content module, and then load the module into a jreviews field.

I've been experimenting
Code:
[cb:userfield field="avatar" user="223" /] [cb:userfield field="avatar" user="224" /]
loads and display 2 avatars, and mouseover displays the username.

then in css, i control the size with
Code:
img { height: 60px; width: 60px; }
I can't get a hyperlink on the avatars so clicking goes to their profiles, I can get the raw link ok and display a url in plain text with
Code:
[cb:url location="profile_view" user="224"/] adds a raw url

I read www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb which I found very useful but can't see how to combine the avatar with it's profile url.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #242842 by krileon
Replied by krileon on topic Display groupjive members in a module
Render the userlist mode of the avatar field and it'll use the thumbnail as well as be linked. You can do this using your existing usage with a few changes as shown below.

Code:
[cb:userfield field="avatar" user="223" reason="list" /] [cb:userfield field="avatar" user="224" reason="list" /]


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.
The following user(s) said Thank You: andrew432

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

Moderators: beatnantkrileon
Powered by Kunena Forum