Go in the admin panel and try to rename a module from, for example :
Quote:
evennews
to
Quote:
Lettre d'information
Bye,
Hervé
evennews
Lettre d'information
return $ret;
$nbfiles=count($articles_arr);
for($j=0;$j<$nbfiles;$j++)
{
$link="article.php?page=1&articleid=".$articles_arr[$j]."";
if(!in_array($link,$ret))
{
$sql="select articleid, title, published, uid, categoryid from ".$xoopsDB->prefix("wfs_article")." WHERE articleid=".$articles_arr[$j];
$result = $xoopsDB->query($sql,$limit,0);
$myrow = $xoopsDB->fetchArray($result);
if($myrow['published']>0 && $myrow['published']<=time())
{
$ret[$i]['image'] = "images/wf.gif";
$ret[$i]['title'] = " ".$myrow['title'];
$ret[$i]['link'] = "article.php?page=1&articleid=".$myrow['articleid']."";
$ret[$i]['time'] = $myrow['published'];
$ret[$i]['uid'] = $myrow['uid'];
$i++;
}
}
}
Mithrandir wrote:
Could make a third group (trustworthy) who cannot approve other people's work, but whose articles are always approved. That would be a nice thing, I think.
Mithrandir wrote:
I'm waiting for development in the waiting contests, because we may come up with a way to have a "plugin" function on the waiting contests instead of hard-coding them. I don't want to spend too much time and effort making a page with access to special people if there will be a standard way to do so.
I'm not with you on this one. If you are an "Approver" you will be presented with a form like the one you can get through the Administration Menu today. If you are only a "Submitter" you will get the standard form as the one today from the main menu.
Mithrandir wrote:
What I have already done with the News Module:
a) Set up two people groups (not usergroups): Submitters and Approvers. If a user is member of a group, which has submit privilege, he'll have the "Submit News" link in the main menu.
Non-submitters/approvers won't have that link.
Approvers will also have the "Submit News" link, but will have full access to all fields in the news form. That is, both textareas and the fields to approve and set publish/expiry dates.
This also has the extra benefit that I operate with only one submit form - where the fields available depend on the submitter's privileges.
b) Show news by topic instead of just the 5/10/25... latest news stories
I am waiting with the moderation outside the Admin area, until I have some more issues resolved with the other module devs and core devs regarding the waiting contests
As soon as we find a cross-browser WYSIWYG editor, I'll want it to replace the textareas
I think that you have some very good ideas regarding this and would love to cooperate with you
instead of having 2-3 different News modules doing more or less the same with a few differences.
If you are interested, I'll talk to w4z004 about getting you on the team.
Mithrandir wrote:
Comments are enabled/disabled on a per module basis.
Can I assume that you have added comments to your module?
From the News module with included files, I seeinclude_once XOOPS_ROOT_PATH.'/include/comment_constants.php';
if (XOOPS_COMMENT_APPROVENONE != $xoopsModuleConfig['com_rule']) {
Which as I read it, should say, whether comments are enabled/disabled for that module.