21
Thank you for this great hack, i was looking for something like this a long time.
Currently i try to apply it to a testsite an also integrate it in the modules and blocks i use and into the administration section.
I hope someone can help me with some problems i have:
- Select boxes (drop-down menus)
eg. if i activate the navigation box in the news i have all two languages (german/english) and i found no way to change this :(
the html output of the drop down menu looks like this:
Quote:
i think the following function have to be changed:
Quote:
as this applys to many select boxes through XOOPS a solution would be great - i have no idea how to get this to work.
- some blocks (eCal)
I got some other blocks to work (polls, whos online,...) but not the next events block from eCal:
Quote:
Don´t worry - i dont want a complete solution but some ideas would help me i hope
PS: Sorry for the long post and ich hope my english ist readable to you
Currently i try to apply it to a testsite an also integrate it in the modules and blocks i use and into the administration section.
I hope someone can help me with some problems i have:
- Select boxes (drop-down menus)
eg. if i activate the navigation box in the news i have all two languages (german/english) and i found no way to change this :(
the html output of the drop down menu looks like this:
Quote:
<form name="form1" action="index.php" method="get">
<select name='storytopic'>
<option value='0'>----</option>
<option value='2'>[german]Allgemeines[/german][english]Common[/english]</option>
<option value='3'>[german]Gilden intern[/german][english]Guildnews[/english]</option>
<option value='5'>-- Homepage</option>
<option value='4'>[german]Gildenausflüge[/german][english]Guild forays[/english]</option>
</select>
i think the following function have to be changed:
Quote:
if ( $xoopsModuleConfig['displaynav'] == 1 ) {
$xoopsTpl->assign('displaynav', true);
$xt = new XoopsTopic($xoopsDB->prefix('topics'));
ob_start();
$xt->makeTopicSelBox(1, $xoopsOption['storytopic'], 'storytopic');
$topic_select = ob_get_contents();
ob_end_clean();
$xoopsTpl->assign('topic_select', $topic_select);
$storynum_options = '';
for ( $i = 5; $i <= 30; $i = $i + 5 ) {
$sel = '';
if ($i == $xoopsOption['storynum']) {
$sel = ' selected="selected"';
}
$storynum_options .= '<option value="'.$i.'"'.$sel.'>'.$i.'</option>';
}
$xoopsTpl->assign('storynum_options', $storynum_options);
} else
as this applys to many select boxes through XOOPS a solution would be great - i have no idea how to get this to work.
- some blocks (eCal)
I got some other blocks to work (polls, whos online,...) but not the next events block from eCal:
Quote:
function eCal_nextn() {
//
// Next N Events block
//
global $xoopsDB, $xoopsConfig;
$block = array(); include($xoopsConfig['root_path']."/modules/eCal/cache/config.php");
$block['title'] = str_replace('%N', $nextncount, _MB_ECAL_NEXTN) ;
// how many events to show?
$numEvents = $nextncount;
$usertimevent = (userTimeOffset()*3600) +time();
$start = date("Y-m-j", addDays(0, $usertimevent))." 00:00:00";
$query = "SELECT subject, stamp FROM ".$xoopsDB->prefix("eCal")
." WHERE valid='yes' AND (stamp >= '$start') AND valid='yes' order by stamp limit 0, $numEvents";
$block['content'] = content( $query,"" );
if ($block['content'] == "") $block['content'] .= _NOEVENTSCHED;
return $block;
}
Don´t worry - i dont want a complete solution but some ideas would help me i hope
PS: Sorry for the long post and ich hope my english ist readable to you