PDA

View Full Version : getting userid and usergroupid in function_parsebbcode


Moya
02-06-2005, 05:21 PM
Hello All

Is it possible to get $bbuserinfo['userid'] and $bbuserinfo['usergroupid'] into a customized bbcode function?

I create a customized bbcode function called

functions_bbcodeparse_m_player.php

and put this line

require_once('./includes/functions_bbcodeparse_m_player.php');

into

function_bbcodeparse.php

and I have this line

$userid=$bbuserinfo['userid'];

in functions_bbcodeparse_m_player.php

For some reason I can never get the userid (forum viewer id) out of the system.

Would you please show me how to get this id

Thanks for reading my post

Marco van Herwaarden
02-06-2005, 06:08 PM
Just check out my Conditional BB-Code hack (see my sig).

Have a look at the [noguest] example.

But my guess is that you forget to use a "global $bbuserinfo;"

Moya
02-06-2005, 06:47 PM
Wow

Thanks MarcoH64,

I got it. You are right. I forgot the global statement.

Thanks