From dirk at haun-online.de Mon Apr 13 03:26:16 2009 From: dirk at haun-online.de (Dirk Haun) Date: Mon, 13 Apr 2009 09:26:16 +0200 Subject: [geeklog-modules] Autotags and empty ids Message-ID: <20090413072616.1133057606@smtp.haun-online.de> 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/