1
damjam
Modification to IM's in User Profile
  • 2004/8/9 2:27

  • damjam

  • Just popping in

  • Posts: 63

  • Since: 2004/3/30


I'm running XOOPS 2.0.5.2. Scroll to the bottom for the question.

I tried the following modifications to the four IM fields - ICQ, AIM, YIM, MSNM - to create a more personalized user profile. I followed the instructions, changing the field names to suit my needs, modified the field lengths and maximum characters to 50,500 and changed the corresponding database fields to "text" fields to accomodate the extra data.

Original post:

Quote:
I have edited the files serving the user pages. Rather than going through and recoding, I have tried to keep it simple by changing the use of existing fields (ICQ, AIM etc) which were beyond the needs on my site. I have amended the following:

1. In ../language/english/user.php change

define('_US_ICQ','Organisation');
define('_US_AIM','Department');
define('_US_YIM','Address');
define('_US_MSNM','City');
define('_US_LOCATION','County');
define('_US_OCCUPATION','Post Code');
define('_US_INTEREST','Phone');

2. In ../modules/system/language/english/admin
users.php
findusers.php

change
define("_AM_ICQ","Organisation");
define("_AM_AIM","Department");
define("_AM_YIM","Address");
define("_AM_MSNM","City");
define("_AM_LOCATION","County");
define("_AM_OCCUPATION","Postcode");
define("_AM_INTEREST","Phone");

3. In ../user.php

define('_US_ICQ','Organisation');
define('_US_AIM','Department');
define('_US_YIM','Address');
define('_US_MSNM','City');
define('_US_LOCATION','County');
define('_US_OCCUPATION','Post Code');
define('_US_INTEREST','Phone');

4. In ../edituser.php

Find
if ($op == 'editprofile') {

About 23 lines after this, a line begins $icq_text
From (and including) that line, change the first and second number in brackets to increase the size of the text box appearing for users (I have used 40, 100 as default for all).

5. In MySQL, in xoops_users edit the field size to 100 (or whatever you set at maximum in 4 above) for ICQ, AIM, YIM etc. that you have amended (to allow for more text to be entered)

There you go - it is rough and ready but it does the job for registration and is already linked into the core XOOPS system.


Not mentioned in the instructions is the file ../modules/system/admin/users/userform.php which also sets these same field sizes. I made my 50,500 changes there too.

I found that in Item 3 of the instructions the file ../user.php DOES NOT define these field names so I disregarded Item 3.

I got good results except that the character maximums didn't change, i.e. ICQ was still 15 characters, AIM was still 18 characters, etc. I was unable to find any other files that control these field lengths.

Can anyone tell me where else these field sizes are being controlled?

Thanks very much for any help.

2
CeBepuH
Re: Modification to IM's in User Profile
  • 2004/8/9 6:52

  • CeBepuH

  • Not too shy to talk

  • Posts: 128

  • Since: 2002/6/10


take a look at /kernel/user.php

3
damjam
Re: Modification to IM's in User Profile
  • 2004/8/10 12:31

  • damjam

  • Just popping in

  • Posts: 63

  • Since: 2004/3/30


Thanks CeBepuH. That did the trick.

4
wilbury
Re: Modification to IM's in User Profile
  • 2006/4/13 21:46

  • wilbury

  • Just popping in

  • Posts: 13

  • Since: 2004/3/2 2


Hi
I did the same modification...but how can i put this fields into the registration form?

Login

Who's Online

242 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 242


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits