help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Allow unregistered users to create events

Re: Allow unregistered users to create events

7 years 5 months ago
#24024
Hello Jojo12,
I tried everything in components/com_jem/classes/user.class.php but nothing really changed.
Also in components/com_jem/classes/output.class.php
Is there a way to use a user level "public?
With the same rights that common registered users habe?
(Except of course, edit other events or venues.)
Thank you in advance
Axel

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

Re: Allow unregistered users to create events

7 years 2 months ago - 7 years 2 months ago
#24269
Thank you, could you tell me what to do in user.class.php?

I changed in output.class.php:

Line 84;
from
$buttons[$idx][] = JemOutput::submitbutton(!empty($canAddEvent), null);
to
$buttons[$idx][] = JemOutput::submitbutton(empty($canAddEvent), null);

Line 87
from:
$buttons[$idx][] = JemOutput::addvenuebutton(!empty($canAddVenue), null, null);
to:
$buttons[$idx][] = JemOutput::addvenuebutton(empty($canAddVenue), null, null);

Now the Buttons are visible but not working..
I am still looking what to do in user.class.php
Last edit: 7 years 2 months ago by saxel.

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

Re: Allow unregistered users to create events

7 years 2 months ago
#24282
Hello,
I changed in components/com_jem/classes/user.class.php
line 376 from:
// guests are not allowed to do anything except looking
if (empty($userId) || $this->get('guest', 0)) {
return true;
}
to:
// guests are not allowed to do anything except looking
if (empty($userId) || $this->get('guest', 0)) {
return true;
}
Now the Buttons appear but then a not loged in user seel a blank JEM page (no form and not Calender List)
What ellse do I have to change?

Greetings Axel

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

Re: Allow unregistered users to create events

7 years 2 months ago
#24303
Hi,
I solved the topic by using a plugin:
JG Autologin
This logs the homepage visitor automatically in as a registered user, I created before.
Kind regards and thank you for your support
Axel

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

Time to create page: 0.597 seconds