Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

Filter events based on value in users registration custom field

  • OTWD
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 4 weeks ago #172424 by OTWD
Hi I have a bunch of events set to access registered (so only logged in users can book)
When they register they enter a value from a dropdown for location.
E.g Dublin West
My events have 20 different locations - however I only want to show the events to the user which matches their location in the registration i.e
John Smith (Dublin West) only sees Event 1 - location Dublin West
Is this possible either via:
1. the event location field,
2. category filtering e.g Have 20 different location categories and use URL crafting
e.g i could write a sql statement that "selects event where location join to location of the user" = $result then use php to craft a URL something like
if  $result = "Dublin West" {
 $result = 1;}
mywebsite.com/index.php?option=com_event...=category&id=$result

3. Some plugin or built in method that already exists for EB?
Happy to share my solution if i have to make a custom plugin / code

Success consists of going from failure to failure without loss of enthusiasm.

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

Moderators: Tuan Pham Ngoc