I installed myInfo mod but it didn't work!
Eventually I discovered down why myInfo MOD wasn't working.
It takes a parameter from viewtopic.php and passes it to myInfo.php for parsing - only the parameter ($myInfo_user_id) wasn't getting passed on.
So I tried making it global by putting it in a function (function zb()) in viewtopic.php:
function zb()
{
global $myInfo_user_id;
}
// Start - myInfo MOD - ErDrRon
$myInfo_user_id = $postrow[$i]['poster_id'];
// My First Function - Zvi Bar - End
$temp_url = "javascript:window.open('includes/myInfo.php?p=$myInfo_user_id','_myInfo','width=500,height=300,resizable=yes');void(0);";
$myInfo_img = '<a href="' . $temp_url . '"><img src="' . $images['myInfo'] . '" alt="' . $lang['myInfo'] . '" title="' . $lang['myInfo'] . '" border="0" /></a>';
// End - myInfo MOD - ErDrRon
and then calling it in myInfo.php:
zb();
$p = $myInfo_user_id;
$sql = "SELECT username, user_info FROM " . USERS_TABLE . " WHERE user_id = '$p'";where the function is zb() and the variable is '$myInfo_user_id'.
But I get an error message that he function hasn't been defined.
Does anyone know how and where I have to define it?