Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

crazynarutard

crazynarutard Avatar

*****
Senior Studio Member

1,470


August 2005
pb_username
pb_displayname

Those are the 2 variables for the username and the displayname, the value is automatically set to "guest" when it's a guest.


Just in case someone didn't check it out on PBsupport ;)


Last Edit: Oct 28, 2005 21:03:20 GMT by crazynarutard

Bobby

Bobby Avatar

*
New Member

18


August 2005
crazyj said:
current_username
current_displayname

Those are the 2 variables for the username and the displayname, the value is automatically set to "guest" when it's a guest.


Just in case someone didn't check it out on PBsupport ;)

Aww, mine got no easier. :( I don't do any programming for ProBoards anymore. :P Nifty thing for Martyn to do though (he's the one that did that).

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Yeah :P It simplifies the line 1% :P

Nate

Nate Avatar

**
Official Member

85


July 2007
cddude229 said:
Yeah :P It simplifies the line 1% :P
How did you grab the username?

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Something like this.

var username = (aTD[2].innerHTML.match(/Hey, (.+?),/i)?RegExp.$1:false);

Sasuke

Sasuke Avatar

****
Senior Member

418


August 2005
But we don't have to grab it as of now since there is a default variable for it now.

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
I know Kenshin. I'm saying, that's how I did it before. :P

crazynarutard

crazynarutard Avatar

*****
Senior Studio Member

1,470


August 2005
cddude229 said:
Something like this.

var username = (aTD[2].innerHTML.match(/Hey, (.+?),/i)?RegExp.$1:false);

USERNAME!

var username = (document.cookie.match(/user=(\w+)/))?RegExp.$1:"guest";

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Whatever. :P I meant displayname.

hpmad

hpmad Avatar



858


September 2005
Hmmm... looks like that changed it to pb_username and pb_displayname but the displayname is blank if you view the source >.<

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
I thought that was just me cause I have [] O_o

hpmad

hpmad Avatar



858


September 2005
XD Well it's fixed now, I guess martyn saw it or something idk...

Moose

Moose Avatar

****
Senior Member

449


August 2005
Damn it. I wasted time coding Falcon with the old methods. :P
Greg says:
Coding music...
Greg says:
Hmm...
Greg says:
I wouldn't rule it out. :P
Chris 3.0 [New features? Yes.] says:
:P
Greg says:
If you think about machine code it's a bunch of 1s and 0s
Chris 3.0 [New features? Yes.] says:
Anything is possible.
Greg says:
Yeah try to code Metallica
Chris 3.0 [New features? Yes.] says:
:P Yeah, I'll get right on that... right after I learn to fly.

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Heh, makes life easier. Doesn't it Moose?

Team Studio

Team Studio Avatar

******
Administrator

120


June 2005
So bascially..

we can just do something like this

stuff.innerHTML= "hi "+current_username+""

right? ::)

newBookmarkLockedFalling