11
earplane
Re: Localhost problem
  • 2006/3/22 18:24

  • earplane

  • Just popping in

  • Posts: 35

  • Since: 2002/10/1


PROBLEM SOLVED!!!!!!!!!!

I went to the mainfile.php and switched the XOOPS_DB_PCONNECT flag from 0 to 1.

OK, back in business, thanks for helping, and I even learnt some new xoopscode. One question:

le="color: #000000"><?php $uid = 10; $member_handler =& xoops_gethandler('member'); $user =& $member_handler->getUser($uid); $uname = $user->getVar('uname');

... is more code to write than...
le="color: #000000"><?php $uid = 10; $user = new XoopsUser($uid); $uname = $user->getVar('uname');

... but should I do it anyway? Does the latter way put a heavier load on the server?

12
m0nty
Re: Localhost problem
  • 2006/3/22 18:36

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


was just about to say try persistant connections in mainfile.. but you figured it out :)

with regards to the username..

you could always use this too (i think) >

le="color: #000000"><?php $member_handler = xoops_gethandler("member"); $uname = xoops_getLinkedUnameFromId(intval($member_handler->getUser($uid)));