Skip to Content Skip to Menu

Using advanced filter - use a PHP variable?

  • bhesketh
  • bhesketh
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 0
12 years 11 months ago #184684 by bhesketh
Hi
I am creating a list in my CB where I would like the advanced filter to be able to associate some data from a separate component based on the user. Is there a way I can use a PHP variable in the advanced filter builder? And if not, is there a way I can hack in some of my own filtering instead?

Thank you for your time.

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

  • bhesketh
  • bhesketh
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 0
12 years 11 months ago #184690 by bhesketh
What I'd like to do is change the filter based on if the user is logged in or not. Further, if they *are* logged in, change the results of the list based on the location of the user and the users that are provided in the results.

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

  • bhesketh
  • bhesketh
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 0
12 years 11 months ago #184696 by bhesketh
Sorry for all the posts, I realize I can make a list for those logged in and those not and display links to them accordingly. However, I would still like to filter results based on some of the current users variables; for example, City or State. I also have checkbox fields in my users accounts which I would like to match with the current user in order to display results. Any hints or suggestions would be much appreciated!

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

Moderators: beatnantkrileon
Powered by Kunena Forum