but now it shows Posté le : Aujourd'hui
should be Posté: Aujourd'hui
If i edit the language file to Posté: without the "le", it will show:
Posté: 14/01
it should be:
Posté le : 14/01
So this is another delimma
In xoops_version.php add blocks by copying the block definition, renumbering them and renaming block_new to block_pop, block_rand and block_req. You can make use of the same option and template.
Add also the required title and description definitions to the language file.
Copy the block php file and rename it as in the definitions.
Adapt the where and order clause of the SQL statement to get the required records.
<?php
function dictionary_show_new($options) {
global $xoopsDB;
$block = array();
$numDef = $options[0];
$result = $xoopsDB->queryF("SELECT id, name FROM ".$xoopsDB->prefix("dictionary")." WHERE state='O' order by id desc LIMIT 0, $numDef");
while($dic_def = $xoopsDB->fetcharray($result)) {
$def = array();
$def['id'] = $dic_def['id'];
$def['name'] = $dic_def['name'];
$block['def'][] = $def;
}
return $block;
}
function numDef_edit($options) {
$form = "<table border='0'>";
$form .= "<tr><td>"._MB_DIC_NUMSDEF."</td><td>";
$form .= "<input type='text' name='options[0]' size='16' value='".$options[0]."'></td></tr>";
$form .= "</td></tr>";
$form .= "</table>";
return $form;
}
?>