Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - halobender

Pages: [1]
1
Mods & Plugins (Requests & Discussions) / Re: Problem Adding Extra Fields
« on: October 14, 2005, 12:19:14 AM »
I've tried that, but it won't save the information I put into the field (I just know for a fact there's something wrong with this code, but I don't know how to fix it). Here is what I am typing in my member_editprofile.html file:

Code: [Select]
<td class="row2"><b>{lang_user_bio}</b></td>
<td class="row2"><TEXTAREA name="user_bio" cols="23" rows="5" value="{user_bio}" class="input" /></textarea></td>



EDIT: It won't show the bio text after I type it in the field and submit it, but when I click on my profile from the main gallery page, the information is there in my profile. Weird. My setting for this field in my database is VARCHAR(255).

2
Mods & Plugins (Requests & Discussions) / Re: Problem Adding Extra Fields
« on: October 13, 2005, 11:46:44 PM »
Thanks very much! That got things working. :D


One other small thing: how do I resize an input field to make it taller (this is for the bio information a user can enter in their control panel, which can contain up to 255 characters) and make it so that the field has an option for a scrollbar (if necessary). Does that need a special TEXTAREA tag/setting in my database?

3
Mods & Plugins (Requests & Discussions) / Problem Adding Extra Fields
« on: October 13, 2005, 05:45:50 AM »
Hi,

I have been trying to add additional fields to the user profile; I have managed to get the fields to show up in the control panel, but the information I type into them will not save. (For example, I am trying to insert a field where a user can type a small bio about themselves. I enter the text, click Save in my control panel, but the info does not show up.) There are so many things that might need adjusting, and I need help.


I HAVE... added the directory to my database:
Code: [Select]
4images_users -> user_bio  tinyint(1) notnull  default 0
I HAVE... modified my /includes/db_field_definitions.php to include this field:
Code: [Select]
if (!defined('ROOT_PATH')) {
  die("Security violation");
$additional_user_fields['user_bio'] = array($lang['user_bio'], "text", 0);

I have made sure that there are no spaces after ?>

I HAVE... modified my /templates/custom/member_edit.html file:
Code: [Select]
          <tr>
    <td class="row2"><b>{lang_bio}</b></td>
<td class="row2"><input type="text" name="user_bio"  size="30" value="{user_bio}" class="input" /></td>

</tr>

I HAVE... edited my /templates/custom/register_form.html file:
Code: [Select]
<tr>
    <td class="row1"><b>{lang_user_bio}</b></td>
<td class="row1"><input type="text" name="user_bio" size="30" class="input" value="{user_bio}" /></td>
</tr>

I HAVE... edited my /lang/english/main.php file:
Code: [Select]
//--- Users ------------------------------------------- (...) $lang['bio'] = "Bio:";
I HAVE... edited my /templates/custom/member_profile.html file:
Code: [Select]
<tr>
    <td class="row2"><b>{user_bio}</b></td>
<td class="row2">{user_bio} </td>
</tr>



It's very confusing, editing all of these files. I do not know what is going wrong, so I do not know what I need to fix. Please help. Does anyone know what I might be doing wrong? I will answer all questions asked (maybe not immediately) but I will.

Thanks so much

Pages: [1]