Author Topic: Additional User Profile Fields  (Read 7039 times)

0 Members and 1 Guest are viewing this topic.

Offline artique

  • Pre-Newbie
  • Posts: 2
    • View Profile
Additional User Profile Fields
« on: July 09, 2006, 03:13:29 PM »
Hi  !!!, help please!!

Does anyone know of a module for adding additional user fields to user profiles  such as address, telephone, gallery name, contacts, or does anyone have the code to do this.

Thanks ,

Artique

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline skidpics

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Additional User Profile Fields
« Reply #2 on: October 09, 2007, 02:50:10 AM »
1. http://www.4homepages.de/forum/index.php?action=search;advanced
2. http://www.4homepages.de/forum/index.php?topic=10164.msg49642#msg49642
3. ...

Honestly, the search returns not much of anything about this issue..  just  bunch of threads with instructions to search.  The second link, however, might be more useful, but I do not understand it. Does anyone have  good link to to resolve this issue?  I probably should be an additional feature added to the admin settings menu, for future use.  Can anyone shed some light on how to do this?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Additional User Profile Fields
« Reply #3 on: October 10, 2007, 12:36:06 AM »
Ok so here how is work:

// Step 1

In includes/db_field_definitions.php file,

add on top of ?>:

For textbox:

Code: [Select]
$additional_user_fields['your_field'] = array($lang['your_field'], "text", 1); // Set 0 for no require field.

For radio:

Code: [Select]
$additional_user_fields['your_field'] = array($lang['your_field'], "radio", 1); // Set 0 for no require field.

// Step 2

In lang/your_lang/main.php file,

add on top of ?>:

Code: [Select]
$lang['your_field'] = "Your field name";

// Step 3

Use tags in member_profile, member_editprofile and member_uploadform.html file:

{lang_your_field_name} and {your_field_name} and can use with IF and ENDIF tags. ;)

Note: Change all your_field with your real field name.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline skidpics

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Additional User Profile Fields
« Reply #4 on: October 16, 2007, 07:31:43 AM »
How can you make it to ask during registration? 


Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Additional User Profile Fields
« Reply #5 on: October 16, 2007, 01:24:36 PM »
Add the lang and field tag in your register_form.html file.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?