PDA

View Full Version : Quick question


DWZ
03-26-2003, 07:37 AM
Hey everyone,

I've been planing on using FireFly's Reader's name inside post (https://vborg.vbsupport.ru/showthread.php?s=&threadid=49810) hack for April Fools on my users.

Now I wanted to make a small edit to it which I asked in the thread but didn't get any response, which is fine, I can understand that no one cares much for that hack.

I was just hopeing someone could look over my code.

now the thing is, I only want this hack to work for one user. So, I was thinking I could replace this: $replacewords=array(0 => "$bbuserinfo[username]");with this: $replacewords=array(0 => iif($bbuserinfo['userid']==xxxx,"$bbuserinfo[username]",'=bbusername='));(I'm using Zaphod's edit to use =bbusername= (https://vborg.vbsupport.ru/showthread.php?postid=229465#post229465))

Any idea if that could work?

Thanks :)

Chris Gwynne
03-26-2003, 08:11 AM
If you only want it to work for ONE user, then why not just put in his/her name instead lol....

DWZ
03-26-2003, 09:39 AM
No, I mean that I only want one user to be able to use the =bbusername= command.

i.e. when this special member does it, it works as it normaly would, whoever reads it sees their own nickname.

However, if anyone else tries to do it, it won't work, it will just display =bbusername=

mr e
03-26-2003, 03:34 PM
use $post[username] instead

DWZ
03-26-2003, 07:06 PM
Today at 03:34 AM mr e said this in Post #4 (https://vborg.vbsupport.ru/showthread.php?postid=373640#post373640)
use $post[username] instead huh? wouldn't that come up with the posters username?

DWZ
03-27-2003, 09:07 PM
No one knows? I thought it would be fairly easy question...

mr e
03-27-2003, 09:24 PM
no i meant like this

$replacewords=array(0 => iif($post['userid']==xxxx,"$bbuserinfo[username]",'=bbusername='));


even though i used the userid just now, which is probably better