|
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
|
|
|
|
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. Nifty thing for Martyn to do though (he's the one that did that).
|
|
|
|
Yeah It simplifies the line 1%
|
|
|
|
|
Yeah It simplifies the line 1% How did you grab the username?
|
|
|
|
Something like this.
var username = (aTD[2].innerHTML.match(/Hey, (.+?),/i)?RegExp.$1:false);
|
|
|
|
|
But we don't have to grab it as of now since there is a default variable for it now.
|
|
|
|
|
I know Kenshin. I'm saying, that's how I did it before.
|
|
|
|
|
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";
|
|
|
|
Whatever. I meant displayname.
|
|
|
|
|
Hmmm... looks like that changed it to pb_username and pb_displayname but the displayname is blank if you view the source >.<
|
|
|
|
I thought that was just me cause I have []
|
|
|
|
|
XD Well it's fixed now, I guess martyn saw it or something idk...
|
|
|
|
|
Heh, makes life easier. Doesn't it Moose?
|
|
|
|
|
So bascially.. we can just do something like this stuff.innerHTML= "hi "+current_username+"" right?
|
|
|
|