$replacementvars trouble in functions.php
I'm trying to make a hack where you can have ALL info of a user show to another member, there own info. Here's what I got working so far...
$replacementvars['/\(username\)/i'] = $bbuserinfo['username'];
$replacementvars['/8395621/i'] = $bbuserinfo['userid'];
$replacementvars['/65510/i'] = $bbuserinfo['postcount'];
$replacementvars['/63956/i'] = $bbuserinfo['reputation'];
$replacementvars['/65,516/i'] = $bbuserinfo['posts'];
$replacementvars['/\(usertitle101\)/i'] = $bbuserinfo['usertitle'];
But
$replacementvars['/Jan 1996/i'] = $bbuserinfo['joindate'];
$replacementvars['/avatar8395621\_1.gif/i'] = $bbuserinfo['avatarurl'];
$replacementvars['/\_1/i'] = $bbuserinfo['avatar'];
$replacementvars['/330/i'] = $bbuserinfo['reputationpower'];
$replacementvars['/\(signature101\)/i'] = $bbuserinfo['signature'];
isn't working. When loged in as another member, the vBulletin code doesn't work on signitures, the join date shows up as 987879600, Reputation Power shows nothing, and the avatar shows a broken image.
What do I change to get them to give the user his/her own info and show a correct signiture? I'm guessing $bbuserinfo needs to be something else.
|