Website Membership user type / user levels / user permissions and display of data
15 posts by 2 authors in: Forums > CMS Builder
Last Post: November 19, 2014 (RSS)
By Mikey - November 19, 2014
Hey Claire,
To be honest - I really don't know how it ties in, but the search engine was built using the multisearch.php file Dave provided a few years ago. You can see the original post here: http://www.interactivetools.com/forum/forum-posts.php?postNum=2191229#post2191229
By claire - November 19, 2014
Hi Zicky
Apologies, I thought this was a custom function. Are you getting any errors, or does the code just not work? I think I have a solution for you, just want to check.
Claire Ryan
interactivetools.com
Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
By Mikey - November 19, 2014
The search function works fine... I just can't get the search to produce results based on if the site user is not logged in thereby producing only public available records, or if the site visitor is logged in thereby producing public and the user's membership level allow record results in the search.
As it works now with all the various attempts I've made at filtering the code by user level type - it still produces all records regardless of non-logged in user, or logged in user level access.
So to answer you question - the code just doesn't work "For filtering out based on user levels."
By claire - November 19, 2014
Sounds about right.
I had a chat with Dave, and basically I don't think you can use the additional where parameter with this particular function. The solution, though it probably isn't ideal, is to use separate getRecords calls for each table you want to search, all using the same where parameter as set by the code I gave you earlier.
Sorry I don't have a better answer :(
Claire Ryan
interactivetools.com
Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
By Mikey - November 19, 2014
Thanks for the feedback Claire. I've got a support ticket for a quote placed... so I may just pay InteractiveTools to build what ever I need to accomplish this.