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?
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.
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.
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.