Restriction of Front-end user

  • Tim Stöhr
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
11 years 9 months ago #46304 by Tim Stöhr
Restriction of Front-end user was created by Tim Stöhr
Hi Tuan,
I have created the front end event creation etc... Now I have the problem that I firstly would like to restrict the event creators to a certain group of people and secondly, and much more importantly, that they cannot use payment options ie can only create free events!

Would be great if you could help me out on this one!

Cheers

Tim

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 9 months ago #46307 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Restriction of Front-end user
Hi Tim

You can choose what user groups can submit events from front-end. Please see documentation at documentation.joomdonation.com/2-events-...ents-submission.html

To prevent users from submit paid events, I think you will have to edit code to remove the Price field from event submission form so that all these events will be free instead of paid events.

Tuan

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

  • Tim Stöhr
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
11 years 9 months ago #46324 by Tim Stöhr
Replied by Tim Stöhr on topic Restriction of Front-end user
Hey Tuan,

The thing is I still need to create events with paypal from the backend so it needs to work in the backend, however it should not work anymore in the frontend...

Which code do I have to adapt? Where can I find the field?

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 9 months ago #46325 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Restriction of Front-end user
Hi Tim

The file you need to modify is components/com_eventbooking/views/event/tmpl/form.php

You can try to remove the price file (remove the code below):

<tr>
<td class="key">
<?php echo JText::_('EB_PRICE'); ?>
</td>
<td>
<input type="text" name="individual_price" id="individual_price" class="input-mini" size="10" value="<?php echo $this->item->individual_price; ?>" />
</td>
</tr>


I think it should do what you need.

Tuan

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

  • Tim Stöhr
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
11 years 8 months ago #47448 by Tim Stöhr
Replied by Tim Stöhr on topic Restriction of Front-end user
Hi Tuan,

It worked in the first instance and it took the price field away, however the next day it was there again. I have checked on the server as well, the part you counceled that should be removed has been removed. I have found an intermediate solution by changing the description of the field to "DO NOT USE" however it is not that great a solution...

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 8 months ago #47453 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Restriction of Front-end user
Hi Tim

Sorry but I don't really understand. Were you able to see this issues yourself? I meant when you submit events yourself, the events become paid events instead of free events ?

Please give me more information so that I will have a clue to check and solve the issue.

Regards,

Tuan

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

  • Tim Stöhr
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
11 years 8 months ago #47687 by Tim Stöhr
Replied by Tim Stöhr on topic Restriction of Front-end user
Hi Tuan,
Sorry for late reply... was busy elsewhere.

I have set the event booking stuff so that any registered member of the website can create it. Due to tax reasons, I cannot allow members to create a paid event unless I add the payment at the back (which will then be protocolled and the results checked by tax agency...). For this reason, I would like to take off the ability of members to create a paid event via the frontend. If you look at the link below (you may need to sign into the website), you will see that it contains a field that is called: "DO NOT USE!". This field is the "Price" field. I would like to take it away. Your above solution only worked for a day (and yes, I have checked that the above did not reinsert itself). Could you please provide a solution? munich.international-friends.net/index.p...bmission?layout=form

Thanks

Tim

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 8 months ago #47695 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Restriction of Front-end user
Hi Tim

That's strange. Unless you did something wrong, the field could not goes back automatically. Please submit a support ticket sending me admin and FTP account of your site. I will check to see what's wrong and get it corrected.

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc