FEU and Custom Content - restrict to individuals?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
JM6891
Forum Members
Forum Members
Posts: 150
Joined: Thu Mar 18, 2010 2:35 pm

FEU and Custom Content - restrict to individuals?

Post by JM6891 »

Hi there,

I'd like to set up pages that can only be viewed by people specified.

I have installed Front End Users and Custom Content and have managed to restrict a page to a group that I have set up, but I was wondering if it is possible to restrict it to specific users?

I.e. I have a page that I have created specifically for Joe Bloggs. Joe Bloggs belongs to Group 1 in FEU. But, I ONLY want Joe Bloggs to see the page, not everyone who belongs to Group 1. Is this possible?

Thanks in advance
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: FEU and Custom Content - restrict to individuals?

Post by staartmees »

create a groupe Joe Bloggs and make Joe Bloggs member of that groupe and problem solved.
JM6891
Forum Members
Forum Members
Posts: 150
Joined: Thu Mar 18, 2010 2:35 pm

Re: FEU and Custom Content - restrict to individuals?

Post by JM6891 »

Hi thanks for your reply.

I thought about this but it means my client will need to create a new group and a new user for each person they want to create a restricted area for so just wondered if there was an easier way?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: FEU and Custom Content - restrict to individuals?

Post by Dr.CSS »

Have you tried?...

{if $ccuser->username() == 'user@site.com'} users stuff {else} redirect or blank or "Go Away", whatever you want {/if}

user@site.com is the user name from FEU...
gstwebdev
New Member
New Member
Posts: 4
Joined: Fri Oct 28, 2011 5:40 am

Re: FEU and Custom Content - restrict to individuals?

Post by gstwebdev »

Just wondering if you got this to work?
I tried using
{if $ccuser->username('demo@test.com.au')} Show Indivdual User Content
{else} Show Nothing
{/if}

but I got errors:
"Smarty error: [in content:content_en line 2]: syntax error: unidentified token ';username('demo@test.com.au')
and
Parse error: syntax error, unexpected '&' in *******/tmp/templates_c/68^%%70^707^707A8977%%content%3Acontent_en.php

sorry if any of this is an easy answer, I am still learning CMSMS & smartys, so any help would be very much appreciated. :)

Thanks.
Post Reply

Return to “Modules/Add-Ons”