1
cman123
Q about Xmail ?
  • 2006/3/2 2:09

  • cman123

  • Just popping in

  • Posts: 3

  • Since: 2005/4/30


how to use "name" instead of "uname" at the option "Select the user, if you want" in the index.php?op=form ?

2
cman123
Re: Q about Xmail ?
  • 2006/3/4 15:29

  • cman123

  • Just popping in

  • Posts: 3

  • Since: 2005/4/30


I mean the code in the index.php like that:
------------------------------------------
// selecionar usuć««io
$userstart = isset($HTTP_GET_VARS['userstart']) ? intval($HTTP_GET_VARS['userstart']) : 0;
$member_handler =& xoops_gethandler('member');
$usercount = $member_handler->getUserCount();
$nav = new XoopsPageNav($usercount, 200, $userstart, "userstart", "op=form");
$user_select = new XoopsFormSelect('', "user_id",null,5,true);
$criteria = new CriteriaCompo();
$criteria->setSort('uname');
$criteria->setOrder('ASC');
$criteria->setLimit(200);
$criteria->setStart($userstart);
$user_select->addOption('0',"--------");
$user_select->addOptionArray($member_handler->getUserList($criteria));
$user_select_tray = new XoopsFormElementTray(_MD_XMAIL_SELUSER , "
");
$user_select_tray->addElement($user_select);
$user_select_nav = new XoopsFormLabel('', $nav->renderNav(4));
$user_select_tray->addElement($user_select_nav);
$sform->addElement($user_select_tray);
------------------------------------------
if I want the 'realname' show in the table(not 'uname'), which line should be changed?

3
Anonymous
Re: Q about Xmail ?
  • 2006/3/4 16:07

  • Anonymous

  • Posts: 0

  • Since:


code or crap?

Login

Who's Online

272 user(s) are online (176 user(s) are browsing Support Forums)


Members: 0


Guests: 272


more...

Donat-O-Meter

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

Latest GitHub Commits