Welcome to Geeklog Thursday, May 19 2022 @ 12:30 am EDT

Geeklog Forums

Plugins issues relating to other Improvements in Geeklog 1.6.0

Status: offline


Forum User
Full Member
Registered: 19/02/04
Posts: 818
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))
   echo $display;

Status: offline


Site Admin
Registered: 27/09/05
Posts: 1442
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) {
} else {
   echo $display;

One of the Geeklog Core Developers.

All times are EDT. The time is now 12:30 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content