Log in

View Full Version : Show $username in a post


Dave Alcock
09-22-2006, 09:43 AM
Is there a way to pull the viewer's username and substitute it in a post.

I've tried use custom bbcodes - but it doesn't pull the username.

My attempt:

<span>{param} $bbuserinfo[username]</span>

which if I go Dear I get:

Dear $bbuserinfo[username]

What am I doing wrong?

The idea would be to get a similar result in a post that you get when using $username in the email users feature from the admin panel.

So if $username="Dave"

Dear $username, the reader will see Dear Dave,

bashy
09-22-2006, 11:42 AM
Have you not thought about the /you hack?

Dave Alcock
09-22-2006, 01:08 PM
Sounds good - got a link to the hack?

I've done a search but can't find it.

bashy
09-22-2006, 01:42 PM
Sorry, I have tried to search and go through the many hacks but i cannot fin it, it does not help when the word "you" is only 3 letters and the search wont do 3 letter searches :(

I know its there i have used it myself!!

Ntfu2
09-22-2006, 02:24 PM
look for the Gag Threads hack

https://vborg.vbsupport.ru/showthread.php?t=123337&highlight=Gag+Threads

bashy
09-22-2006, 02:27 PM
Thanks Ntfu2 appreciated :)

Dave Alcock
09-22-2006, 07:22 PM
Thanks - just what I was looking for!!