[geeklog-devel] Autotags and empty ids
Dirk Haun
dirk at haun-online.de
Mon Apr 13 03:26:16 EDT 2009
Just a quick note, as it seems autotag implementation in most plugins
has been done copy&paste style and therefore inherited a problem from
the plugins that ship with Geeklog:
When the "id" parameter, i.e. the bit after the colon, is empty, some
plugins display nonsense (e.g. the forum plugin returns a "here" link
that doesn't point anywhere) or even an error message ([staticpage_content:]).
I'd suggest checking if the id parameter (usually $autotag['parm1']) is
empty and if it is, simply return $content unchanged. That would mean
that [story:] is still displayed as such. It at least helps when someone
does a copy&paste of all the available autotags and asks what these
things are for[1] ...
bye, Dirk
[1] http://www.geeklog.net/forum/viewtopic.php?showtopic=86978
--
http://www.geeklog.net/
http://geeklog.info/
More information about the geeklog-devel
mailing list