Please select To the mobile version | Continue to access the desktop computer version
| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 6041|Reply: 1
Collapse the left

can you me help wihte User extended costum information

[Copy link]
Post time: 2014-08-12 09:36
| Show all posts |Read mode
Zuletzt bearbeitet von Accessdenied um 2014-8-12 11:18

i´m go here mysql
  1. pre_common_member_profile
Copy the Code

make new in pre_common_member_profile
  1. CREATE TABLE dummy (
  2.     `field9` TEXT NOT NULL
  3. )
  4. CREATE TABLE dummy (
  5.     `field10` TEXT NOT NULL
  6. )
Copy the Code
script admincp_members.php
line 138
  1. p.yahoo,p.msn,p.taobao,p.site,p.bio,p.interest,p.field1,p.field2,p.field3,p.field4,p.field5,p.field6,p.field7,p.field8 FROM ".
  2. to
Copy the Code
add to p.field9,p.field10
  1. p.yahoo,p.msn,p.taobao,p.site,p.bio,p.interest,p.field1,p.field2,p.field3,p.field4,p.field5,p.field6,p.field7,p.field8,p.field9,p.field10 FROM ".
Copy the Code
and change
Line 1792
  1. $field['customable'] = preg_match('/^field[1-8]$/i', $fieldid);
Copy the Code
to
  1. $field['customable'] = preg_match('/^field[1-10]$/i', $fieldid);
Copy the Code

mysql pre_common_member_profile_setting
add
  1. ('field9', 0, 0, 0, 'Benutzerdefinierte Felder 9', '', 101, 0, 0, 0, 0, 0, 0, 'text', 0, '', ''),
  2. ('field10', 0, 0, 0, 'Benutzerdefinierte Felder 10', '', 102, 0, 0, 0, 0, 0, 0, 'text', 0, '', '');
Copy the Code
script spacecp_profile.php
line 350
  1. $allowitems = array('realname', 'gender', 'birthday', 'birthcity', 'residecity', 'residedist', 'affectivestatus', 'lookingfor', 'bloodtype', 'field1', 'field2', 'field3', 'field4', 'field5', 'field6', 'field7', 'field8',);
Copy the Code

to add , 'field9', 'field10

  1. $allowitems = array('realname', 'gender', 'birthday', 'birthcity', 'residecity', 'residedist', 'affectivestatus', 'lookingfor', 'bloodtype', 'field1', 'field2', 'field3', 'field4', 'field5', 'field6', 'field7', 'field8', 'field9', 'field10');
Copy the Code


then as you continue ?


 Russia

Post time: 2014-08-13 10:57
| Show all posts
make new in pre_common_member_profile

    CREATE TABLE dummy (
        `field9` TEXT NOT NULL
    )
    CREATE TABLE dummy (
        `field10` TEXT NOT NULL
    )

It is a mistake.
You must add extended fields into the pre_common_member_profile table.
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-03-29 10:07 GMT+3 , Processed in 0.038639 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list