13
After playing with this some time, this is what I have come up with. You do need to alter / modify the user.php class file.
STEP 1 locate getInfo in user.php file
le="color: #000000"><?php function getInfo() { global $xoopsModuleConfig, $myts; $userinfo=array(); $user =& $this->user;
STEP 2 add these two lines of code to line 229
le="color: #000000"><?php $profile_handler = xoops_getmodulehandler('profile', 'profile'); $profile = $profile_handler->get($user->getVar("uid"));
so it ends up looking like this
le="color: #000000"><?php function getInfo() { global $xoopsModuleConfig, $myts; $userinfo=array(); $user =& $this->user; $profile_handler = xoops_getmodulehandler('profile', 'profile'); $profile = $profile_handler->get($user->getVar("uid"));
STEP 3 Which should be line 242 add this line of code
le="color: #000000"><?php $userinfo["myfield"] = $profile->getVar('myfield');
STEP 4 in newbb_thread.html under the modules templates add this anywhere you want myfield to be displayed
le="color: #000000"><?php <{$topic_post.poster.myfield}>
All you now have to do is repeat steps 3 and 4 and that should do what you want. Also remember to update your template files after you make the changes. I hope this helps, I don't really know how to program all that well, but playing with what I have read in this topic this is what I have come up with Tested it with XOOPS 2.3 and cbb 3.08