Main menu

Forum


× Help Forum English

Show all event for the public - content for registered only

  • Neoimage
  • Topic Author
  • New Member
  • New Member
More
10 years 11 months ago #6386 by Neoimage
Hi,
I need the possibility to have all events visible for the public (in the module too) but if I click on the details I need a "register to read more" for the event with registered only permissions.

Is this feature already in your last release, or is it in the road map?

Thank you in advance for the answer.

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

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
10 years 11 months ago #6406 by Lyr!C
hi,

It's not an idea i thought of...

This could be added in roadmap, but it's possible to add it in a custom theme pack by using the function to detect user permissions.

Something like this added in event.php (not tested) :
// Level you want for access, for example '1' is registered
		$accessSet = '1';

		// Get User Access Levels
		$user = JFactory::getUser();
		$userLevels = $user->getAuthorisedViewLevels();

		// Control: if access level
		if ( in_array($accessSet, $userLevels) )  {
			
			// add here the code of event.php.

		} else {
			// Add here an alert message, or a redirect page, or else
		}


;-)

Latest version : iCagenda 3.9.8
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

The following user(s) said Thank You: Neoimage

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

  • Neoimage
  • Topic Author
  • New Member
  • New Member
More
10 years 11 months ago #6413 by Neoimage
Thank you very much !! I will try your solution !

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

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
10 years 11 months ago #6419 by Lyr!C

Neoimage wrote: Thank you very much !! I will try your solution !


Keep me informed of your testing! ;-)

Lyr!C

Latest version : iCagenda 3.9.8
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

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

Moderators: Lyr!C
Time to create page: 0.085 seconds

 

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new