Page 1 of 2

Using Feedflare service from feedburner on Serependity

Posted: Tue Jan 31, 2006 5:15 pm
by PurpleCow
Hi,

I use serependity as my blogging system on http://www.auctionwire.info .

I want to use feedflare service offered by Feedburner on my blog. I have pasted their javascript in the template, but the options doesn't show up on my blog.

Here are some links using which you can help me...

1. Sample feedflare usage and description

2. My thread on feedburner help forums

Any help much appreciated.

Thanks

Re: Using Feedflare service from feedburner on Serependity

Posted: Tue Jan 31, 2006 5:33 pm
by garvinhicking
I don't find the actual Javascript to be inserted on your linked page, they contain too much info which I'm not willing to read.

What and where did you insert the JS?

I am quite sure it is just an escaping problem.

Regards,
Garvin

Posted: Wed Feb 01, 2006 3:02 am
by judebert
Remember that when Smarty parses templates, it uses the braces {} itself. So it'll try to interpret the Javascript braces as its own braces and mess up.

Smarty will also translate {ldelim} and {rdelim} into { and }, respectively, so if you substitute them for the braces in your Javascript, everything should work as expected.

Posted: Wed Feb 01, 2006 5:52 pm
by PurpleCow
Hi,

This is the javascript code, that I have put into the entries.tpl ...
<script src="http://feeds.feedburner.com/Auctionwire ... entry.link" type="text/javascript"></script>
I have pasted this just above this line...

<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"


gravin any help? please

judebert, i tried what you mentioned, but i had fatal errors when i loded the site.

Thanks again for any help.

Cheers

Posted: Wed Feb 01, 2006 5:55 pm
by PurpleCow
PurpleCow wrote:Hi,

This is the javascript code, that I have put into the entries.tpl ...
<script src="http://feeds.feedburner.com/Auctionwire ... entry.link" type="text/javascript"></script>
I have pasted this just above this line...

<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

I actually wanted these options to appear below the following line on the entires.tpl and archive templates and also the individual article templates.
Posted by in Auction Tools at 16:13 | Comments (0) | Trackbacks (0) | Edit entry
Which templates, I need to modify and where exactly do i paste the javascript and inw hat format?

gravin any help? please

judebert, i tried what you mentioned, but i had fatal errors when i loded the site.

Thanks again for any help.

Cheers

Posted: Wed Feb 01, 2006 10:50 pm
by judebert
No braces in that JS, so it's no wonder the Smarty trick didn't help.

I think it's not interpreting the $entry.link. Smarty needs braces around whatever it's supposed to interpret, remember.

Try this:

Code: Select all

<script src="http://feeds.feedburner.com/Auctionwire?flareitem={$entry.link}" type="text/javascript"></script>

Posted: Thu Feb 02, 2006 10:40 am
by garvinhicking
And try to put that code from judebert immediately after or before {$entry.add_footer} in your entries.tpl.

Regards,
Garvin

Posted: Thu Feb 02, 2006 5:19 pm
by PurpleCow
I tried pasting judebert's code after {$entry.add_footer}, but the feedflare options still doesn't show up.

After making changes, does it effect only the new posts made or will it become effective for the old posts also?? My guess is may be that is why the options are not shown. But I tried saving and posting a new one, still the feedflare options doesn't show up.

Otherwise, any help on how to get it to work?

Thanks much again.

Cheers

Posted: Thu Feb 02, 2006 5:25 pm
by garvinhicking
The javascript now shows up there. But the link does not seem correct.

Try this:

Code: Select all

script src="http://feeds.feedburner.com/Auctionwire?flareitem={$entry.rdf_ident}" type="text/javascript"></script>
instead.

Loading that URL is terribly slow, bTW.

Regards,
Garvin

Posted: Thu Feb 02, 2006 5:34 pm
by PurpleCow
Gravin,

Thanks. I added the code you gave me above the {$entry.add_footer} ... like this...

<script src="http://feeds.feedburner.com/Auctionwire ... .rdf_ident}" type="text/javascript"></script>
{$entry.add_footer}

But that adds only to the feedflare options only to the first post and not to all the posts... how can i get it for all the posts in my blog?

Thanks again for the help.

Re: Using Feedflare service from feedburner on Serependity

Posted: Thu Feb 02, 2006 5:36 pm
by garvinhicking
The JS code is all there properly.

It seems that feedburner is blocking multiple calls to their javascripts. You'll need to contact them to ask them why it only works for the first JS call.

Regards,
Garvin

Posted: Thu Feb 02, 2006 5:49 pm
by PurpleCow
Thanks again, Gravin.

I have again posted on Feedburner forums for further help on the issue you mentioned.

Regarding the slow URL loading for auctionwire.info, even i experience the same, though not sure why. Could it be b'cos...

1. I have more than 2500+ posts?
2. yahoo text ads (YPN) code 3 times?
3. My server on which it is hosted is slow?

or what other reason could it be?

Thanks much
Cheers

Posted: Thu Feb 02, 2006 5:58 pm
by garvinhicking
Reason 2 should not apply, as feedburner surely doesn't parse the JS on your page.

It's either your page being slow, the feedburner servers being slow, or the feedburner algorithms being slow ;)

I don't know what the feedburner JS actually performs, so I don't really know where the trouble lies.

Regards,
Garvin

Posted: Fri Feb 03, 2006 11:43 am
by PurpleCow
Thanks Gravin. the feedflare options are now working properly for all the posts.

Cheers

Posted: Fri Feb 03, 2006 5:04 pm
by judebert
For those interested, the FeedBurner folks said that his feed was empty, so there was no data to put in the flare. PurpleCow, I'd guess you just switched your entries to Draft, then back to Publish, causing FeedBurner to be notified again? And since you've got so many posts, I'll bet you worked it through the database directly?