The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Nov 01, 2007 8:48 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue May 09, 2006 11:42 pm
Posts: 107
Hi all,

I have look for about 2 days to find how to add login form right under
You are not authorized to view this resource you need to login.


and no luck...

could you tell me which file should I modify to add the login form under "you need to login" ?

I assume I could just add mos load modules login to make it appear..

and I want the login form to show up only when they are trying to view a registered only content ..

thank you


Last edited by ndondo on Thu Nov 01, 2007 9:27 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Nov 01, 2007 9:13 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue May 09, 2006 11:42 pm
Posts: 107
I found the possible fix

I have tried it, but does not seem to work
But I will try it one more time

http://forum.joomla.org/index.php?topic ... .msg831005


Top
 Profile  
 
PostPosted: Thu Nov 01, 2007 9:27 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue May 09, 2006 11:42 pm
Posts: 107
ndondo wrote:
I found the possible fix

I have tried it, but does not seem to work
But I will try it one more time

http://forum.joomla.org/index.php?topic ... .msg831005


I have to modify component/com_login/login.php

Change
From
// load the html drawing class
require_once( $mainframe->getPath( 'front_html' ) );

global $database, $my, $mainframe;
global $mosConfig_live_site, $mosConfig_frontend_login, $mosConfig_db;

To
// load the html drawing class
global $database, $my, $mainframe;
global $mosConfig_live_site, $mosConfig_frontend_login, $mosConfig_db;
require_once( $mainframe->getPath( 'front_html' ) );

or else I will get
Fatal error: Call to a member function on a non-object in component/com_login/login.php line 19


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 



Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group