[geeklog-modules] Plugins and comments

geeklog-modules-admin at lists.geeklog.net geeklog-modules-admin at lists.geeklog.net
Wed Apr 30 05:11:58 EDT 2003



>I hope the redirects back to the main page on every action are

>addressed too for plugins.


Again, the problem here is that Geeklog doesn't really know where to
redirect to for the plugin.

Any suggestions?

The plugin could return the HTML for a redirect from
PLG_handlePluginComment().

Some pseudo code:

if (comment_type == 'article' || comment_type == 'poll')
geeklog_handles_it
else {
redirect = PLG_handlePluginComment()
if (empty (redirect)) // for compatibility
echo COM_refresh (site_url/index.php)
else
echo redirect
}

Does that make sense?

bye, Dirk


--
http://www.haun-online.de/
http://www.tinyweb.de/




More information about the geeklog-modules mailing list