Using Feedflare service from feedburner on Serependity

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
PurpleCow
Regular
Posts: 64
Joined: Sun Jan 30, 2005 11:25 am
Contact:

Using Feedflare service from feedburner on Serependity

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Using Feedflare service from feedburner on Serependity

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
PurpleCow
Regular
Posts: 64
Joined: Sun Jan 30, 2005 11:25 am
Contact:

Post 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
PurpleCow
Regular
Posts: 64
Joined: Sun Jan 30, 2005 11:25 am
Contact:

Post 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
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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>
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

And try to put that code from judebert immediately after or before {$entry.add_footer} in your entries.tpl.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
PurpleCow
Regular
Posts: 64
Joined: Sun Jan 30, 2005 11:25 am
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
PurpleCow
Regular
Posts: 64
Joined: Sun Jan 30, 2005 11:25 am
Contact:

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Using Feedflare service from feedburner on Serependity

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
PurpleCow
Regular
Posts: 64
Joined: Sun Jan 30, 2005 11:25 am
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
PurpleCow
Regular
Posts: 64
Joined: Sun Jan 30, 2005 11:25 am
Contact:

Post by PurpleCow »

Thanks Gravin. the feedflare options are now working properly for all the posts.

Cheers
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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?
Judebert
---
Website | Wishlist | PayPal
Post Reply