login on site

General project discussion. NOT for help questions.
Post Reply
RobMan
Forum Members
Forum Members
Posts: 13
Joined: Sat Mar 29, 2008 1:55 pm

login on site

Post by RobMan »

I know it is possible to login to CMSMS by going to http://website.com/admin/login.php

Is it possible to put some kind of loginmodule on the website thus an editor can login through the website and not having to enter a (for some people) difficult url.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: login on site

Post by calguy1000 »

why not just put a link to the admin site on your page.

i.e: Admin
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
RobMan
Forum Members
Forum Members
Posts: 13
Joined: Sat Mar 29, 2008 1:55 pm

Re: login on site

Post by RobMan »

Indeed, didn't think of it yet.

But for the design of the site it would be nicer to have some sort of loginbox with username and password. Though, if it isn't easy to make I won't do it..
RobMan
Forum Members
Forum Members
Posts: 13
Joined: Sat Mar 29, 2008 1:55 pm

Re: login on site

Post by RobMan »

I could extract this from the loginpage of CMSMS:

Code: Select all

<form method="post" action="login.php">
<input name="username" class="defaultfocus" type="text" size="15" value="" />
<br />
<input class="lbpassword" name="password" type="password" size="15" />
<br />
<input class="lbsubmit" name="loginsubmit" type="submit" value="Verstuur" />
<input class="lbsubmit" name="logincancel" type="submit" value="Annuleren" />
Could I past this code on my website?
My best guess is that the action which points to login.php should be edited because login.php isn't at the same location relatively speaking to the 'loginform'.

But does this work (if I could get the location of login.php right)? Does anyone know?
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: login on site

Post by Nullig »

Try it and let us know.



Nullig
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: login on site

Post by Nullig »

Well, I just tried it, and it worked.

I added a GCB called admin_login with the following code:

Code: Select all

<strong>Admin Login</strong><br />
<form method="post" action="admin/login.php">
<input name="username" class="defaultfocus" type="text" size="15" value="" />
<br />
<input class="lbpassword" name="password" type="password" size="15" />
<br />
<input class="lbsubmit" name="loginsubmit" type="submit" value="Submit" />
<input class="lbsubmit" name="logincancel" type="submit" value="Cancel" />
</form>
and I added:

Code: Select all

{global_content name='admin_login'}
to the sidebar.

Nullig
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am

Re: login on site

Post by pixelita »

Wow. I'll have to use that ... maybe. But I just want my clients to be able to login to their backend so I put the link at the bottom and use a • or ¤ to mark it so it's unobtrusive.  A honking login box (unless you  have a lot of folks needing to login to the back end) invites hackery, IMHO.  :)
Submit your site to the We Love CMSMS showcase
RobMan
Forum Members
Forum Members
Posts: 13
Joined: Sat Mar 29, 2008 1:55 pm

Re: login on site

Post by RobMan »

@pixelita It could invite hackers though on the site i'm working isn't very much of their interest and besides ... a loginbox on my website does look way more professional than the seperate, standard, loginpage of CMSMS
Last edited by RobMan on Thu Apr 03, 2008 11:54 am, edited 1 time in total.
RobMan
Forum Members
Forum Members
Posts: 13
Joined: Sat Mar 29, 2008 1:55 pm

Re: login on site

Post by RobMan »

@nullig

I think I get what you mean.
If I'm right you suggest I could make a CMSMStag from the code you mentioned above it.
Right?
I tried and it works :)

BTW. so does the HTML code alone (without CMSMStag)

Thank you all guys!
Last edited by RobMan on Thu Apr 03, 2008 11:54 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: login on site

Post by Dr.CSS »

Login box added here, lower left...

http://multiintech.com/
ericob

Re: login on site

Post by ericob »

Just to note an opinion here...

For the websites that *I* imagine building, I would NEVER want a "log-on" link to be publicly visible.

This Is Not a Wiki.  There might be a handful of people who can log on.  EVERYBODY else (tens, or hundreds, or thousands?) of viewers should never be exposed to the information that you can "log on."
cubix
Power Poster
Power Poster
Posts: 314
Joined: Mon Jul 09, 2007 10:00 am

Re: login on site

Post by cubix »

teach your clients to make a bookmark or create a shortcut on their computer
Post Reply

Return to “General Discussion”