Support Forums

User Registration Fields problems

This is a discussion on User Registration Fields problems within the v3.1 Questions & Support forums, part of the Legacy Help & Support category; Hi all of you, I need help again. I got two problems. Firstly, I set the "User Registration Field 3" ...


Go Back   68 Classifieds Forums > Archives > Legacy Help & Support > v3.1 Questions & Support

Reply
 
Thread Tools Display Modes
Old 01-16-2007, 07:14 AM   #1
Junior Member
 
Join Date: Jan 2007
Posts: 16
Rep Power: 12
sleepylok is on a distinguished road
Default User Registration Fields problems

Hi all of you, I need help again.

I got two problems.

Firstly, I set the "User Registration Field 3" to be "Bio" of member.
and then I replaced the input type "single text line" to "textarea" in userjoin.tpl.php & useraccountmodify.tpl.php like this.

{if $dis_extra3=="Y"}
<tr>
<td class="formleft">{if $req_extra3=="Y"}<span class='required'>{$smarty.const.LANG_STAR}</span>{/if}{$extra3_text}{$smarty.const.LANG_COLON}</td>
<td class="formright"><textarea name="extra3" id="extra3" value="{$extra3}" cols="27" rows="5" /></textarea></td>
</tr>
{/if}

After this, I found the server did not save the data anymore, every time I go back to useraccountmodify.tpl.php, the field of "Bio" is empty.

Secondly, if I input a long bio, it breaks the layout, You can visit my site, and then you may understand what confused me.

http://www.pixelbread.com/shop/viewmember.php?member=2

I have no idea how to fix it in member.tpl.php.
Can anyone give me some suggestion? Thank you so much.

Here is my member.tpl.php.

<table class="tableborder">
<tr>
<th colspan="2">{$username}</th>
</tr>
{if $sImage<>""}
<tr>
<td colspan="2"><img src="photos/{$sImage}" />
</tr>
{/if}
</table><div width="300"><table>
{if $uDisName=="Y"}
<tr>
<td class="formleft">{$smarty.const.LANG_FULL_NAME}{$s marty.const.LANG_COLON}</td>
<td class="formright">{$fullname}</td>
</tr>
{/if}
{if $uDisEmail=="Y"}
<tr>
<td class="formleft">{$smarty.const.LANG_USER_EMAIL}{$ smarty.const.LANG_COLON}</td>
<td class="formright">{$email}</td>
</tr>
{/if}
{if $uDisAddress=="Y"}
<tr>
<td class="formleft">{$smarty.const.LANG_ADDRESS}{$sma rty.const.LANG_COLON}</td>
<td class="formright">{$address}</td>
</tr>
{/if}
{if $uDisCity=="Y"}
<tr>
<td class="formleft">{$smarty.const.LANG_CITY}{$smarty .const.LANG_COLON}</td>
<td class="formright">{$city}</td>
</tr>
{/if}
{if $uDisState=="Y"}
<tr>
<td class="formleft">{$smarty.const.LANG_STATE}{$smart y.const.LANG_COLON}</td>
<td class="formright">{$state}</td>
</tr>
{/if}
{if $uDisZip=="Y"}
<tr>
<td class="formleft">{$smarty.const.LANG_ZIP}{$smarty. const.LANG_COLON}</td>
<td class="formright">{$zip}</td>
</tr>
{/if}
{if $uDisCountry=="Y"}
<tr>
<td class="formleft">{$smarty.const.LANG_COUNTRY}{$sma rty.const.LANG_COLON}</td>
<td class="formright">{$country}</td>
</tr>
{/if}
{if $uDisPhone=="Y"}
<tr>
<td class="formleft">{$smarty.const.LANG_PHONE}{$smart y.const.LANG_COLON}</td>
<td class="formright">{$phone}</td>
</tr>
{/if}
{if $uDisExtra=="Y" && $extra<>""}
<tr>
<td class="formleft">{$extraText}{$smarty.const.LANG_C OLON}</td>
<td class="formright">{$extra}</td>
</tr>
{/if}
{if $uDisExtra2=="Y" && $extra2<>""}
<tr>
<td class="formleft">{$extra2Text}{$smarty.const.LANG_ COLON}</td>
<td class="formright"><a href="{$extra2}">{$extra2}</a></td>
</tr>
{/if}
{if $uDisExtra3=="Y" && $extra3<>""}
<tr>
<td class="formleft">{$extra3Text}{$smarty.const.LANG_ COLON}</td>
<td width="80%" class="formright">{$extra3}</td>
</tr>{/if}
</table></div><table class="tableborder">
<tr><td colspan="5" height="30px"></td></tr>
<tr><td colspan="5">{assign var="rating" value=$smarty.const.FILESYSTEM_PATH}
{include file="$rating/modules/member_rating/templates/member_rating.tpl.php"}</td></tr>
<tr><td colspan="5" height="20px"></td></tr><tr>
<td colspan="5"><img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/folder.gif" width="16" height="16" /><a href="javascript:history.back();">{$smarty.const.L ANG_BACK_TO_LISTING}</a></td>
</tr>
<tr>
<td colspan="5"><img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/folder.gif" width="16" height="16" /><a href="searchresults.php?owner={$member}">{$smarty. const.LANG_SEE_ALL_ADS}</a></td>
</tr>
</table>
sleepylok is offline   Reply With Quote
Old 01-16-2007, 01:02 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,104
Rep Power: 120
Eric Barnes is a jewel in the rough
Default

For the first portion it looks your html is wrong. You have:
Code:
<textarea name="extra3" id="extra3" value="{$extra3}" cols="27" rows="5" /></textarea>
Which should be:
Code:
<textarea name="extra3" id="extra3" cols="27" rows="5">{$extra3}</textarea>
The second part I didn't really see anything wrong and when I visited that link I didn't see a bio.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 01-16-2007, 01:39 PM   #3
Junior Member
 
Join Date: Jan 2007
Posts: 16
Rep Power: 12
sleepylok is on a distinguished road
Default

Oh sorry, please visit again.
http://www.pixelbread.com/shop/viewmember.php?member=2

and the first problem is solved, thanks Eric.
sleepylok is offline   Reply With Quote
Old 01-16-2007, 01:54 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,104
Rep Power: 120
Eric Barnes is a jewel in the rough
Default

For the second issue you can use smarty's built in functions.
Code:
{$extra3|wordwrap:30:"<br />\n"}
But since what you have entered doesn't have any spaces I am not sure if that would work or not.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Extra user registration info BigOrange v3.1 Questions & Support 4 03-06-2007 06:47 PM
##sitetitle## in 'New User Registration Email' frommarcq v3.1 Modules & Modifications 4 11-09-2006 11:58 AM
User Registration Options BigOrange v3.1 Modules & Modifications 5 10-25-2006 03:24 PM
New User Registration e-mail missing in 3.1.x fjarabeck v3.1 Questions & Support 2 05-25-2006 04:28 PM


All times are GMT -4. The time now is 05:52 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0