Content Restriction: show if event owner

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 3 months ago - 4 years 3 months ago #140696 by hide10
Hello,

Content Restriction plugin is very useful to show some content only to the users who registered for the specified event.
Code:
{ebrestriction ids="ID_OF_EVENTS"}{/ebrestriction}
However, the event owner (creator) cannot see the restricted content.
Is there any way to include event owner in allowed users?

Thanks.
Last edit: 4 years 3 months ago by hide10.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
4 years 3 months ago #140699 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Content Restriction: show if event owner
I have to modify code of the plugin to offer this feature. You can go to Extensions -> Manager -> Install, install this modified plugin to see if it works as you want

Regards,

Tuan
Attachments:

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

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 3 months ago #140704 by hide10
Replied by hide10 on topic Content Restriction: show if event owner
Hello Tuan,

Thank you for the modified version!
I've installed the plugin, but unfortunately it didn't work for event creator.

I cleared Joomla cache and browser cache, but still does not work...
Do I need to do anything else?

Thanks.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
4 years 3 months ago #140706 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Content Restriction: show if event owner
There was a small typo in the code, sorry. Please install this updated plugin, then check it again. It should be fine

Tuan
Attachments:

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

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 3 months ago #140709 by hide10
Replied by hide10 on topic Content Restriction: show if event owner
Thank you, but this time, it shows the following error:

1054 Unknown column 'event_id' in 'where clause'

both for registrant and event creator.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
4 years 3 months ago #140711 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Content Restriction: show if event owner
Really sorry, please use this updated plugin

Tuan
Attachments:

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

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 3 months ago #140712 by hide10
Replied by hide10 on topic Content Restriction: show if event owner
Thanks, but still I'm facing the same error...

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
4 years 3 months ago #140713 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Content Restriction: show if event owner
Hmm
For some reasons, the code was not udpated. Please get this updated plugin here
Regards,
Tuan
Attachments:

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

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 3 months ago #140716 by hide10
Replied by hide10 on topic Content Restriction: show if event owner
It works perfectly for both registrant and event creator now.

I really appreciate your quick solution.
Thank you!!

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
4 years 3 months ago #140717 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Content Restriction: show if event owner
I should charge you some fee for doing this custom development, lol :D

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

Moderators: Tuan Pham Ngoc