Page 1 of 1

Password Protected areas

Posted: Thu Jun 19, 2008 3:11 pm
by bighitter
Hi Guys,

I am relatively new to CMSMS and was wondering how you can password protect certain areas of a site using CMSMS.

What I am trying to do is build a site and then with a username and password you can access some other pages which would normally blocked to the normal viewer of the site.

Any Ideas?

Cheers

Chris

Re: Password Protected areas

Posted: Thu Jun 19, 2008 3:17 pm
by calguy1000
You need at least two modules:

a) FrontEndUsers
b) CustomContent

look in the documentation section under 'visual tutorials'

Re: Password Protected areas

Posted: Thu Jun 19, 2008 7:50 pm
by bighitter
Well I did what the visual tutorial shows and i get an error when i go to look at the private data

Parse error: syntax error, unexpected '&' in C:\wamp\www\website\tmp\templates_c\59^%%70^707^707A8977%%content%3Acontent_en.php on line 3

Any Ideas folks?

Many Thanks

Chris

Re: Password Protected areas

Posted: Fri Jun 20, 2008 12:30 am
by Dr.CSS
Did you check the no cache option in the option tab when creating page?...

Cachable: no check...

Re: Password Protected areas

Posted: Fri Jun 20, 2008 9:09 am
by bighitter
Hi Guys,

Yes I have the secured page cachable as not checked.

the code I am using is

{if $ccuser->loggedin ()}
Welcome Authorised User
{else}
You are not Authorised to view this page
{/if}

Am I missing something perhaps?

Oh just to let you all know I am using CMSMS Cuba 1.3

All help is greatly appreciated

Chris

Re: Password Protected areas

Posted: Sun Jun 22, 2008 7:18 pm
by bighitter
It was suggested that I disable the wysiwyg editor, i did so and this still doesnt work
I receive the following error


Parse error: syntax error, unexpected T_STRING in C:\wamp\www\website\tmp\templates_c\60^%%70^707^707A8977%%content%3Acontent_en.php on line 3

This is so frustrating as I know I am so close to this working

All help is greatly appreciated.

I have Cuba 1.3 installed


Cheers

Chris

Re: Password Protected areas

Posted: Mon Jun 23, 2008 12:16 am
by Dr.CSS
Have gone to Site Admin ยป Global Settings and cleared the cache?...

You may need to because you didn't set the page as not cached until after you looked at it once or more...

Re: Password Protected areas

Posted: Mon Jun 23, 2008 10:45 am
by bighitter
Hi Mark,

I have cleared the cache as you suggested and still experiencing the same problems.

Parse error: syntax error, unexpected T_STRING in C:\wamp\www\website\tmp\templates_c\60^%%70^707^707A8977%%content%3Acontent_en.php on line 3

So i am a bit stuck to say the least.

I just give you a bit of background and see if you can see if any of the following may cause an issue

I have CMSMS 1.3 Cuba running, Apache 2.2.6, PHP 5.2.5 and MySQL 5.0.45

I dont think of these should give any errors as they are all fairly current.

Hope you can help

Bighitter

Re: Password Protected areas

Posted: Mon Jun 23, 2008 11:48 am
by cyberman
bighitter wrote: the code I am using is

{if $ccuser->loggedin ()}
Welcome Authorised User
{else}
You are not Authorised to view this page
{/if}
Move/change this code to template like I've posted here

http://forum.cmsmadesimple.org/index.ph ... #msg112424

Re: Password Protected areas

Posted: Thu Jun 26, 2008 11:57 am
by Bablorub
Hm.. thanx! Gots 2 know that :)