Welcome to Geeklog, Anonymous Tuesday, October 15 2024 @ 08:16 pm EDT
Geeklog Forums
Plugins issues relating to other Improvements in Geeklog 1.6.0
Status: offline
LWC
Forum User
Full Member
Registered: 02/19/04
Posts: 818
Concerning Other Improvements in Geeklog 1.6.0:
1) Is there an API for canonical links? I just did:
$display .= COM_siteHeader('menu', $title, $headercode);
2) COM_output is not backward compatible. So plugin authors, be sure to use this:
COM_output($display);
else
echo $display;
1) Is there an API for canonical links? I just did:
Text 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:
Text Formatted Code
if (function_exists(COM_output))COM_output($display);
else
echo $display;
10
16
Quote
Status: offline
Laugh
Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
To make debuging plugins a bit easier (for those of us who like to add echo statements) I would suggest this.
if (function_exists(COM_output) AND $_CONF['rootdebug']==false) {
COM_output($display);
} else {
echo $display;
}
One of the Geeklog Core Developers.
Text Formatted Code
if (function_exists(COM_output) AND $_CONF['rootdebug']==false) {
COM_output($display);
} else {
echo $display;
}
One of the Geeklog Core Developers.
12
16
Quote
All times are EDT. The time is now 08:16 pm.
- 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