•  

Forum

Moderated by:
Forum Index
Support
     General
     Extract User Info from opn Database

Author Printer friendly pageExtract User Info from opn Database
cdpanic

Joined: October 01, 2004
Posts: 5
From: miami


Send private message to cdpanic Visit website from cdpanic
Extract User Info from opn Database

Posted: 2004-11-04 20:34

I am looking for a way to insert the current user's name in a phpBox form(which manipulates a database). I'm sure I'll figure it out eventually, but if anyone has any suggestions...


What is the php code to produce the uid for the current user?


let me know if I haven't made my question clear.
thanks in advance.
chris


Quote Printer friendly page upwards
xweber
Joined: April 14, 2003
Posts: 135


Send private message to xweber Visit website from xweber
Extract User Info from opn Database

Posted: 2004-11-04 23:12

You can get informations regarding the current user with:

$ui = $opnConfig['permission']->GetUserinfo();
$ui is an array with lots of information. Test is with:
echo print_array($ui);
and you will see the detail

You may also want to check if the current user is logged in:

$opnConfig['opnOption']['user_login']
it is "false" if the user is not logged in.

Alex


Quote Printer friendly page upwards
cdpanic

Joined: October 01, 2004
Posts: 5
From: miami


Send private message to cdpanic Visit website from cdpanic
Extract User Info from opn Database

Posted: 2004-11-05 03:06

thanks for the quick response. Works like a charm


Quote Printer friendly page upwards
xweber
Joined: April 14, 2003
Posts: 135


Send private message to xweber Visit website from xweber
Posted: 2004-11-05 10:36

Let's have a look - which url?

Alex


Quote Printer friendly page upwards
cdpanic

Joined: October 01, 2004
Posts: 5
From: miami


Send private message to cdpanic Visit website from cdpanic
Extract User Info from opn Database

Posted: 2004-11-05 22:16

URL not in production yet. I'll report back when it goes live. The site is a US public high school band site for a very low-income neighborhood. We have absolutely no budget for web dev, and we just lucked out that I found this great cms. Thanks to everyone for their hard work, and thanks to the great production staff for the amazing support!!


Quote Printer friendly page upwards
sort by

Previous thread:  Messenger
Next Thread:  OPN Support Chat

Jump To:

Nickname:
 
Security Code
Security Code
reload

 
Page took 0.07531 seconds to load