Quote:
FutureSpy wrote:
It's actually BopComments backend.php I renamed to rss.php and put on xoops ROOT.
Here's the code. Probably, I did something wrong.
It's ok ($article is text data.)
(PS:Bopcomments do not used xoops_substr function.
My HACK for UTF-8
http://domifara.lolipop.jp/xo/modules/wfdownloads/singlefile.php?cid=6&lid=27)
this problem is .
at other module
from that
HACK of not changing module souce as much as possible
I chabged xoops core souce
Two problems
1.When you cut the language tag character short
Because the language tag for EMLH becomes a character string not shut, the language
tag cannot be correctly processed.
this is
/inculde/function.php
xoops_substr
function xoops_substr($str, $start, $length, $trimmarker = '...')
{
to
add lines
function xoops_substr($str, $start, $length, $trimmarker = '...')
{
if( strlen( $str ) <= $length ){ return $str; }
global $easiestml_lang;
if (function_exists('easiestml') && isset($easiestml_lang)) {
$str = easiestml($str);
}
modules of used xoops_substr
almost OK
2. has only one Cashe.
It's simple HACK
All templates cache of each language are made.
/class/template.php
from line 192 add lines (add method in class XoopsTpl)
//--------------hack add method
/**
* returns an auto_id for auto-file-functions for eache language
*
* @param string $cache_id
* @param string $compile_id
* @return string|null
*/
function &_get_auto_id($cache_id=null, $compile_id=null) {
global $xoopsConfig ;
$eache_langcache_id = $xoopsConfig['language'] . '|' . $xoopsConfig['template_set'];
if (isset($cache_id)){
return (isset($compile_id)) ? $cache_id . '|' . $compile_id . '|' . $eache_langcache_id : $cache_id . '|' . $eache_langcache_id;
} elseif(isset($compile_id)) {
return $compile_id . '|' .$eache_langcache_id;
} else {
return $eache_langcache_id;
}
}
allmost OK