Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

[SOLVED] Last visited profile user list

12 years 2 months ago - 12 years 2 months ago #214035 by edmundcheong
[SOLVED] Last visited profile user list was created by edmundcheong
I have created a cb query field to capture the "viewers" user id and store it in a field..

The reason behind this is I want to create a userlist of last visited user profiles.. Meaning that the user would be able to see the other profiles which he has visited when he clicks on the user list..

The problem now is that I go on creating userlist for each and every user.. that will be pure madness..

What I am planning to do is to create a userlist with a filter for the cb query field (which captured user Id) to get the viewers user Id.. Meaning the filter for that list would be cb_idstorage=#me..

Somehow I can't get it working.. I have tried cb_idstorage=cb:userdata field="Id" user="me" similar to how delimiter uses the "#me" field here - magazine.joomla.org/topics/item/133-CB-Delimiter-Field-Magic

If I can create this userlist, I will be able to create one userlist for all users to have a "last visited" profile list..

I hope my explanation is clear..
Last edit: 12 years 2 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48708
  • Thanks: 8319
  • Karma: 1447
12 years 2 months ago #214054 by krileon
Replied by krileon on topic Re: Last visited profile user list
Filters just cut down the userlist to users that match your criteria. It won't sort them from last visited at top. Are you wanting to filter the userlist to the users last visited in X hours or days or weeks, etc.. Need more details to be able to supply a proper Advanced filter.


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.

12 years 2 months ago #214146 by edmundcheong
Replied by edmundcheong on topic Re: Last visited profile user list
Thanks I manage to solve this by putting a filter:

cb_getname=cb:userdata field="name" user="#me" /

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

Moderators: beatnantkrileon
Powered by Kunena Forum