Hi, I've implemented this idea, which works great:
/* Gamer tag */ function parseUserInfo_user_custombd($av){ if($av!='') return '<a href="http://live.xbox.com/member/'.trim($av).'" title="'.$av.' on xbox.com"><img src="http://www.glop.org/gamercard/card/'.trim($av).'-forum.png" title="'.$av.' on xbox.com" alt="'.$av.'" /></a>'; else return '{$posterName}'; } /* -- Gamer tag */
I replaced:
<span class="username">{posterName}</span>
for:
<span class="username">{$userInfo_user_custombd[$poster_id]}</span>
within main_posts_cell.html
I was hoping that the following code used above, "else return '{$posterName}';", would generate the posterName if the poster did not register, but it doesn't.
I would like to use this so for the one forum that does not require registration, so it would show 'Guest' or 'Nickname' as poster name instead of the gamertag. All other forums require registration and so there is no concern.
How come this doesn't seem to work? Is it because the above function is only called for registered users?
Kind regards for this small and seemingly irrelevant request,
Marius |