Skip to Content Skip to Menu

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

Can one pass a parameter to cb lists ?

  • GUEST
11 years 5 months ago #227691 by
By way of example, if I set up a cb list that includes all registered users, is it possible to pass a link to that report to use as a parameter to the filter field and thus produce a report with a single record for a specific user?

Regards,
Nick

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago #227703 by krileon
Replied by krileon on topic Can one pass a parameter to cb lists ?
You want to add a parameter to the userlist URL and it use it to automatically search a field? If I understand correctly that's what you want, yes you can do this. Example as follows using username field.

index.php?option=com_comprofiler&task=usersList&limitstart=0&search=&listid=6&username=test

The above will search the userlist with a listid of 6 on the username field for the phrase "test". To search other fields you basically just append them to the URL as (e.g. &cb_myfield=123).


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.

  • GUEST
11 years 5 months ago #227732 by
Just the job, Kyle. Many thanks for that. Just to wrap up, is it possible to add the 'enabled' field form #__users to the cb user lists? We disable someone who does not renew their membership and many renew later. It would polish the thing off if we could pick that field up as well.

Regards

Nick

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago #227750 by krileon
Replied by krileon on topic Can one pass a parameter to cb lists ?
Unfortunately no. CB Userlists do not show unconfirmed, unapproved, blocked, or banned users. Only way to change this is using a new CB plugin to act on the userlist query and remove those checks from the WHERE statement of the query.


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.

  • GUEST
11 years 5 months ago #227811 by
And such a plug in doesn't exist I gather? I wonder if I am up to writing one.

Thanks anyway

Nick

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago #227909 by krileon
Replied by krileon on topic Can one pass a parameter to cb lists ?
Correct, it'd need to be a trigger based plugin, which you can find information on in the below tutorial.

www.joomlapolis.com/support/tutorials/120-api-usage/18358-using-cb-triggers

Unfortunately CB Auto Actions can't do this as it doesn't pass variables by reference so you won't be able to modify the query from it.


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