Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 31)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Content Module help- Display a random avatar

9 years 11 months ago #255962 by billraydrums
Content Module help- Display a random avatar was created by billraydrums
Hi, cannot really find any sort of documentation that's helpful to me regarding the CB Content module. I want to display a random user's name and avatar in a module position on a page of my site. How would I write that?

Thanks!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48630
  • Thanks: 8307
  • Karma: 1446
9 years 11 months ago #256141 by krileon
Replied by krileon on topic Content Module help- Display a random avatar
It can parse Text (HTML is allowed) for substitutions. It can also output CSS, JS, and jQuery as well as load some of CBs APIs (would depend on your needs). The inputs for each are pretty self explanatory with descriptions of their purpose and examples in the descriptions. The substitutions are always based off the viewing user. So if they're not logged in it's ideal to hide the module (set access to Registered). Please see the below for substitution usage information.

www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb

As for what you're wanting the module can't do that. It can show a users username, but it can't show a random users username. For that you should use the CB Online module.


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