+ Post New Thread
Results 1 to 13 of 13
Web Development Thread, Logon Box in Coding and Web Development; Might be a simple but might be not. Is there anyway of getting a log-on box on our schools joomla ...
  1. #1
    darbyshire's Avatar
    Join Date
    Nov 2007
    Location
    Wigan
    Posts
    75
    Thank Post
    14
    Thanked 2 Times in 2 Posts
    Rep Power
    14

    Logon Box

    Might be a simple but might be not.

    Is there anyway of getting a log-on box on our schools joomla webpage when when a user types in username and password it will send that request to the kaleidos webpage and log them in?

    Thanks
    Peter

  2. #2
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    Should be.... (could be a easier way but this is how I sorted a login space on my site.)

    using a extention that allows direct additions of html (without the pesky wysiwyg editor changing it) or putting it into your template index.php file.

    The way go to the kaleidos login page, and look at the source copy everything to do with forms out of it (the form tags & input tags), and then start chopping bits off until it works (could only need U/N, P/W... in cpanels case)

    It could be as simple as
    Code:
    <form action="https://portal/CookieAuth.dll?Logon" method="post" id="logonForm" autocomplete="no">
    u/n:<input class="txt" id="username" name="username" type="text" />
    p/w:<input class="txt" id="password" type="password" name="password" />
    <input class="btn" id="SubmitCreds" type="submit" value="Log On" name="SubmitCreds" /> 
    </form>
    Last edited by mossj; 15th July 2009 at 10:43 AM.

  3. Thanks to mossj from:

    darbyshire (15th July 2009)

  4. #3
    darbyshire's Avatar
    Join Date
    Nov 2007
    Location
    Wigan
    Posts
    75
    Thank Post
    14
    Thanked 2 Times in 2 Posts
    Rep Power
    14
    so when i have the code i want where do put this so it goes in a module on the right of my Joomla frontpage?


    EDIT :- I have just seen the code. Ill try it out
    Thanks

  5. #4
    darbyshire's Avatar
    Join Date
    Nov 2007
    Location
    Wigan
    Posts
    75
    Thank Post
    14
    Thanked 2 Times in 2 Posts
    Rep Power
    14
    I am when i change portal to http://www.klp.rm.com. I am getting:

    Unknown Request

    The request could not be resolved by the server.

    Thanks

  6. #5
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    try this in a html file
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    
    <body>
    <form action="https://www.klp.rm.com/CookieAuth.dll?Logon" method="post" id="logonForm" autocomplete="no">
    <input type="hidden" id="curl" name="curl" value="Z2F" />
    <input type="hidden" id="flags" name="flags" value="0" />
    <input type="hidden" id="forcedownlevel" name="forcedownlevel" value="0" />
    <input type="hidden" id="formdir" name="formdir" value="6" /> <br/><br/>
    
    Conenction Type: <input id="rdoPblc" type="radio" name="trusted" value="0" class="rdo" checked="checked" /><input id="rdoPrvt" type="radio" name="trusted" value="4" class="rdo"  /><br/><br/>
    Change Password: <input id="chpwd" name="chpwd" type="checkbox" class="rdo"  /><br/><br/>
    
    U/N:<input class="txt" id="username" name="username" type="text" /><br/>
    P/W:<input class="txt" id="password" type="password" name="password" /><br/><br/>
    
    
    <input class="btn" id="SubmitCreds" type="submit" value="Log On" name="SubmitCreds" />
    
    
    </body>
    </html>
    Once its working we can look at making it pretty and putting it in Joomla

  7. Thanks to mossj from:

    darbyshire (15th July 2009)

  8. #6
    darbyshire's Avatar
    Join Date
    Nov 2007
    Location
    Wigan
    Posts
    75
    Thank Post
    14
    Thanked 2 Times in 2 Posts
    Rep Power
    14
    That works perfectly

    Just now to make it look good. Thanks for all your help

  9. #7
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    
    <body>
    
    <form action="https://www.klp.rm.com/CookieAuth.dll?Logon" method="post" id="logonForm" autocomplete="no">
    <input type="hidden" id="curl" name="curl" value="Z2F" />
    <input type="hidden" id="flags" name="flags" value="0" />
    <input type="hidden" id="forcedownlevel" name="forcedownlevel" value="0" />
    <input type="hidden" id="formdir" name="formdir" value="6" /> <br/><br/>
    <table>
    <tr>
    <td align="right">Username:</td><td align="left"><input class="txt" id="username" name="username" type="text" /></td>
    </tr>
    <tr>
    <td align="right">Password:</td><td align="left"><input class="txt" id="password" type="password" name="password" /></td>
    </tr>
    <tr>
    <td>&nbsp;</td><td align="right"><input class="btn" id="SubmitCreds" type="submit" value="Log On" name="SubmitCreds" /></td>
    </tr>
    </table>
    
    
    
    
    </body>
    </html>
    Should still work and looks nicer, (I can't test it ) can you confirm?

  10. #8
    darbyshire's Avatar
    Join Date
    Nov 2007
    Location
    Wigan
    Posts
    75
    Thank Post
    14
    Thanked 2 Times in 2 Posts
    Rep Power
    14
    That works perefectly and got the way i want it. Just need to find out how to put it on the Module on the front page haha.

    Thanks

  11. #9
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    Use the plugin "Jincludes" and after install go to the plugin manager and click Jincludes (to configure it)

    Under "#1 Key" put "klalogin"
    under "#1 code" put
    Code:
    <form action="https://www.klp.rm.com/CookieAuth.dll?Logon" method="post" id="logonForm" autocomplete="no">
    <input type="hidden" id="curl" name="curl" value="Z2F" />
    <input type="hidden" id="flags" name="flags" value="0" />
    <input type="hidden" id="forcedownlevel" name="forcedownlevel" value="0" />
    <input type="hidden" id="formdir" name="formdir" value="6" /> <br/><br/>
    <table>
    <tr>
    <td align="right">Username:</td><td align="left"><input class="txt" id="username" name="username" type="text" /></td>
    </tr>
    <tr>
    <td align="right">Password:</td><td align="left"><input class="txt" id="password" type="password" name="password" /></td>
    </tr>
    <tr>
    <td>&nbsp;</td><td align="right"><input class="btn" id="SubmitCreds" type="submit" value="Log On" name="SubmitCreds" /></td>
    </tr>
    </table>
    or the code you want!

    After that enable the plugin and go to your module manager and create a new module with the "Custom HTML"

    then type "{{klalogin}}" in the edit html source editor.

    Position how you want and it should all work....

  12. Thanks to mossj from:

    darbyshire (16th July 2009)

  13. #10
    darbyshire's Avatar
    Join Date
    Nov 2007
    Location
    Wigan
    Posts
    75
    Thank Post
    14
    Thanked 2 Times in 2 Posts
    Rep Power
    14
    You have been a great help. Thank you very much.

  14. #11

    Join Date
    Dec 2010
    Location
    Middlesbrough
    Posts
    4
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hi I was trying to use this code but it doen't seem to be working for me,has anything change with joomla or RM's KLP login since it was written ?

  15. #12

    beeswax's Avatar
    Join Date
    Jul 2005
    Location
    England
    Posts
    2,285
    Thank Post
    285
    Thanked 225 Times in 153 Posts
    Rep Power
    131
    The problem may lie with FCK Editor in Joomla. I created a Moodle login on our front page, but first had to disable the editor. Login to the admin side of your website and go to Site>Global Configuration, and in Site Settings where it says Default WYSIWYG Editor, select Editor-No Editor. Once you have input your code and saved the changes you can then undo the changes you made to editor selection. HTH.

  16. #13

    Join Date
    Dec 2010
    Location
    Middlesbrough
    Posts
    4
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Great that worked, has anybody done a similar html code for RM easymail ?

SHARE:
+ Post New Thread

Similar Threads

  1. delay in showing interactive logon box?
    By Disease in forum Windows
    Replies: 2
    Last Post: 4th June 2009, 09:43 AM
  2. XP Logon box strange colours
    By bigb3n in forum Windows
    Replies: 13
    Last Post: 19th March 2009, 03:08 PM
  3. Pre Logon Box Mystery
    By jj99 in forum Windows
    Replies: 4
    Last Post: 15th October 2008, 09:46 AM
  4. Logon Box on main page
    By My220x in forum Comments and Suggestions
    Replies: 5
    Last Post: 27th February 2008, 01:54 PM
  5. Odd Problem with Logon Box (XP)
    By Gatt in forum Windows
    Replies: 11
    Last Post: 28th September 2007, 01:38 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •