ade_dnb
07-17-2008, 11:40 AM
Im trying to mod the news module to select threads from certain forums. Ive already added the iconid mod which works good but I also want to be able to post threads that arn't in my news forum.
WHERE visible = 1
AND open != 10
AND (thread.forumid IN(" . implode(',', $mods['inforums']) . ")
" . iif(!empty($newstids), ' OR threadid IN(' . implode(',', $newstids) . ')') . "
)
" . iif($mod_options['portal_news_cutoffdate'], 'AND thread.dateline > ' . (TIMENOW - ($mod_options['portal_news_cutoffdate'] * 86400))) . "
AND (thread.iconid = 15) //threads in selected forums with same iconid gets posted as news//
OR (thread.checkcount = 1)
AND (thread.postuserid = 1 , 377 , 194 , 297) //threads anywhere which have been marked as checked and posted by listed username gets posted//
This is what I have right now.
The iconid works fine and ive added a backup feature as well which is the moderator checkpoint system (checkcount = 1).
AND (iconid = 15) takes care of the iconid which works but what I wanted to do was to include certain usernames (which might be in different usergroups) which can post threads. I could list out all of the usernames that are allowed to post AND (postuserid = 1 , 377 , 194 , 297) but what I want to do is to have an option in the admin control center.
How would I go about adding this into the control panel?
Cheers.
WHERE visible = 1
AND open != 10
AND (thread.forumid IN(" . implode(',', $mods['inforums']) . ")
" . iif(!empty($newstids), ' OR threadid IN(' . implode(',', $newstids) . ')') . "
)
" . iif($mod_options['portal_news_cutoffdate'], 'AND thread.dateline > ' . (TIMENOW - ($mod_options['portal_news_cutoffdate'] * 86400))) . "
AND (thread.iconid = 15) //threads in selected forums with same iconid gets posted as news//
OR (thread.checkcount = 1)
AND (thread.postuserid = 1 , 377 , 194 , 297) //threads anywhere which have been marked as checked and posted by listed username gets posted//
This is what I have right now.
The iconid works fine and ive added a backup feature as well which is the moderator checkpoint system (checkcount = 1).
AND (iconid = 15) takes care of the iconid which works but what I wanted to do was to include certain usernames (which might be in different usergroups) which can post threads. I could list out all of the usernames that are allowed to post AND (postuserid = 1 , 377 , 194 , 297) but what I want to do is to have an option in the admin control center.
How would I go about adding this into the control panel?
Cheers.