News:

Join the Facebook Fan Page.

Main Menu

Profiles

Started by madmanrulez, May 06, 2004, 07:27:52 AM

Previous topic - Next topic

madmanrulez

I have read unknown's tut on this,

I wanted to make the users enter a few more fields when they join, so i added input field in the registration.temp.php and made it display at profile. but the thing is some how i can't link them 2 together, i can however make the link between the profile setting and the profile summary however........thnx.

[Unknown]

If you use the same name.... options in register and default_options in profile... it will work fine.

-[Unknown]

madmanrulez

not sure how, but this is wat i have now: In register.template.php
</tr><tr>
<td width="40%">
<b>Real&nbsp;Name:</b><br />
</td>
<td><input type="text" name="default_options[realname]" size="20" value="', isset($context['member']['default_options']['realname']) ? $context['member']['default_options']['realname'] : '', '" /></td>


in profile.template.php
</tr><tr>
<td><b>Real&nbsp;Name:</b></td>
<td>', isset($context['member']['options']['realname']) ? $context['member']['options']['realname'] : '', '</td>

and
</tr><tr>
<td width="40%"><b>Real&nbsp;Name:</b></td>
<td><input type="text" name="default_options[realname]" size="20" value="', isset($context['member']['options']['realname']) ? $context['member']['options']['realname'] : '', '" /></td>

[Unknown]

Register template:
</tr><tr>
<td width="40%">
<b>Real Name:</b><br />
</td>
<td><input type="text" name="options[realname]" size="20" value="" /></td>


Profile template: (summary sub template)
</tr><tr>
<td><b>Real Name:</b></td>
<td>', isset($context['member']['options']['realname']) ? $context['member']['options']['realname'] : '', '</td>


Profile template, where ever you want it:
</tr><tr>
<td><b>Real Name:</b></td>
<td><input type="text" name="default_options[realname]" size="20" value="', isset($context['member']['options']['realname']) ? $context['member']['options']['realname'] : '', '" /></td>


-[Unknown]

Advertisement: