12
After a bit more reading I am totally lost, so just trying every snippet that I can find. So I added the following code to class/xoopsblock.php hoping it might help..
function getUserFrom($myField){ if (is_object($xoopsUser) && $xoopsUser->getVar('uid') > 0){ $myField = $xoopsUser->getVar('user_from'); } return $myField; }
Funny to say, I am still stuck... is what I have done right? If it is, how do I then call $myField in a custom block?
Please guys, I really need some help with this because I need to replicate this principle throughout my site numerous times, so if I can just get it right once, I will follow suit for the rest.
Cheers