| Anonymous | Login | Signup for a new account | 2010-02-09 12:20 EST |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| 0000619 | [Geeklog] Feature Requests | tweak | N/A | 2008-05-04 00:19 | 2009-04-08 04:20 | |||||||
| Reporter | jmucchiello | View Status | public | |||||||||
| Assigned To | ||||||||||||
| Priority | normal | Resolution | open | |||||||||
| Status | feedback | Product Version | ||||||||||
| Summary | 0000619: Plugins should be able to control moderation on their own | |||||||||||
| Description | Calls to plugin_itemlist_$type require a return of a plugin object (should be called a moderation object) and impose various strict requirements on a plugin's database layout. It would be nice if the return from plugin_itemlist_$type could also be html. When the return is an object, process it as currently coded. When the return type is a string, just append it to the current output. | |||||||||||
| Additional Information |
if ((strlen ($type) > 0) && ($type <> 'story')) { $function = 'plugin_itemlist_' . $type; if (function_exists ($function)) { // Great, we found the plugin, now call its itemlist method $list = $function(); // new if (is_string($list)) { // new return $list; // new } // new $plugin = new Plugin(); $plugin = $list; if (isset ($plugin)) { $helpfile = $plugin->submissionhelpfile; $sql = $plugin->getsubmissionssql; $H = $plugin->submissionheading; $section_title = $plugin->submissionlabel; $section_help = $helpfile; $isplugin = true; } } |
|||||||||||
| Tags | No tags attached. | |||||||||||
| Target | Future Release | |||||||||||
| Attached Files | ||||||||||||
|
|
||||||||||||
| Copyright © 2000 - 2009 Mantis Group Hosted by pair.com |