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  [ 19 posts ] 
Author Message
PostPosted: Wed Oct 26, 2005 5:20 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sun Aug 28, 2005 11:23 am
Posts: 958
Location: New York
Hello,

I have just made a site for a client and they want to be able to edit content however i would prefer to give them access only to front end editing capabilities - but i would like the login module not to be viewable by the public. 

Is there any way to allow them to login without resorting to having a published menu link that says 'login' which goes to a content item where the login mod is published?

So basically is it possible to have a page that is not linked to by any menu display a login module?  Or better still an inline login form?!

Any ideas anyone?!


Top
 Profile  
 
PostPosted: Wed Oct 26, 2005 7:47 am 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2230
Location: The Netherlands
yes, visiting the login component would allow you to login:
http://www.site.com/index.php?option=com_login

_________________
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl


Top
 Profile  
 
PostPosted: Wed Oct 26, 2005 8:02 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sun Aug 28, 2005 11:23 am
Posts: 958
Location: New York
wow!  thanks!! can i modify parameters and things somewhere in the admin area - ive looked around but can't 'find it'. 

edit:  oh and is there a way for the person to log out when finished editing?  thankyou!

edit 2:  well i figured that last bit out  i think - make login mod only available to registered people and publish on all pages - then they can log out and the mod disappears.

edit 3:  hmm actually now when i try to access the login component directly i get a page not found error - veird... 

edit 4:  woopsy!  no i dont, i was putting in the wrong url  :-[


Last edited by rw1 on Wed Oct 26, 2005 8:12 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Wed Oct 26, 2005 8:09 am 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2230
Location: The Netherlands
For that, you could create a link in an unpublished menu. If you copy the link from that menuitem you can set parameters... Logout will go via the same page.

_________________
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl


Top
 Profile  
 
PostPosted: Sat Dec 03, 2005 6:07 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sun Aug 28, 2005 11:23 am
Posts: 958
Location: New York
i have a new site running joomla 1.0.4 and now get this error when visit the login page:

You are not authorized to view this resource.
You need to login.

Any ideas please?


Top
 Profile  
 
PostPosted: Sat Dec 03, 2005 7:35 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Sun Aug 21, 2005 2:57 pm
Posts: 1369
Location: Colorado, USA
As long as you don't want other users to login which it sounds like you don't, the simple solution is to leave the menu link to the login published as public and just edit the login module and select "none" under  Pages / Items-Menu Item Link(s): and then give the URL (something like http://www.costa-rica-guide.com/travel/ ... =com_login) to the persons you do want to login.

This should create a site where no-one sees a login prompt, but the "secret" users can login. 

It's pretty damned unlikely that anyone would take the trouble to look for the secret login, but if you'd like to make it even harder to hit randomly you could use an SEF component to assign a code name to the login page then give that to the authorized users.  If you need more security than that you'll probably have to call in someone who actually knows what they're doing  :P

_________________
¡Pura Vida!
Ray,
joomla in testing at Costa Rica Travel: http://costaricamap.net
http://costa-rica-guide.com


Top
 Profile  
 
PostPosted: Sat Dec 03, 2005 8:21 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sun Aug 28, 2005 11:23 am
Posts: 958
Location: New York
does this mean i have to have a visible menu link to login?


Top
 Profile  
 
PostPosted: Sat Dec 03, 2005 8:35 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Sun Aug 21, 2005 2:57 pm
Posts: 1369
Location: Colorado, USA
rw1 wrote:
does this mean i have to have a visible menu link to login?


No!  When you assign the menu link to "none" it won't show up anywhere on your site.  You e-mail the person you want to have access to the login and tell them login through this url "http://www.costa-rica-guide.com/travel/index.php?option=com_login"  tell them to book mark it on their browser if they complain about having to copy and paste...

_________________
¡Pura Vida!
Ray,
joomla in testing at Costa Rica Travel: http://costaricamap.net
http://costa-rica-guide.com


Top
 Profile  
 
PostPosted: Sat Dec 03, 2005 11:51 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sun Aug 28, 2005 11:23 am
Posts: 958
Location: New York
ok i got to Menu>mainmenu and then click 'New'...

what sort of link do i make it?

I made it a Component link but then there was no Login component to link to. 

I made it a url link, but then there was no area to assign the link to 'None'. 

Are you talking about assigning the login module to 'None'?

im confused, if possible can u please provide step by step instructions from the beginning?  I think this should solve problems as i have set up the com_login page on other sites with no hassle, no need for extra menu items, content items or module assigning etc - just usually the link 'works'!


Last edited by rw1 on Sat Dec 03, 2005 12:22 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Dec 03, 2005 3:09 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Sun Aug 21, 2005 2:57 pm
Posts: 1369
Location: Colorado, USA
Ok, hopefully I can be more coherent now that the sun is up.

If you have a login that works then if you go to Modules >> Site Modules you should find a module called login form.  If you select this and edit it I believe the default install has just the home page selected on the right hand side where it says " Pages / Items Menu Item Link(s):"

If I choose none here then there is no login form that appears anywhere on my site, but if you click on the link below (this would be the thing you e-mail to the person that you want to login), you are taken to a working login form.

http://www.costa-rica-guide.com/travel/index.php?option=com_login

I'll leave my site setup with no login for a while so you can see what I mean.

You can actually make this secure by setting "Allow User Registration:" to "no" on the site tab under global configuration. Then even if someone finds the "secret" url they could look at the login page but not do anything unless they already had a username and password.

_________________
¡Pura Vida!
Ray,
joomla in testing at Costa Rica Travel: http://costaricamap.net
http://costa-rica-guide.com


Top
 Profile  
 
PostPosted: Sat Dec 03, 2005 4:31 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sun Aug 28, 2005 11:23 am
Posts: 958
Location: New York
hello, thanks for your reply,

I went to Modules>Site Modules and made sure the Login Module was assigned to 'None', had public access and was published. 

Then i went to the component login url http://www.site.com/index.php?option=com_login (where site.com is an example). 

I still get the same message:

You are not authorized to view this resource.
You need to login.

In regards to other troubleshooting

- the time zone is correct in Global Configuration area. 
- trash contains no  items. 
- have emptied browser cache

I am at a dead end and dont know what else to try...

Its a clean install of 1.0.4...


Last edited by rw1 on Sat Dec 03, 2005 4:35 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Dec 03, 2005 5:01 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Sun Aug 21, 2005 2:57 pm
Posts: 1369
Location: Colorado, USA
Hmm... Did you try that link on my site?  Does that work for you?  Maybe it only works for me because I have a cookie hanging around from previous logins or something, but when I click on it I get the screenshot below.

If you switch the login module assignment to all, does it show up and work? does the link to com_login work then?

Can you get the registration page by using http://www.site.com/index.php?option=co ... k=register?

You've pretty much got me stumped here (not that that's too tough to do) maybe someone else has a suggestion?


You do not have the required permissions to view the files attached to this post.

_________________
¡Pura Vida!
Ray,
joomla in testing at Costa Rica Travel: http://costaricamap.net
http://costa-rica-guide.com


Top
 Profile  
 
PostPosted: Sun Dec 04, 2005 12:49 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sun Aug 28, 2005 11:23 am
Posts: 958
Location: New York
hi :)

yes, the link works on your site, and the com_login link works fine on another site i have set up - its just not working on this particular one. 

i set login mod to appear on all and the com_login link still brings up the same error - but the login module shows up. 

registration link u gave me showed a blank page when user registration disabled in global config, but did show up when i enabled it in global config. 

it did not make the com_login link work however...


Top
 Profile  
 
PostPosted: Sun Dec 04, 2005 1:46 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Aug 18, 2005 8:43 pm
Posts: 7725
Location: New York
Don't make the module "none," assign it to a position that is not used in your template.

Get moslate or mosloadposition, which let you put modules in content, and create a content page with the module in it.  Make this page visible only to special users.

Then you go to that page to log in.

To make it more elegant, I would either create a subdomain that redirects to that page (like login.domain.com)  Or just make a subdirectory with an index.htm file that redirects.

_________________
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.


Top
 Profile  
 
PostPosted: Sun Dec 04, 2005 7:20 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Sun Aug 21, 2005 2:57 pm
Posts: 1369
Location: Colorado, USA
mcsmom wrote:
Don't make the module "none," assign it to a position that is not used in your template.

Get moslate or mosloadposition, which let you put modules in content, and create a content page with the module in it.  Make this page visible only to special users.

Then you go to that page to log in.

To make it more elegant, I would either create a subdomain that redirects to that page (like login.domain.com)  Or just make a subdirectory with an index.htm file that redirects.

The general scheme sounds promising, but you won't want to "Make this page visible only to special users." or one would already have to be logged in to see the login page.  You'll just have to stick with the unlinked URL.

_________________
¡Pura Vida!
Ray,
joomla in testing at Costa Rica Travel: http://costaricamap.net
http://costa-rica-guide.com


Top
 Profile  
 
PostPosted: Sun Dec 04, 2005 7:51 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Aug 19, 2005 5:13 pm
Posts: 92
There is a really neat trick you could also implement -which i was informed of when i had a similar question-  if you like it:

You can see it in action at http://www.jasonmurphy.net/
(Locate just above main menu the vague circle and press on it. It will display a loginform on the left)

The How to is here:
http://www.troozers.com/joomla!/howto/h ... n_box.html


Top
 Profile  
 
PostPosted: Thu Dec 22, 2005 6:47 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Sun Aug 28, 2005 11:23 am
Posts: 958
Location: New York
pages wrote:
There is a really neat trick you could also implement -which i was informed of when i had a similar question-  if you like it:

You can see it in action at http://www.jasonmurphy.net/
(Locate just above main menu the vague circle and press on it. It will display a loginform on the left)

The How to is here:
http://www.troozers.com/joomla!/howto/h ... n_box.html




thanks for that :)

others may find the following useful in implementing this...

troozers snippet of code for the javascript that goes in the head area of the index.php does not include the javascript script tags in it, what worked for me was:

Code:
<script language="javascript">
function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
  if(document.layers)  // NN4
  {
    document.layers[szDivID].visibility = iState ? "show" : "hide";
  }
  else if(document.getElementById) // gecko(NN6) + IE5+
  {
    var obj = document.getElementById(szDivID);
    obj.style.visibility = iState ? "visible" : "hidden";
  }
  else if(document.all) //IE 4
  {
    document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
  }
}
</script>


Last edited by rw1 on Thu Dec 22, 2005 6:49 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Mon Aug 21, 2006 6:17 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Jun 29, 2006 7:31 pm
Posts: 96
Was looking for something like this.  Realize this thread is really old but I was looking for something like this and came across it so maybe someone else can use it.

I found a way to get rsphaeroides way of working by publishing the existing login.  When i assigned it to none it didn't work for me.  However, When I set it to unassigned it works as he was describing.

So I can go to http://www.yoursite.com/index.php?optio ... ogin&nbsp; and then go to my other pages and I am logged in.  To log out simply go back to this page(I bookmarked it) and you can click logout.

Like the hidden button.  Will have to look at implementing that later. 


Top
 Profile  
 
PostPosted: Sat Mar 03, 2007 9:20 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sat Oct 01, 2005 7:28 pm
Posts: 137
Again, I realise this is a fairly old thread, but I've been grappling with this a little (which is how I found it!). So it may be worthwhile recording my solution here.

I have the login form published, public, but unassigned.

User menu is published to Registered, and includes logout.

Unregistered users do not see anything to do with login or logout.

Registered users are told to go to (siteurl/)index.php?option=com_login

Once logged in, they see their User Menu, which includes Logout, i.e. the menu item is linked to the Login component, but is labelled Logout.

If a user selects logout, the user menu disappears.


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



Who is online

Users browsing this forum: No registered users and 3 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