Ok
On vb 2.2.9 once applying Sho updated version of the hack, I am now getting a blank page returned when trying to access usercp.php
Here is a snippet of the code from there regarding the required changes:
Change #1
PHP Code:
// Leave Away Message in Profile (v1.2a) (Start Code Replaced)
// Here is the original :
// $sql="SELECT userid,username,invisible,usertitle,lastactivity,lastvisit
// FROM user
// WHERE (user.userid='$buddyuserssql')
// ORDER BY username";
// Here is its replacement :
$sql="SELECT userid,username,invisible,usertitle,away,lastactivity,lastvisit
FROM user
WHERE (user.userid='$buddyuserssql')
ORDER BY username";
// Leave Away Message in Profile (v1.2a) (End Code Replaced)
Change #2
PHP Code:
// Leave Away Message in Profile (v1.2a) (Start Code Replaced)
// Here is the original :
// if ($buddy['lastactivity'] > $datecut and (!$buddy['invisible'] or $bbuserinfo['usergroupid'] == 6) and $buddy['lastvisit'] != $buddy['lastactivity']) {
// {
// $onoff="on";
// } else {
// $onoff="off";
// Here is its replacement :
if ($buddy[away]=="1") {
$onoff="away";
} else {
if ($buddy['lastactivity'] > $datecut and (!$buddy['invisible'] or $bbuserinfo['usergroupid'] == 6) and $buddy['lastvisit'] != $buddy['lastactivity']) {
$onoff="on";
} else {
$onoff="off";
}
}
// Leave Away Message in Profile (v1.2a) (End Code Replaced)
Any help with getting this sorted would be greatly appreciated.