Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
Login Issues
Posted: 15 February 2007 01:21 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  263
Joined  2005-12-21

I realize not many people reply to these things any longer, but I really hope someone can help me with this.

I’m setting up a new web site with PM Pro 2.4.  I would like, instead of a “log In” link, to have the login boxes (i.e. Screenname and Password fields) right on the page.

I currently have something like the following on the front page:

<input name="MemberName" type="text" class="formbox" id="MemberName" size="20" maxlength="16">


<
input name="PassWord" type="password" class="formbox" id="PassWord" size="20" maxlength="16">

One is for the Member ID field, and the other for a password.  Now, how do I connect that to pMachine?

There must be a way for me to take the pMachine

<?php member_login_form(); ?>

, and place it directly on any page I wish, right?

 Signature 

EE v. 1.6.6

Profile
 
 
Posted: 15 February 2007 05:45 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12231
Joined  2002-04-29

Not exactly. You can turn off secure forms then take the resulting login code and put it on the main page or where ever you want it.

All you’d do is a view source of the login page and use that.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
 
 
Posted: 15 February 2007 11:40 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  263
Joined  2005-12-21

Thank you SO much for your quick response.  I did get it to work, after playing around with the code.  It was tough because, after turning off the secure forms, I copied and pasted the code on the home page.  However, clicking the submit button would then send me to the login page…  So, I did get it resolved after playing with the code for a while.  And thanks again!

Now, my other, and hopefully final question -

After I enter my User ID and Pass on the front page and click “submit”, I’m directed to another page that says something like “You have successfully logged in!  Click this link to return to *name_of_web_site*“.

Is there a way to bypass that page?  All I want people to do is log in, and the page refreshes, and they’re logged in.  That way, if a user is somewhere other than the homepage, they don’t have to start from the beginning afte logging in.  Make sense?  Ultimately, I want a user to be able to log in on ANY page, and have that user stay on that page after submitting login info. without being directed to a “successful login” page with a link back to the homepage.  I know this can be done, because other sites use this…

I would probably have to go into the backend files.  I’m pretty familiar with pMachine Pro, and know where to find these things.  All I would need guidance in is the actual coding that would make that function go away.

Any ideas?  I’m still hopeful that someone knows enough about this.  smile

 Signature 

EE v. 1.6.6

Profile
 
 
Posted: 16 February 2007 05:54 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12231
Joined  2002-04-29

Is there a way to bypass that page?  All I want people to do is log in, and the page refreshes, and they’re logged in.  That way, if a user is somewhere other than the homepage, they don’t have to start from the beginning afte logging in.  Make sense?  Ultimately, I want a user to be able to log in on ANY page, and have that user stay on that page after submitting login info. without being directed to a “successful login” page with a link back to the homepage.  I know this can be done, because other sites use this…

Other pMachine site? I vaguely remember attempting to do this with some sort of Javascript stuff. Again, this was 3 or more years ago. As far as support for how to do this, I’m just a former user of the product. I don’t hack it any more. And trust me, I hacked it a LOT in the day.

As far as the member login code goes, you’d have to write your own function to do this. Base it off of the original login code and go from there.

You’re sure you don’t want to use EE?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
 
 
Posted: 16 February 2007 11:25 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  263
Joined  2005-12-21

Thanks again for the reply.  No, I didn’t see it an another pMachine site.

I actually would like to use EE, but once I downloaded the “core” version and looked through it, I felt reluctant because I had no idea how it all worked together and how the pages were set up.  I’m so used to how pMachine functions, and I really do not have the time to re-design my entire site to work with EE.  There are WAY too many pages with coding that I don’t want to re-do.

Thanks again!

 Signature 

EE v. 1.6.6

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 64434 Total Logged-in Users: 0
Total Topics: 80888 Total Anonymous Users: 0
Total Replies: 435382 Total Guests: 17
Total Posts: 516270    
Members ( View Memberlist )
Newest Members:  jstewMizoBobbyBDan HessMateus SouzagiusiMolideverbeeldingnana2007soundseller
Active Members: