[geeklog-modules] Plugins and comments
geeklog-modules-admin at lists.geeklog.net
geeklog-modules-admin at lists.geeklog.net
Wed Apr 30 13:37:59 EDT 2003
Yes, exactly. Let the plugin feed the page to GL and if nothing
is provided then default back to the main page.
Joat
----- Original Message -----
From: <geeklog-modules-admin at lists.geeklog.net>
To: <geeklog-modules at lists.geeklog.net>
Sent: Wednesday, April 30, 2003 5:11 AM
Subject: Re: [geeklog-modules] Plugins and comments
>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/
_______________________________________________
geeklog-modules mailing list
geeklog-modules at lists.geeklog.net
http://lists.geeklog.net/listinfo/geeklog-modules
More information about the geeklog-modules
mailing list