registration / login form
Posted: 18 October 2006 08:55 PM   [ Ignore ]  
Summer Student
Total Posts:  30
Joined  08-29-2006

i notice this featured site has done up its own registration form with the site’s look/feel and even additional fields such as gender and income
http://www.applematters.com/index.php/member/register/

i read earlier that the EE membersip registration form is not a typical EE weblog
does it mean that much hacking to the codes + database is needed to achieve what they did?

what if i only need to change the front-end of the registration/login forms - how do i do that?

thanks

Profile
 
 
Posted: 19 October 2006 02:43 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
RankRankRank
Total Posts:  547
Joined  01-05-2005

The custom fields are easily added:

http://expressionengine.com/docs/modules/member/custom_profile_data.html

You can give your member templates the same look and feel as your frontend simply by altering the member profile templates:

http://expressionengine.com/docs/cp/admin/members_and_groups/member_profile_templates.html

If by look and feel you also mean certain functionality (like adding latest articles in a side bar like they have done) then it is possible, but I don’t think this method is recommended by pMachine as there is a performance hit by running the member templates through the regular EE template engine. 

Anyway, if you’re happy with that, this is how.

Go to Admin > Members and Groups > Membership Preferences.

Change the “Profile Triggering Word” to something else (I change it to something no one would guess).

Then go back to the Templates tab and create a new template group called ‘member’.

In the index template within this group add.


{exp:member:manager}

{content}

{
/exp:member:manager}

In the last site I’ve just finished I went into the member profile templates and deleted the content from HTML Header and HTML Footer.  This means I can have more control in the member/index template.  So you could end up with something like:

{exp:member:manager}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<
head>
    <
title>{page_title}</title>

</
head>

<
body>

<
div id="container">

{embed="includes/masthead"}

<div id="content">

<
div id="main-content">

{content}

</div>

<
div id="sub-content">

<
ul>
{exp:weblog:entries weblog="news"}
<li>{title}</li>
{/exp:weblog:entries}
</ul>

</
div>

</
div>

{embed="includes/footer"}

</div>

</
body>
</
html>
{/exp:member:manager}

Hope that gets you started.

Make sure you make a copy of the default folder in themes/profile_themes/ and rename it.  That way you can modify the templates as much as you like and still revert back if needed.

 Signature 

Celebrating again soon.

Profile
 
 
Posted: 20 October 2006 02:10 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  30
Joined  08-29-2006
smallbeer - 19 October 2006 02:43 AM

Hope that gets you started.

Make sure you make a copy of the default folder in themes/profile_themes/ and rename it.  That way you can modify the templates as much as you like and still revert back if needed.

thanks smallbeer, this really helps!

Profile
 
 
Posted: 25 October 2006 10:11 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

hi,

i didt as you guys explained and it works fine there is only one small problem.
I give along my language to each url i do this like this www.host.Be/index.php/template_group/nl or www.host.be/index.php/template_group/en.

What have i done?
i renamed the member to a name nobody can guess. Then i have created a template group called member and inserted the tags needed.
All this works fine becouse now the forms are shown in my site structure.
But when i call the forms and add my lang i get a error about invalid uri.
Is there a way to fix this?

Thanks in advance,

Profile
 
 
Posted: 26 October 2006 06:19 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

Hello all,

Does anybody know the solution for this problem? Any help is very much appreciated because this is blocking me allot.

Thanks allot,

Profile
 
 
Posted: 26 October 2006 06:36 AM   [ Ignore ]   [ # 5 ]  
Research Assistant
RankRankRank
Total Posts:  547
Joined  01-05-2005

Hi,

I take it it’s only the registration page you’re having problems with?  once the user is logged in you can output strings in different languages using EE’s built in features and the user’s preferences.  And there is a standalone login form which you can place elsewhere - http://expressionengine.com/docs/modules/member/login_form.html

I’ll have a think about the registration page and get back to you.

 Signature 

Celebrating again soon.

Profile
 
 
Posted: 26 October 2006 06:48 AM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

Hey thanks allot for the fast answer smile

Just to be clear my real problem is that i must be able to do www.host.be/index.php/member/login/en or www.host.be/index.php/member/login/nl if do that i get an error invalid URI. I need this because else i loose the current selected language. And secondly i must be able to switch to the right language when a user wants to register.

Well exactly this only seems to be a problem on the member parts that have forms. By this i mean login, registration, forgot_password, etc..
It works when i go the the memberlist, member/5/, etc…

I hope there is a solution because else i loose my current selected language and i have to change my whole system which i obviously don’t want smile

Thanks again and looking forward to your solution if anybody else has one please dont hesitate to share it smile

Greetings,

Profile
 
 
Posted: 27 October 2006 08:45 AM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

Hey sorry to bring this topic back up again. But i still didnt found a solution. does a member of the expression engine team wants to look at this please?

It must be something doable i think.. or i will have to find a work arround.

Greetings kevin,

Profile
 
 
Posted: 27 October 2006 09:57 AM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32850
Joined  05-14-2004

It requires a hack -see eewiki: Segments in Member Templates. I’m not sure that this will do what you want but it was the first thing that I thought of.

 Signature 
Profile
MSG
 
 
Posted: 27 October 2006 10:20 AM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

hey lisa smile

We meet again (sorry for the massive questions… but its blocking me allot and cant find the solution) smile
The solution you are describing is the next step i must do. But for now all i want to do is give an extra segment example : www.host.be/index.php/member/login/en but when i do this it gives me a blank page and says Invalid Page Request.

This must be done before all i want to do is integrate the forms in my website structure and keep my language in the url. And then the second step will be to translate all the field descriptions. If this is not possible then i’am real stuck because the whole site has to be multi lingual.

Greetings,

Profile
 
 
Posted: 27 October 2006 11:41 AM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32850
Joined  05-14-2004

Ok, I chatted with Derek about this.  The member profile templates use segments in very particular ways in order to know what to display and what member it is applied to, hence the problem that you are running into.

Logged in members can set their localization, and you can do translations or utilise prior-translated language packs for that.  However your problem is those not-yet-logged-in or registering. 

There is no out-of-the-box solution to that predicament, it’s possible that it could be done with an extension but I haven’t seen one that handles this yet, so you’d need to code it or hire a professional to do the custom work for you.

 Signature 
Profile
MSG
 
 
Posted: 27 October 2006 02:24 PM   [ Ignore ]   [ # 11 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  224
Joined  04-28-2006

Hey,

Right i code for a living so that shouldnt be a problem smile the only problem is where to start maybe you guys can point it out where i have to look and what needs to be changed. Or how to handle this.

Some directions would be more then welcome… programming the php should not be a problem the problem is where or what to change smile

Greetings kevin,

*EDIT*

Iam continuing this topic http://expressionengine.com/forums/viewthread/39925/  here hope somebody can help smile

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 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64878 Total Logged-in Users: 62
Total Topics: 81805 Total Anonymous Users: 39
Total Replies: 439759 Total Guests: 296
Total Posts: 521564    
Members ( View Memberlist )
Newest Members:  pticketdxrsmdanbilly8hrkiliwysso50kexpressoKlaasdarrenstylestravelerjcaton