- Posts: 6
- Thank you received: 0
Share Locations between users
- Carsten Jessen
- Topic Author
- Offline
- New Member
-
Less
More
11 years 4 days ago #60639
by Carsten Jessen
Share Locations between users was created by Carsten Jessen
We are multiple users submitting events on our site. Is there a way to make "locations" independent of user, so that we can share location entries and don't have to create the same location multiple times
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
11 years 4 days ago #60646
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Share Locations between users
Hi Carsten
You will need to edit the code a bit to have it working. Please follow the instructions below:
1. Open the file components/com_eventbooking/views/event/view.html.php
2. Find the code below (from line 243 to 250 if you are using Events Booking 1.7.1)
Change it to:
After that, it will work as expected
Tuan
You will need to edit the code a bit to have it working. Please follow the instructions below:
1. Open the file components/com_eventbooking/views/event/view.html.php
2. Find the code below (from line 243 to 250 if you are using Events Booking 1.7.1)
Code:
if ($user->authorise('core.admin', 'com_eventbooking'))
{
$sql = 'SELECT id, name FROM #__eb_locations WHERE published=1 ORDER BY name';
}
else
{
$sql = 'SELECT id, name FROM #__eb_locations WHERE published=1 AND user_id=' . $user->id . ' ORDER BY name ';
}
Change it to:
Code:
$sql = 'SELECT id, name FROM #__eb_locations WHERE published=1 ORDER BY name';
After that, it will work as expected
Tuan
The following user(s) said Thank You: Carsten Jessen
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.