Trackback
Some time ago, I removed Trackback functionality from Siteframe because of the potential for abuse. That is, with Trackback, it's very easy for a spammer to create false Trackbacks that link to spam websites. After thoughtful deliberation, I've restored this functionality, but have it disabled by default.
Configuration
All Trackback functionalty is controlled by two basic settings:- trackback_enable - this is set in siteframe.ini, and is Off by default. When this is Off, then all Trackback functionality is disabled. When On, inbound trackbacks and trackback auto-discovery are enabled.
- ping_enable - this setting enables the "ping" plugin, which is used to create XML/RPC and Trackback pings (outbound). If this is On and trackback_enable is On, then outbound trackback pings are enabled. If this is On, and trackback_enable is Off, then only XML/RPC pings are enabled, and outbound Trackback pings are not.
Inbound Trackback
The template trackback.tpl generates RDF to support Trackback auto-discovery. This lets other websites automatically determine the URL to use for sending Trackbacks to the Siteframe website. This RDF contains a link to tb.php, the script that handles inbound Trackback pings.
Note that, unlike the older implementation, Trackbacks are stored as separate objects (they used to be treated as an anonymous comment).
Outbound Trackback
When outbound Trackback is enabled (both trackback_enable and ping_enable are On), all new Pages are scanned for links (<a href=""> tags). For each link, the remote URL is fetched and scanned for Trackback auto-discovery RDF. If found, then a Trackback ping is sent to the remote site.
Use of outbound Trackback requires the PHP CURL extension.
Displaying Trackbacks
By default, none of the standard template sets support the display of Trackbacks. If you want to display Trackbacks on your site, you can use this example code:
{all class="Trackback" page=$id}
<p>Trackback: {$trackback.tb_title|default:"Trackback"}<br />
{$trackback.tb_excerpt|strip_tags}<br />
Trackback from <a href="{$trackback.tb_url}">{$trackback.tb_blog_name}</a></p>
{/all}
Modify as necessary to suit your installation.
