Quote:
So a more definite solution would be appreciated.
I use php 5.0.5. by the way. It's a hosted domain, so I can't change anything about that.
It's a problem specific to PHP 5.0.x. As the change they did broke some applications, the PHP team decided to fix this in 5.1, but didn't in 5.0
.
The fix is easy each time, but fixing one line doesn't mean you won't see the same problem reappear in another one (however: the way to fix it is the same each time). So I think you'd better report this to the devs so they can provide a real fix.
In the meantime, here's the idea:
// userinfo.php (115)
$xoopsTpl->assign('user_extrainfo', $myts->makeTareaData4Show([color=FF6666]$thisUser->getVar('bio', 'N')[/color],0,1,1));
// xoopsblock.php (152)
return str_replace('{X_SITEURL}', XOOPS_URL.'/', $myts->displayTarea([color=FF6666]$this->getVar('content', 'N')[/color], 1, 1));
you have to put the result of 'getVar' in a temporary variable each time, changing those line to this:
// userinfo.php (115)
$tmp = $thisUser->getVar('bio', 'N');
$xoopsTpl->assign('user_extrainfo', $myts->makeTareaData4Show($tmp,0,1,1));
// xoopsblock.php (152)
$tmp = $this->getVar('content', 'N');
return str_replace('{X_SITEURL}', XOOPS_URL.'/', $myts->displayTarea($tmp, 1, 1));
But again, there may be others (opening userinfo.php made me see the same syntax was used for 'user_signature' a few lines below ), so you'll have to do this each time