Show Joomla Login Module on Restricted Pages Instead of Error Message

I'm running Joomla on my server and I want for people to have to login in when the reach a restricted page. I only want to show the login module on the restricted pages. I also don't want it to throw up the "you are not authorized" words. I'd rather put in my own instructions telling them to register and/or login.
baadayakaziAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wonkotsaneCommented:
Joomla really, really sucks at doing user access control.  The best option for you is to install something like JACL which will give decent control over user accounts and permissions.

You can get Joomla here: http://www.joomlaresource.com/Joomla_Addons/Joomla_Components/JACL_Plus_Component/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
wonkotsaneCommented:
Sorry, that should have said you can get *JACL* here.
0
baadayakaziAuthor Commented:
I just looked at this component and since it requires major hacking of the core Joomla files (according to the download agreement), I'd rather not take my chances.

Is there something I can do to change the way the current installation responds to users who are not logged in? Instead of showing text that says to log in, it show a module...the login one.
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

wonkotsaneCommented:
Not without hacking the core Joomla files!
0
baadayakaziAuthor Commented:
I don't mind going in and altering a few lines of code in the core Joomla files, especially since I can easily make backups. I'm just afraid of installing a component that will alter a bunch of files automatically that I may have to go track down if/when there's a problem. It's about control ;)
0
rbrideCommented:
I had to do this too for Joomla 1.5 - I wrote my own template and component which basically centered around these lines of code:
if ( $user->guest) {
    include('div-login-required.php');
} else {
    include('div-contentarea.php');
} ?>
The contentarea is the usual content that you'd see.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.