Keyword

Controlling access to parts of an item

  • David Willox
  • David Willox's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 4 months ago #113350 by David Willox
Controlling access to parts of an item was created by David Willox
I will be creating a site that will have items reporting on a conference.

Each speaker will be interviewed on camera and this will be available within the item.

We will also have an audio recording of the entire talk which should only be available to those who subscribe. There will also be a downloadable podcast of the talk which should also only be available to paid up subscribers.

If it were possible to place an audio player and the download in an extra field that was only visible to those that were "subscribed" this would solve the problem

Is there a way I can make this work within the item.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #113351 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Controlling access to parts of an item
Hello David,

You can use the (!$this->user->guest) variable to distinguish registered users. If you wish to seperate user groups for paying users and registered users you will need to query the db.

As far as the extrafield I would use the AllVideos plugin inside a text input extrafield and echo it inside the user condition.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • David Willox
  • David Willox's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 4 months ago #113352 by David Willox
Replied by David Willox on topic Re: Controlling access to parts of an item
Many thanks for this.

I am new to making such changes - can you tell me where I should put the code and perhaps show me an example.

And thanks again in anticipation

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #113353 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Controlling access to parts of an item
You need to override item.php.

You can see the user conditions in the comment section and as for extrafields you can see this thread here .

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum