Community Support Forums — WordPress® ( Users Helping Users ) — 2011-05-01T11:17:39-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6256 2011-05-01T11:17:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6256&p=13907#p13907 <![CDATA[Re: Login and Register on the main page?]]> http://digiscrapcampus.com/main
(on the bottom right)

Now, just to figure out how to get the logging out process a bit "nicer" (right now, it asks me to confirm that i want to log out and redirects me to the login screen, while i would prefer to send the user back to the main page).Since HE worked on it, i will direct him to this thread, instead of messing with it myself (one person at the time, unless i use a second test site - yeah!)

Statistics: Posted by cassel — May 1st, 2011, 11:17 am


]]>
2011-05-01T11:12:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6256&p=13906#p13906 <![CDATA[Re: Login and Register on the main page?]]>
cassel wrote:
but ... i am not getting it to work correctly yet:
- although i know i have the right username and password (because i can do it in the OTHER sidebar login), it does not seem to do anything
Want to have a look at it? If this worked, it would be a great combo with s2Member since i dont want members to navigate too far from the page they are on!


This code should work (though it might not look right as it needs to be styled). Try this code on a test page and see if you lets you login to your site.

I got this code off your site by going to http://digiscrapcampus.com/main/wp-login.php and right-clicking "view source" then I grabbed the form off the page.

Code:
<form name="loginform" id="loginform" action="http://digiscrapcampus.com/main/wp-login.php" method="post">
   <p>
      <label>Username *<br />
      <input type="text" name="log" id="user_login" class="input" value="" size="20" tabindex="10" /></label>

   </p>
   <p>
      <label>Password *<br />
      <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
   </p>
   <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> Remember Me</label></p>
   <p class="submit">

      <input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="Log In" tabindex="100" />
      <input type="hidden" name="redirect_to" value="http://digiscrapcampus.com/main/wp-admin/" />
      <input type="hidden" name="testcookie" value="1" />
   </p>
</form>



I'd also recommend changing this

Code:
http://digiscrapcampus.com/main/wp-admin/


to this, which will take users to your homepage instead of the Wordpress Dashboard after login.

Code:
http://digiscrapcampus.com/main/

Statistics: Posted by theone — May 1st, 2011, 11:12 am


]]>
2011-05-01T11:00:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6256&p=13905#p13905 <![CDATA[Re: Login and Register on the main page?]]>
cassel wrote:
Theone, i tried your coding, and somehow, i get a tiny SUBMIT button with no text on it. Is there something missing in the code?


On the submit button, do you see how it says....

Code:
value=""


These empty quotations will cause the button NOT to display any text. Add the word submit in these quotes and it will display that. I use a background image instead of text for my button but you can do whatever you want.

You can style each of the form inputs by adding the following which will reference to your CSS file where you can style it accordingly.

Code:
class="submit_button"


Your CSS might then look something like this. So your telling the input to reference the "class" submit_button.

Code:
.sumbit_button {width:200px; height:30px; background:black;text-align:center;font-family:Arial; font-size:12px;color:white}


So this would then be what your submit button code might look like. (Notice how we added class="submit_button").

Code:
<input type="submit" name="wp-submit" id="wp-submit" class="submit_button" value="SUBMIT" tabindex="100" />


Hopefully, that will point you in the right direction.

Statistics: Posted by theone — May 1st, 2011, 11:00 am


]]>
2011-04-30T17:22:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6256&p=13892#p13892 <![CDATA[Re: Login and Register on the main page?]]>
I feel i am getting a bit closer to what i want.
- I am able to redirect to the same page i would have using the setting in s2Member
- i am able to incorporate the fun buttons i made (Cristian, they are based on the link i gave in another thread about Paypal buttons)
- i am able to add some other features (like the extra ebook mention with registration)
- so i am getting a good FEEL of that look!

but ... i am not getting it to work correctly yet:
- although i know i have the right username and password (because i can do it in the OTHER sidebar login), it does not seem to do anything
Want to have a look at it? If this worked, it would be a great combo with s2Member since i dont want members to navigate too far from the page they are on!

The test site is here: http://digiscrapcampus.com/main
The top "login box" is from the MailChimp code and just some additional buttons, but it does send the member to a separate page (which i am trying to avoid)
The sidebar login plugin is the second on the right side: it does stay on the page, and is very basic, but i am having a problem with the look of it, possibly needing some coding that i dont know of (or there is a conflict with the Headway theme)
The bottom login side bar on the right is from your code, which i edited a bit (it LOOKS great so far, just not working correctly)

Statistics: Posted by cassel — April 30th, 2011, 5:22 pm


]]>
2011-04-30T17:00:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6256&p=13891#p13891 <![CDATA[Re: Login and Register on the main page?]]> Statistics: Posted by cassel — April 30th, 2011, 5:00 pm


]]>
2011-04-30T15:19:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6256&p=13887#p13887 <![CDATA[Re: Login and Register on the main page?]]>
I'm not sure what the capabilities are in regards to styling with the plugin. I tried it out and it didn't do what I needed so I went with the aforementioned method which works perfectly for me as it can be adjusted as needed.

Statistics: Posted by theone — April 30th, 2011, 3:19 pm


]]>
2011-04-30T15:12:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6256&p=13886#p13886 <![CDATA[Re: Login and Register on the main page?]]> :)

Statistics: Posted by cassel — April 30th, 2011, 3:12 pm


]]>
2011-04-30T15:02:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6256&p=13885#p13885 <![CDATA[Re: Login and Register on the main page?]]>
I have a login form on my homepage (which isn't even part of my Wordpress installation). I just copied the rendered code from wp-login.php, styled it accordingly, and then inserted it into my index.php page.

My code looks something like this. As long as the form is pointing to the right address (and your input ID are correct) it will work on any website.

(ie. I could put a login form to MY website on YOUR homepage).

Code:
<form name="loginform" id="loginform" action="http://www.mydomain.com/members/wp-login.php" method="post">
   <p>
      <label>Username *<br />
      <input type="text" name="log" id="user_login" class="input" value="admin" size="20" tabindex="10" /></label>

   </p>
   <p>
      <label>Password *<br />
      <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
   </p>
   <div class="remember-me"></div>
   <p class="submit">
      <input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="" tabindex="100" />

      <input type="hidden" name="redirect_to" value="http://www.mydomain.com/members" />
      <input type="hidden" name="testcookie" value="1" />
   </p>
</form>

Statistics: Posted by theone — April 30th, 2011, 3:02 pm


]]>
2011-04-30T13:32:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6256&p=13883#p13883 <![CDATA[Re: Login and Register on the main page?]]>

Statistics: Posted by Cristián Lávaque — April 30th, 2011, 1:32 pm


]]>
2011-04-30T13:02:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6256&p=13880#p13880 <![CDATA[Re: Login and Register on the main page?]]> Statistics: Posted by cassel — April 30th, 2011, 1:02 pm


]]>
2011-04-30T12:54:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6256&p=13878#p13878 <![CDATA[Re: Login and Register on the main page?]]> WP Admin -> Appearance -> Widgets

The Pro Login Widget can also be included using PHP. WP Admin -> s2Member -> API / Scripting -> Pro Login Widget via PHP

If you don't have Pro, you can also try this free plugin http://wordpress.org/extend/plugins/sidebar-login/

I hope that helps. :)

Statistics: Posted by Cristián Lávaque — April 30th, 2011, 12:54 pm


]]>
2011-04-30T08:59:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6256&p=13872#p13872 <![CDATA[Login and Register on the main page?]]>
As i am using Headway Theme, i would LOVE to be able to put a "smaller version" of the login/register page into a side leaf, in plain view of the visitor.

Is it possible?

Statistics: Posted by cassel — April 30th, 2011, 8:59 am


]]>