Password Protected areas

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
bighitter
New Member
New Member
Posts: 7
Joined: Fri Feb 29, 2008 3:09 pm

Password Protected areas

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Password Protected areas

Post by calguy1000 »

You need at least two modules:

a) FrontEndUsers
b) CustomContent

look in the documentation section under 'visual tutorials'
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
bighitter
New Member
New Member
Posts: 7
Joined: Fri Feb 29, 2008 3:09 pm

Re: Password Protected areas

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Password Protected areas

Post by Dr.CSS »

Did you check the no cache option in the option tab when creating page?...

Cachable: no check...
bighitter
New Member
New Member
Posts: 7
Joined: Fri Feb 29, 2008 3:09 pm

Re: Password Protected areas

Post 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
bighitter
New Member
New Member
Posts: 7
Joined: Fri Feb 29, 2008 3:09 pm

Re: Password Protected areas

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Password Protected areas

Post 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...
bighitter
New Member
New Member
Posts: 7
Joined: Fri Feb 29, 2008 3:09 pm

Re: Password Protected areas

Post 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
cyberman

Re: Password Protected areas

Post 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
Bablorub

Re: Password Protected areas

Post by Bablorub »

Hm.. thanx! Gots 2 know that :)
Post Reply

Return to “The Lounge”