Show an element only to certain users, is there a way?

Majere

New Member
Hi, i'm trying to build a pay-per-view system with fabrik.
I wonder if there is a easy way to make some elements of a record visible only to users who purchased the record, and also to show a message (instead of the element's value) to user who haven't bought the record.

For example i could make a "purchased" table with "user_id" and "purchased_records_ids" fields, and then - when a user opens the detail view of a record- i would like to compare the record id with the "purchased_records_ids" from the user and then show the value of some elements of the record only if the user has that id in the "purchased" table.

Sorry for my bad english i hope you understand..
 
I think this can be done with a form php plugin running "onload" and overriding field content with some default text if the user didn't purchase this record.
 
OK, thank you for your response
i was hoping some kind of plugin already existed as i'm not a coder...
is there some php example in order to understand how to access elements value, user_id etc?
Thanks again
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top