trouble with custom fields…
Posted: 17 December 2009 05:42 PM   [ Ignore ]
Newbie
Rank
Total Posts:  17
Joined  2008-10-24

I am trying to use some custom member fields like: zip_code, cell_phone, etc.

I have followed the directions listed here: http://www.solspace.com/docs/detail/user_edit_profile/#custom_member_field

Some example code would be

{exp:user:edit}
<h2 class="profile_name">{username}</h2><img src="{photo_url}{photo_filename}" width="{photo_width}" height="{photo_height}" class="profile_pic" />
 
<
p>Zip Code<input name="zip_code" value="{zip_code}" /></p>
 
<
p>Email <input name="email" value="{email}" /></p>
<
p>Username <input name="username" value="{username}" /></p>

<
p>Birthday <input name="bday_d" value="{bday_d}" size="2" /> <input name="bday_m" value="{bday_m}" size="2" /> <input name="bday_y" value="{bday_y}" size="4" /></p>


<
p>Upload a New Photo: <input type="file" name="photo_filename" /></p>
<
p><input type="submit" value="Submit" /></p>
 
 
<
p><input type="submit" value="Submit" /></p>
 
{/exp:user:edit} 

Whenever I hit “submit” whatever I have input just gets replaced by {zip_code}

Any ideas?

Profile
 
 
Posted: 17 December 2009 09:58 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRank
Total Posts:  345
Joined  2009-10-27

Good evening!

Thank you for contacting us. Someone will help you with this shortly.

 Signature 
Profile
 
 
Posted: 18 December 2009 09:01 AM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8266
Joined  2006-10-18
jasonisaacs - 17 December 2009 05:42 PM
<p>Zip Code<input name="zip_code" value="{zip_code}" /></p


Whenever I hit “submit” whatever I have input just gets replaced by {zip_code}

I’m not sure what you mean Jason…
Are you saying that the zip_code field wont update itself to the new value? smile

 Signature 
Profile
 
 
Posted: 18 December 2009 09:46 AM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  17
Joined  2008-10-24

that’s exactly what I’m saying. Any thoughts?

Profile
 
 
Posted: 18 December 2009 10:24 AM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8266
Joined  2006-10-18

Do you have caching on for that template or any other User templates?

 Signature 
Profile
 
 
Posted: 18 December 2009 11:22 AM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  17
Joined  2008-10-24

Not that I know of should I (if so where do I change that?)

Thanks

Profile
 
 
Posted: 18 December 2009 11:46 PM   [ Ignore ]   [ # 6 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8266
Joined  2006-10-18

No, you shouldn’t have caching on for any templates like this…

Is there more to your code than what you’ve posted? If so, can you post all of it? smile

 Signature 
Profile
 
 
Posted: 19 December 2009 10:27 AM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  17
Joined  2008-10-24

Here is the whole page template for you:

{embed="embeds/html_header"}

<body>

<
div class="wrapper">
    <
div class="left_sidebar">
        <
div class="logo">
            <
a href=""><img src="http://localhost:8888/liveloud/images/site/logo.png" alt="" border="" /></a>
        </
div>
        
        <
div class="clear"></div>
    </
div>
    
    <
div class="content">
        
{exp:user:edit}
<h2 class="profile_name">{username}</h2><img src="{photo_url}{photo_filename}" width="{photo_width}" height="{photo_height}" class="profile_pic" />
 
<
p>Address<input name="zip_code" value="{zip_code}" /></p>
 
<
p>Email <input name="email" value="{email}" /></p>
<
p>Username <input name="username" value="{username}" /></p>

<
p>Birthday <input name="bday_d" value="{bday_d}" size="2" /> <input name="bday_m" value="{bday_m}" size="2" /> <input name="bday_y" value="{bday_y}" size="4" /></p>


<
p>Upload a New Photo: <input type="file" name="photo_filename" /></p>
<
p><input type="submit" value="Submit" /></p>
 
 
<
p><input type="submit" value="Submit" /></p>
 
{/exp:user:edit} 
        
    
</div>
    
    
</
div>
    

</
body>
</
html
Profile
 
 
Posted: 21 December 2009 02:54 PM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8266
Joined  2006-10-18

Are you accessing this template/page with a member ID or username in the URI? smile

 Signature 
Profile
 
 
Posted: 02 February 2010 05:29 PM   [ Ignore ]   [ # 9 ]
Newbie
Rank
Total Posts:  17
Joined  2008-10-24

Sorry for the long layoff, I forgot about the forum.

I’m using Member ID, and it’s still not working.

I’m trying to pull “cell_phone” and “zip_code”. Maybe you could give me some code that you KNOW is correct and I can try that in my template?

Jason

Profile
 
 
Posted: 03 February 2010 02:12 PM   [ Ignore ]   [ # 10 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  8266
Joined  2006-10-18

Well, something like “location” should work:

<p>Location: <input name="location" value="{location}" /></p
 Signature 
Profile