Two questions - locations and lists in the back

  • Nick Chapman
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 4 months ago #52009 by Nick Chapman
Hi Tuan,

I have two more (hopefully small) questions to complete my setup.

Firstly, when a user logs in to create an event from the front end, they only have the option of choosing a location that they have created. Is it possible to have all the locations that are available in the database be available to all users?

Secondly, I can't re-order the lists at the back end as the option to do so is ghosted out. For example, when I look to re-order the categories, or the customer fields, I am unable to do so.

Nick.
The following user(s) said Thank You: Kostas

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 4 months ago #52023 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Two questions - locations and lists in the back
Hi Nick

1. Need to edit the code. Right now, only users who has super admin permission can see all locations. Follow the instructions below and you can edit the code:

- Open the file components/com_eventbooking/views/event/view.html.php

- Find the function _displayForm

- Within that function, find the code below:
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 '; }

Simply change it to:
Code:
$sql = 'SELECT id, name FROM #__eb_locations WHERE published=1 ORDER BY name';

2. To change ordering of items, first you need to click on header of order column. After that, you can change ordering of the items

Regards,

Tuan
The following user(s) said Thank You: Nick Chapman

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

Moderators: Tuan Pham Ngoc