alt=
MONEE
@monee
11 years ago
36 posts
I want to add the log in form on the front page. I can't find a template with the log in form in it. What is the easy way to include this on a page?
updated by @monee: 01/31/14 02:56:41AM
douglas
@douglas
11 years ago
2,787 posts
This is a stripped down code for the login form... you will need to style it to fit your needs.

                {jrCore_form_create_session module="jrUser" option="new" assign="token"}
                <form enctype="multipart/form-data" accept-charset="utf-8" method="post" action="{$jamroom_url}/user/login_save" name="jrUser_login" id="jrUser_login" class="jrform">
                    <input type="hidden" value="{$token}" name="jr_html_form_token" id="jr_html_form_token">
                    <input type="hidden" value="off" name="user_remember">

                    <input type="button" onclick="window.location='{$jamroom_url}/user/forgot'" value="Forgot Login?" name="forgot" class="form_button" id="forgot">
                    <div class="page_notice_drop" colspan="2"><div class="page_notice form_notice" id="jrUser_login_msg"></div></div>
                    <a id="ff-user_email_or_name"></a>user login
                    <input type="text" tabindex="1" value="" name="user_email_or_name" class="form_text" id="user_email_or_name">
                    <a id="ff-user_password"></a>password
                    <input type="password" onkeypress="if (event &amp;&amp; event.keyCode == 13 &amp;&amp; this.value.length &gt; 0) { jrFormSubmit('#jrUser_login','{$token}','ajax'); }" tabindex="2" value="" name="user_password" class="form_text" id="user_password">
                    <a id="ff-user_remember"></a>remember login
                    <input type="checkbox" checked="checked" tabindex="3" name="user_remember" class="form_checkbox" id="user_remember">
                    <div class="form_submit_section">
                        <img width="24" height="24" alt="working..." src="http://douglas.jamroomnetwork.com/skins/jrNova/img/submit.gif" id="form_submit_indicator"><input type="button" onclick="jrFormSubmit('#jrUser_login','{$token}','ajax');" tabindex="3" value="login" class="form_button" id="jrUser_login_submit">&nbsp;&nbsp;<input type="button" onclick="jrCore_window_location('{$jamroom_url}')" value="cancel" class="form_button" id="jrUser_login_cancel">
                    </div>
                </form>

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 12/29/13 09:51:26AM
douglas
@douglas
11 years ago
2,787 posts
Note sure why the code is being stripped, if you'll send me an email, douglas[at]jamroom[dot]net, I'll send you the code via email.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
MAD
MAD
@madc
11 years ago
600 posts
If he quotes your post with the missing code above @douglas the code shows up in the post box below.


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
michael
@michael
11 years ago
7,713 posts
I'm guessing the code douglas had in that box was the same stuff that is on this page:

"HowTo: add the user login form to any page"
https://www.jamroom.net/the-jamroom-network/documentation/howto/603/howto-add-the-user-login-form-to-any-pagehowto-add-the-user-login-form-to-any-page
douglas
@douglas
11 years ago
2,787 posts
michael:
I'm guessing the code douglas had in that box was the same stuff that is on this page:

"HowTo: add the user login form to any page"
https://www.jamroom.net/the-jamroom-network/documentation/howto/603/howto-add-the-user-login-form-to-any-pagehowto-add-the-user-login-form-to-any-page

Yes, pretty much the same code. ;)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos