PDA

View Full Version : H.D.I. place username in Closed Message


Primal Rage
04-01-2005, 02:33 AM
When one turns off the board by setting the Forum Active ==> NO , there is an option for entering the reason. What i wanted it to do was for it to display the username of the person who is logged in and if not logged in to display guest.

Ie. for logged in user.

Dear Primal Rage, this forum is currently Closed.

Ie. Guest

Dear Guest, this forum is currently closed.

Is this possible ?? I tried using variables but it just won't work...

Thanx

Borgs8472
05-05-2005, 10:28 PM
mod the 'you' hack for this

N8
05-06-2005, 12:06 AM
This will work:

Dear $bbuserinfo[username], this forum is currently Closed.


$bbuserinfo[username] will output "Unregistered" to guests, so if you would prefer it to say "Dear Guest", put the following code:


<if condition="$bbuserinfo['userid']">
Dear $bbuserinfo[username], this forum is currently closed.

<else>
Dear Guest, the forum is currently closed.
</if>