1
status_tech
Edit User Profile Entries

HAPPY NEW YEARS!!!

What is the best way to go about changing the user profile entry option?
example: Website, I want to change to (Age) or ICQ to (Facebook)

xoops 2.3
MySql

File below was found in the main directory (userinfo.php)

if ( $thisUser->getVar('url', 'E') == '') {
$xoopsTpl->assign('user_websiteurl', '');
} else {
$xoopsTpl->assign('user_websiteurl', '<a href="'.$thisUser->getVar('url', 'E').'" rel="external">'.$thisUser->getVar('url').'</a>');
}
$xoopsTpl->assign('lang_email', _US_EMAIL);
$xoopsTpl->assign('lang_privmsg', _US_PM);
$xoopsTpl->assign('lang_icq', _US_ICQ);
$xoopsTpl->assign('user_icq', $thisUser->getVar('user_icq'));
$xoopsTpl->assign('lang_aim', _US_AIM);
$xoopsTpl->assign('user_aim', $thisUser->getVar('user_aim'));
$xoopsTpl->assign('lang_yim', _US_YIM);
$xoopsTpl->assign('user_yim', $thisUser->getVar('user_yim'));
$xoopsTpl->assign('lang_msnm', _US_MSNM);
$xoopsTpl->assign('user_msnm', $thisUser->getVar('user_msnm'));
$xoopsTpl->assign('lang_location', _US_LOCATION);
$xoopsTpl->assign('user_location', $thisUser->getVar('user_from'));
$xoopsTpl->assign('lang_occupation', _US_OCCUPATION);
$xoopsTpl->assign('user_occupation', $thisUser->getVar('user_occ'));
$xoopsTpl->assign('lang_interest', _US_INTEREST);
$xoopsTpl->assign('user_interest', $thisUser->getVar('user_intrest'));
$xoopsTpl->assign('lang_extrainfo', _US_EXTRAINFO);
$var = $thisUser->getVar('bio', 'N');
$xoopsTpl->assign('user_extrainfo', $myts->displayTarea( $var,0,1,1) );
$xoopsTpl->assign('lang_statistics', _US_STATISTICS);
$xoopsTpl->assign('lang_membersince', _US_MEMBERSINCE);
$var = $thisUser->getVar('user_regdate');
$xoopsTpl->assign('user_joindate', formatTimestamp( $var, 's' ) );
$xoopsTpl->assign('lang_rank', _US_RANK);
$xoopsTpl->assign('lang_posts', _US_POSTS);
$xoopsTpl->assign('lang_basicInfo', _US_BASICINFO);
$xoopsTpl->assign('lang_more', _US_MOREABOUT);
$xoopsTpl->assign('lang_myinfo', _US_MYINFO);

Thanks, and be safe tonight!

2
trabis
Re: Edit User Profile Entries
  • 2008/12/31 18:10

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


It may be enough to change language definitions.
Go to language/yourlanguage/user.php.

3
status_tech
Re: Edit User Profile Entries

Changing the language file does not change the value throught the site. So far I've found 5 files that have _ICQ in them. Which I'm trying to change Xfire. I'm getting a blank entry when I do this like there is still more files looking for the ICQ line.


Does anyone know of a simple way to change this entry or where I may find other files that need to be changed?


/public_html/userinfo.php

/public_html/language/english/user.php

/public_html/modules/system/admin/users/main.php

/public_html/modules/system/admin/users/userform.php

/public_html/modules/system/admin/users/users.php

The list above are the files I've found so far.

Thanks again!

4
trabis
Re: Edit User Profile Entries
  • 2009/1/4 9:27

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

trabis wrote:
It may be enough to change language definitions.
Go to language/yourlanguage/user.php.


You should have a line like
define('_US_ICQ','ICQ');

Change it to
define('_US_ICQ','Facebook');

5
ghia
Re: Edit User Profile Entries
  • 2009/1/4 11:12

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


The text definition changes have to be done in:
/language/yourlanguages/user.php
/language/yourlanguages/findusers.php
/modules/system/language/yourlanguages/admin/user.php
/modules/system/language/yourlanguages/admin/findusers.php
Then adapt the image and link in
/class/xoopscomments.php
If Facebook has a different format than ICQ, you need also to modify the format specifier for the getVar of user_icq in
/modules/system/admin/users/users.php
/kernel/user.php


Login

Who's Online

114 user(s) are online (80 user(s) are browsing Support Forums)


Members: 0


Guests: 114


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