Pligg Template Forums  

Go Back   Pligg Template Forums > Pligg Discussions > Pligg Addons
User Name
Password
Register FAQ Members List Online Store Calendar JavaChat Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old 09-10-2007, 02:34 PM   #1 (permalink)
Adam
Administrator
 
Adam's Avatar
 
Join Date: Sep 2007
Location: Scotland
Posts: 163
Adam has disabled reputation
Send a message via Skype™ to Adam
Default Use FeedBurner to Supply Your Pligg Site RSS Feeds

This tutorial will show you how to integrate feedburner.com into you pligg template.

Example: http://urlbump.com

What are the benefits.

1. Publicize your content and make it easy for people to subscribe.
2. Optimize distribution so that your content is properly formatted for all of the major directories and can be consumed by subscribers wherever they are.
3. Analyze your traffic to learn how many subscribers you have, where they're coming from and what they like best.
4. Make Moneyitize by participating in the FeedBurner Ad Network. Why not reward yourself for your effort?

Files you will need to edit
template/yourtemplate/pligg.tpl - All themes
template/yourtemplate/header.tpl - in themes like yget

template/yourtemplate/index_centre.tpl - in other themes if you cannot find the "sorts" code in header
template/yourtemplate/upcoming_centre.tpl - in other themes if you cannot find the "sorts" code in header

Okay first things first lets register an account over at feedburner.com, when you have registered your account it will ask for an RSS feed url from your pligg site first one to do is Published News section.

Published News RSS
http://yoursite.com/rss.php

Follow the feedburner instruction to enter your first feed.

Upcoming News RSS
http://yoursite.com/rss.php?status=queued

Repeat the process you have just done for the Published Feed and enter you Unpublished fedd url now. Once complete you should have two feeds listed in feedburner.com in your MyFeeds section.

Navigate to MyFeeds section at feedburner and click the link for your published news feed. Within the new page navigation tabs at the top choose the "Publicize" tab then click Feedcount - show off your feed circulation button at the left of the page.

Feedcount will allow you to style a button to match your pligg website colours. Choose your colours and what button you would like Static or Animated, once you have set these parameters click save at the bottom left.

A texarea box should now appear with the button link code keep this page open for now.

If using yget open the header.tpl and look for the code <ul id="sorts"> in yget code line 85 is unpublished news RSS and line 102 is Published news RSS.

FInd
Code:
<a href="{$URL_rss}" target="_blank"><img src="{$my_pligg_base}/templates/{$the_template}/images/rss.gif" align="absmiddle"></a>
Once you have found the code above go back to feedburner and copy your button code an replace the code above with your code.

Code:
<a href="http://feeds.feedburner.com/yoursite/PublishedNews"><img src="http://feeds.feedburner.com/~fc/yoursite/PublishedNews?bg=FFFFFF&amp;fg=000000&amp;anim=1" height="26" width="88" style="border:0" alt="" align="absmiddle" /></a>
You will notice i removed the <p> and </p> part of the code from the feedburner original and also added align="absmiddle" after the alt="". do the same.

Now repeat the process above for you upcoming RSS feed.

Use feedburner in your browsers bookmark RSS tab in most browsers URL navigaion.

[attachment=0]feedburner.rss.top.jpg[/attachment]

Open templates/yourtemplate/pligg.tpl

Find
Code:
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="{$my_base_url}{$my_pligg_base}/rss.php"/>
Replace With
Code:
<link rel="alternate" type="application/rss+xml" title="Published News RSS 2.0" href="http://feeds.feedburner.com/yoursite.com/PublishedNews"/>
<link rel="alternate" type="application/rss+xml" title="Upcoming News RSS 2.0" href="http://feeds.feedburner.com/yoursite.com/UpcomingNews"/>
Remeber and replace the actual feeds URL with your own.

I dont know how this would work on the yget template with the current position as my sorts navigation is on the left not the right of page. You could however use the default yget RSS image and still supply the feed from feedburner if the layout isn't right. or you could move the feed button away from sorts completely.

Yget default RSS image with feedburner.
Code:
<a href="http://feeds.feedburner.com/yoursite/PublishedNews" target="_blank"><img src="{$my_pligg_base}/templates/{$the_template}/images/rss.gif" align="absmiddle"></a>
I have only burned he two main feeds Published News and Upcoming News but you could take it further to categories etc if you really wanted.

Any questions or help required fire away.

Adam
Adam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump



All times are GMT +1. The time now is 09:52 PM.



Search Engine Friendly URLs by vBSEO 3.0.0