Skip to Content Skip to Menu

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

CB User List

11 years 9 months ago - 11 years 9 months ago #218709 by edmundcheong
CB User List was created by edmundcheong
Here is the scenario.

When my moderator edits another registered user profile, auto action captures the moderator's user ID and store it on this field called "cb_spid" in _comprofiler.

I created a list with the following filter (bel9ow) to generate a list for the moderator of the users which he edited.
Code:
`cb_spidno` ='[cb:userdata field="user_id" user="#me" /]'

when a user click on this list, it takes a long time to load. Is there a more efficient way to do this?

it is even worse when the user is no longer logged in after session lifetime. And that time userdata field="user_id" user="#me" is blank, and if he submits. It will do a query submit of a blank user_id am i right.
Last edit: 11 years 9 months ago by edmundcheong.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #218772 by krileon
Replied by krileon on topic Re: CB User List
Depends on how many users you have. Substitution should actually improve performance as you're cutting down the userlist. Filters simply add to the WHERE statement of the query. There's really no improving it further if you've a lot of users beyond adding custom indexes to the table.


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: edmundcheong

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

Moderators: beatnantkrileon
Powered by Kunena Forum