Joomla! Discussion Forums



It is currently Thu Nov 05, 2009 11:22 pm (All times are UTC )

 


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
Posted: Thu Nov 01, 2007 8:48 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue May 09, 2006 11:42 pm
Posts: 98
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
   
 
Posted: Thu Nov 01, 2007 9:13 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue May 09, 2006 11:42 pm
Posts: 98
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
   
 
Posted: Thu Nov 01, 2007 9:27 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue May 09, 2006 11:42 pm
Posts: 98
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
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

Quick reply

 



Who is online

Users browsing this forum: bloobug, Marcel Barboza and 33 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 © 2000, 2002, 2005, 2007 phpBB Group