How can I know the username inside includes/bbcode.php?

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
craigpierce
Registered User
Posts: 70
Joined: Fri Nov 25, 2005 11:14 pm

How can I know the username inside includes/bbcode.php?

Post by craigpierce » Wed Feb 21, 2007 6:15 pm

Hi - another easy question...

Inside the file includes/bbcode.php, how can I know the current user's username?

Thx in advance!

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Post by RMcGirr83 » Wed Feb 21, 2007 6:21 pm

$userdata['username']
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Joe Belmaati
Registered User
Posts: 2110
Joined: Sun Sep 28, 2003 7:35 pm
Location: Denmark

Post by Joe Belmaati » Wed Feb 21, 2007 6:26 pm

Remember to add

Code: Select all

global $userdata;
at the top of the function you are mod'ing.
Image

craigpierce
Registered User
Posts: 70
Joined: Fri Nov 25, 2005 11:14 pm

Post by craigpierce » Wed Feb 21, 2007 6:27 pm

Joe Belmaati wrote: Remember to add

Code: Select all

global $userdata;
at the top of the function you are mod'ing.


perfect - thank you!!!!

Post Reply

Return to “[2.0.x] MOD Writers Discussion”