Quote:
Originally Posted by tnguy3n
Open you plugin,
FIND:
PHP Code:
$sender = "Forum Bot"; // rename it to whatever you like
$senderid = 1; // userid
$pm_title = "You have been given $score rep point.";
$pm_content = $vbulletin->userinfo['username'] . " has just given you $score reputation point for your post.\n\rKeep up good work!\n\r";
if($score < 0)
{
$pm_content = $vbulletin->userinfo['username'] . " has disagreed with your post of yours\n\rYou may need to investigate the reason.\n\r";
}
CHANGE TO::
PHP Code:
$sender = "$vbulletin->userinfo['username']"; // rename it to whatever you like
$senderid = $vbulletin->userinfo['userid']; // userid
$pm_title = "You have been given $score rep point.";
$pm_content = $vbulletin->userinfo['username'] . " has just given you $score reputation point for your post.\n\rKeep up good work!\n\r";
if($score < 0)
{
$pm_content = $vbulletin->userinfo['username'] . " has disagreed with your post of yours\n\rYou may need to investigate the reason.\n\r";
}
dont forget to change your pm content.
|
I get this as the username when a member gives a rep. This shows up as the sender of the pm:
Array['username']
Any idea?