Subject: Plugins issues relating to other Improvements in Geeklog 1.6.0

Posted on: 22/06/09 02:24pm
By: LWC

Concerning Other Improvements in Geeklog 1.6.0:

1) Is there an API for canonical links? I just did:
PHP Formatted Code
$headercode = '<link rel="canonical" href="' . $url . '"' . XHTML . '>' . LB;
$display .= COM_siteHeader('menu', $title, $headercode);


2) COM_output is not backward compatible. So plugin authors, be sure to use this:
PHP Formatted Code
if (function_exists(COM_output))
   COM_output($display);
else
   echo $display;

Re: Plugins issues relating to other Improvements in Geeklog 1.6.0

Posted on: 12/12/09 12:13pm
By: Laugh

To make debuging plugins a bit easier (for those of us who like to add echo statements) I would suggest this.

PHP Formatted Code

if (function_exists(COM_output) AND $_CONF['rootdebug']==false) {
   COM_output($display);
} else {
   echo $display;
}

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=87853