Either Login or register to access

Everything to do with Joomla! 1.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Locked
mukwano
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Apr 15, 2009 8:50 pm

Either Login or register to access

Post by mukwano » Mon May 04, 2009 5:38 am

Hi Gurus,

I need help with access control.

I would like to limit access to certain Menu content on my site to logged in registered users.
I was wondering if any one knew of a script or module that would do the following:

- If a user has not logged in, the site would throw a message similar to the following:

"This section is is open only to registered and logged-in users.
If you are already registered, please log in first."

Any suggestions?

Thanks

Mukwano

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11616
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: Either Login or register to access

Post by ooffick » Sat May 23, 2009 11:29 am

Hi,

you can do that without a core hack, all you need to do is create a com_user output overwrite:

copy /.../components/com_user/views/login/tmpl/default_login.php
to /.../templates/[your-template]/html/com_user/login/default_login.php

Change that file so that it still has your login screen, and maybe a button to the register page.

You can read more about the Template Overwrites:
http://docs.joomla.org/How_to_override_ ... omla!_core

Mod Note: Moved to Template Overwrites.

Olaf
Olaf Offick - Global Moderator
learnskills.org


Locked

Return to “Templates for Joomla! 1.5”