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:

$uid 10;
$member_handler =& xoops_gethandler('member');
$user           =& $member_handler->getUser($uid);
$uname          =  $user->getVar('uname');

... is more code to write than...
$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) >

$member_handler xoops_gethandler("member");
$uname xoops_getLinkedUnameFromId(intval($member_handler->getUser($uid)));

Login

Who's Online

367 user(s) are online (278 user(s) are browsing Support Forums)


Members: 0


Guests: 367


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