PDA

View Full Version : Username Changed based on forum


|Jordan|
07-28-2006, 11:22 PM
When a user posts in a specific forum, all posts made by them are under a different username. The username must not already be in use by another member.

Eg. On my forums, i have a section for a guild. My username i use in the game is different than the one i have on my forums. I do not want to confuse the people in the guild, but also do not want to register a new account just to post in that forum.

I need this for VB 3.0.x

Is something like this possible?

RS_Jelle
07-29-2006, 12:11 PM
Just add a new custom profile field for the guild nickname. Then open the postbit template and do the following change:

FIND
$post[musername]
REPLACE WITH
<if condition="$thread[forumid] == 9">$post[field6]<else />$post[musername]</if>

Ofcourse you have to change the forum id (9) and field number (6) to the correct ones :)

|Jordan|
07-29-2006, 06:21 PM
Sweet.

You're The Best.

How would this be modified to include the username's and currently active user's of the specific forum?