$title = $myts->makeTboxData4Show(substr($myrow['title'],0,($options[2] -1)))."...";
$title = substr($myts->makeTboxData4Show($myrow['title']),0,($options[2] -1))."...";
mvandam wrote:
Ah, yes good point dawilby... In many places, the title is truncated, just in case someone puts in a really long title (i.e. so they don't mess up your page layout). This trucation happens to the original full string... it is not until afterwards that the language hack occurs. Thus for the english one, the truncated title is "[spanish]...[/spanish][engl"... and then after the language hack, the 'spanish' part is stripped out, leaving only [engl...
Maybe this indicates a bug... need to look into it
by Catzwolf on 2003/7/8 wrote:
I was halfway through enhancing newbb for XOOPS version 1 and I was thinging about continuing this for XOOPS version 2.
Most of the work is there and could be easily hacked into newbb for xoops2 but it would take me a while. I may try and get a few people to help me on this one.
$myts =& MyTextSanitizer::getInstance();
$ret[$block->getVar("bid")] = $myts->makeTboxData4Show($name);
Daigoro wrote:
Now imagine supporting 20 languages or more, perhaps having 10 or 15 people going thru all the lines to insert/translate their part. It's a hell.
$myts =& MyTextSanitizer::getInstance();
'name' => $myts->makeTboxData4Show($myblock->getVar('name'))
I also noticed the drop-down box isn't fixed yet.
function &getList($criteria = null, $dirname_as_key = false)
{
$myts =& MyTextSanitizer::getInstance();
$ret = array();
$modules =& $this->getObjects($criteria, true);
foreach (array_keys($modules) as $i) {
if (!$dirname_as_key) {
$ret[$i] =& $modules[$i]->getVar('name');
$ret[$i] = $myts->makeTboxData4Show($ret[$i]);
} else {
$ret[$modules[$i]->getVar('dirname')] =& $modules[$i]->getVar('name');
$ret[$modules[$i]->getVar('dirname')] = $myts->makeTboxData4Show($ret[$modules[$i]->getVar('dirname')]); // Not sure if this is necessary!
}
}
return $ret;
}
global $xoopsUser, $xoopsConfig, $myts, $HTTP_GET_VARS; //failed, check next post from Daigoro
$title = $myts->makeTboxData4Show($block_arr[$i]->getVar("title"));
$name = $myts->makeTboxData4Show($block_arr[$i]->getVar("name"));
$myts->makeTboxData4Show($module_list2[$block_arr[$i]->getVar('mid')])