|
|
Adding Trackback
Since 1.30 trackbacks have been a completely integrated part of Pivot and no action is needed to use it. Read more about the trackback functionality.
Pre 1.30 instructions
Adding trackback to your Pivot site is pretty straightforward. You need to add some code to your templates, and that's basically it.
- Edit your template for the entries on your frontpage. In the default template set this is _sub_entry_standard.html. Add the following, somewhere near your [[commentlink]] tag:
<a href="[[pivot_dir]]tb.php?__mode=list&tb_id=[[uid]]" onclick="window.open(this.href, 'trackback', 'width=480, height=480, scrollbars=yes, status=yes'); return false">TrackBack</a>
If you are using Pivot 1.20 or newer, you can replace this with the Trackback Link snippet.
- Edit your template for full entries. In the default template set this is entrypage_template.html. Add the following, somewhere in your html file. I suggest placing it just before </head> tag:
<!-- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" > <rdf:Description rdf:about="[[self]]" dc:title="[[title]]" dc:identifier="[[self]]" trackback:ping="[[pivot_url]]tb.php?tb_id=[[uid]]" > </rdf:RDF> -->
Also add the following, somewhere where you want the link to the trackback window:
<a href="[[pivot_dir]]tb.php?__mode=list&tb_id=[[uid]]" onclick="window.open(this.href, 'trackback', 'width=480, height=480, scrollbars=yes, status=yes'); return false">TrackBack</a>
If you are using Pivot 1.20 or newer, you can replace this with the Trackbacks snippet (if you want inline display).
- Make sure the folder pivot/db/trackback/ is chmodded to 777. Also, make sure the folder includes/tb/rss is chmodded to 777 if you wish to enable trackback rss generation.
- Rebuild the frontpage and you're done!
| Special thanks to our platinum sponsors: Warning: include(/home/pivotis/pivotlog.net/pivot/templates/donate_platinum.html) [function.include]: failed to open stream: No such file or directory in /home/pivotis/pivotlog.net/docs/lib/tpl/default/main.php on line 311 Warning: include() [function.include]: Failed opening '/home/pivotis/pivotlog.net/pivot/templates/donate_platinum.html' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/pivotis/pivotlog.net/docs/lib/tpl/default/main.php on line 311 |
