
I'm also having problems with the news module...
Truelove wrote:
For now I use the Bulletin module from RMSOFT, though the module has been removed recently from the XOOPS-Mexico website. This module 'works' for me, although with some bugs.
ghostrider wrote:
Something like this ?
zyspec wrote:
You did set the number of quotes to show in the block configuration, right?
Notice: Undefined index: in file /modules/rmmf/blocks/rmmf_recent.php line 87
Notice: Undefined index: in file /modules/rmmf/blocks/rmmf_recent.php line 88
Notice: Undefined index: cliente in file /modules/rmmf/blocks/rmmf_recent.php line 90
Parse error: syntax error, unexpected T_FOR in cms/modules/rmmf/blocks/rmmf_recent.php on line 85
All errors (0) queries (14) blocks (4) extra (0) timers (4)
Errors
for ($i=0;$i<$limit;$i++) {
function rmmf_bk_comments($options){
$db =& Database::getInstance();
$myts =& MyTextSanitizer::getInstance();
$result = $db->query("SELECT * FROM ".$db->prefix("rmmf_works")." ORDER BY id_w DESC LIMIT 0,$options[0]");
$block = array();
while ($row = $db->fetchArray($result)){
$rtn = array();
$rtn['id'] = $row['id_w'];
$rtn['titulo'] = $row['titulo'];
$rtn['texto'] = $myts->makeTareaData4Show($row['comentario']);
$rtn['cliente'] = $row['cliente'];
$block['works'][] = $rtn;
}
return $block;
}
function rmmf_bk_comments_edit($options){
$form = _BK_RMMF_NUMCOMMS."<br /><input type='text' size='5' name='options[]' value='$options[0]' />";
return $form;
}
<{foreach item=work from=$block.works}>
<div style="font-size: 10px; text-align: right;">
<span style="font-style: italic;">"<{$work.texto}>"</span><br />
<a href="<{$xoops_url}>/modules/rmmf/view.php?id=<{$work.id}>"><{$work.cliente}></a>
</div><br />
<{/foreach}>