How to display a message for unauthorized access

More
11 years 6 months ago #37788 by chifeng
A feature request:
Normally when a custom field (like private_photo) is created, the frontend view of the field will display nothing for public visitors.
However, sometimes we encourage visitors to register to read more, there is a need to display something.
How to display such a message for unauthorized access as the following
demo.jextbox.com/2-uncategorised/2-login-to-read-more-demo.html

Thanks.

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

More
11 years 6 months ago #37793 by micker
interesting thing ... ;)

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
11 years 6 months ago #37802 by ggppdk
Hello,
there is work in progress for access

-- FOR ITEM-LEVEL
we are adding (in category,tags,search, etc views) special CSS classes inside code for no-acess items and for items belonging to "featured" categories:

e.g.
Code:
<li ...> <span class="fc_item_has_access"></span> <span class="fc_itemcat_45"></span> <span class="fc_itemcat_17"></span> ... item content </li> <li ...> <span class="fc_item_no_access"></span> <span class="fc_missing_level_access_4"></span> <span class="fc_itemcat_45"></span> <span class="fc_itemcat_17"></span> ... item content </li>


-- FOR FIELD-LEVEL (your question)
yes we have thought of this before, in order to do this we would need to add at least 2 parameters to all FLEXIcontent fields:
- parameter to show no-access message or not
- parameter for (language filtered) no-access message


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 6 months ago #37808 by chifeng
Thank you very much for your quick and responsive reply.
Hoping this feature will make Flexicontent more powerful and flexible.

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

More
11 years 5 months ago #38082 by brandonking

ggppdk wrote: -- FOR FIELD-LEVEL (your question)
yes we have thought of this before, in order to do this we would need to add at least 2 parameters to all FLEXIcontent fields:
- parameter to show no-access message or not
- parameter for (language filtered) no-access message


I am using LoadModule field to load Fox contact form and this field is only available to Registered user.
I need to inform public users to sign up or login to be able to contact authors.

Regards,

EDIT: Better to have parameter for Class Suffix as well.

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

More
11 years 5 months ago #38096 by ggppdk
Hello,

OK just thinking out loud,
as i said i had though of exactly this several times in the past,

(and just thinking out loud):

-- just now i realized the best way do it:
a. remove ACCESS Level check from the SQL query ... that retrieves the item 'fields'
b. inside flexicontent.fields.php file
instead of calling 'onDisplayField()' we check ACCESS and if no access we set 'display' of field to be the "no access message" along with the CSS class

New field parameters needed (or add them as DB table properties ??):
a. "print_no_access_message"
b. "no_access_message" (language filtered)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.939 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline