Skip to Content Skip to Menu

[SOLVED] CB list search as a module?

  • startup
  • startup
  • OFFLINE
  • Posts: 113
  • Thanks: 7
  • Karma: 1
  • Add-ons
9 years 10 months ago - 9 years 10 months ago #256223 by startup
[SOLVED] CB list search as a module? was created by startup
Hello,

I am wondering if it's possible to display the search functionality over CB user lists that is currently displayed on top of the user list in the main component position in a module instead?

That way it would be possible to show the search in another position next to the user list, instead of above it. It would also enable the use case of having two modules, each with differently configured search. And then use CB Subs to show one search module for members with one plan and another search module (perhaps more restricted) to members with another (perhaps free) CB Subs plan.

Either way, as I see it this would require the search to be displayable in a module. Thus, my question: It this possible?

Thank you very much!
Last edit: 9 years 10 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48481
  • Thanks: 8283
  • Karma: 1443
9 years 10 months ago #256265 by krileon
Replied by krileon on topic CB list search as a module?
Out of the box, no. It maybe possible combing a bunch of stuff to force it, but it's not going to be an easy task. The first step is to use a Joomla wrapper module to wrap the userlist url with searchmode set to 1 and &tmpl=component added to the URL. Example as follows.

index.php?option=com_comprofiler&view=userslist&listid=LIST_ID_HERE&searchmode=1&tmpl=component

The next step is to add some jQuery to the userlist page using the onBeforeDisplayUsersList trigger and CB Auto Actions Code action. The jQuery needs to change the userlist form target in the module to point to the parent so it submits to the parent window instead of the iframe.

This MAY work, but it's in no way elegant and takes a bit of coding to get working. A module that outputs a userlists search criteria is planned at a later time, but right now we've nothing available to do this easily.

Your easiest solution maybe to just have 2 userlists with different view access levels. Next give a user a usergroup in that view access level based off the plan they're subscribed to then just provide Joomla menu links to those URLs (also having same access level). They won't be modules, but they'll at least be accessible based off subscription.


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.

  • startup
  • startup
  • OFFLINE
  • Posts: 113
  • Thanks: 7
  • Karma: 1
  • Add-ons
9 years 10 months ago #256373 by startup
Replied by startup on topic CB list search as a module?
Thank you, Krileon, for your quick response. I was thinking that it's probably a bit of work and not available right now as I tried to search a lot. There used to be a 3rd party module (can't remember its name right now) that did a really beautiful job at that. They just discontinued their support so no longer works on the later CB versions.

If or when you get around to it, I think that module would make a nice part of the Professional/Developer, etc. packages. It opens up a lot of nice use cases.

Thanks again!

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

Moderators: beatnantkrileon
Powered by Kunena Forum