login on site
login on site
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.
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.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: login on site
why not just put a link to the admin site on your page.
i.e: Admin
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.
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.
Re: login on site
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..
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..
Re: login on site
I could extract this from the loginpage of CMSMS:
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?
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" />
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?
Re: login on site
Try it and let us know.
Nullig
Nullig
Re: login on site
Well, I just tried it, and it worked.
I added a GCB called admin_login with the following code:
and I added:
to the sidebar.
Nullig
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>
Code: Select all
{global_content name='admin_login'}
Nullig
Re: login on site
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
Re: login on site
@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.
Re: login on site
@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!
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.
Re: login on site
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."
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."
Re: login on site
teach your clients to make a bookmark or create a shortcut on their computer