1
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.