1 austriaco Jul 24, 2008 01:53
3 austriaco Dec 05, 2008 12:01
This bug has come back in 2.4.5. SOlution is the same, of course.
4 tblue Dec 06, 2008 15:07
Thanks, this bug is now also fixed in v-2-4. :)
Tblue
5 blogmeister Jan 16, 2009 22:18
Hello.
I just ran across this feature and thread and I'm trying to add it to v.2.4.5. Here's the partial code I have in 'trackback_rdf()' in the file 'item.class.php':
EDIT: Offending code removed
echo '<rdf:Description'."\n";
echo ' rdf:about="';
$this->permanent_url( 'single' );
echo '"'."\n";
echo ' dc:identifier="';
$this->permanent_url( 'single' );
echo '"'."\n";
// ADDED the next 4 lines to fix autodiscovery bug
$this->title( array( 'before' =>' dc:title="',
'after' => '"'."\n",
'link_type' => 'none',
'format' => 'xmlattr' ) );
echo ' trackback:ping="';
$this->trackback_url();
echo '" />'."\n";
Then I added this to the purple_beauty skin in 'index.main.php' to test it:
// Link to comments, trackbacks, etc.:
$Item->feedback_link( array(
'type' => 'trackbacks',
'link_before' => ' • ',
'link_after' => '',
'link_text_zero' => T_('Leave a trackback'),
'link_text_one' => T_('1 trackback'),
'link_text_more' => T_('%d trackbacks'),
'link_title' => '#',
'use_popup' => false,
) );
$Item->trackback_rdf(); // trackback autodiscovery information
I'm getting the following error on the frontend:
EDIT: ERROR NOW GONE...
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /this/sub/dir/www/blogs/inc/items/model/_itemlight.class.php on line 707
An unexpected error has occured!
If this error persits, please report it to the administrator.
Go back to home page
Additional information about this error:
Output format [] not supported.
Do you have any idea what might be going on?
Thanks.
P.S. The blog subdir is currently password-protected until it goes live so not sure if this message is related to this.
EDIT: I found the error. I forgot to delete the old $this->title(...) line. It looks good. Thanks Austriaco et al.
Now, to figure out how other blog software is able find and use this code.
6 blogmeister Jan 17, 2009 06:52
Hello again.
UPDATE: Previous post updated. Code error found and snippet works.
Thanks for the revision, Austriaco! ;)
7 tblue Jan 17, 2009 14:19
Simply upgrade to v2.4.6, the bug is fixed there. ;)
Trackback technical specification wrote:
Great job. Thanks for sharing. Fixed in HEAD