11
add this line of code right before
include_once XOOPS_ROOT_PATH.'/footer.php';
Quote:
then add this function at the end of index right before
?>
Quote:
function checklanguage() {
global $_GET,$xoopsDB;
include 'extract string file';<---- include the file with the function to split the text with the tags
$story=$_GET['storynum'];
$result = $xoopsDB->query("select hometext from ".$xoopsDB->prefix("ams_files")." where storyid= $story");
list($data) = $xoopsDB->fetchRow($result);
$swishdata= ExtractString($data, '[sw]','[/sw]');
$englishdata = ExtractString($data, '[en]','[/en]');
if ($swishdata==$englishdata || $englishdata == null || $englishdata == ""){
$xoopsTpl->assign('swishonly', "Swish Text Only");
}
}
then in the template file ams_index.html
add wherever you want to show the text <{$swishonly}>
not sure this will work havent looked at the code of the ams module to deeply