|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Im in RSS feed hell
Hi all, hoping for some tips. I've been trying unsuccessfully for days to get an RSS feed to work correctly.
I need the content of the feed to appear in my page source, so that the SE spiders can observe that my content is constantly updating, changing.. I recently learned that my java feed was useless in this regard... An example of the newfeed in action, (the scrolling text), all content visible in the page source is here, and it appears they used PHP: http://www.pokergazette.com/ the RSS feed I want to include on my site is here: http://www.pokergazette.com/trak/fclick.php?fid=rss I've tried various java boxes but can't get things to work correctly. What can I use, to format and convert an RSS feed on the fly? A script to put on my page, that will update as the feed updates? Thanks in advance, Chris |
|
#2
|
||||
|
||||
|
Hi Chris,
I've never used it, but I've heard quite a lot about RSS2HTML http://www.rss2html.com/ as a solution for problems similar to yours. Good luck!
__________________
SEOFTW. |
|
#3
|
|||
|
|||
|
Hi frnds .. i am new to RSS and am quite confused over its usage.
Have gone through the text documents explaining the RSS meaning. But practically i am not able to get it working. To be specific i have made the dummy XML file but am struck wht to do after that. I mean how to connect the file that i have made to the site. DO I need any XML compiler for that? or any specific validator. Thanks in advance. Alex Mind. |
|
#4
|
|||
|
|||
|
easy RSS in Java
I managed to get this very problem sorted using a bit of jsp: -
here's the code to spew the feed into a web-page, and replace all the urls with your own for certain key-phrases. file:rss.jsp Code:
<%@ page import="erigena.com.*" %>
<%@page import="java.net.URL,
com.sun.syndication.feed.synd.SyndFeed,
com.sun.syndication.io.SyndFeedInput,
com.sun.syndication.feed.synd.SyndEntry,
com.sun.syndication.io.XmlReader,
com.sun.syndication.feed.synd.SyndContentImpl,
java.util.*"
contentType="text/html;charset=UTF-8"
%>
<%@ page import="org.jdom.*" %>
<%! public String genRss(String url, boolean showFeedURI, boolean showFeedSource,boolean showFeedPreview, boolean showFeedArticle, int textLengthToDisplay)
{
//String url = "http://www.pokergazette.com/trak/fclick.php?fid=rss";
String outputStr="";
String temp="";
String temptwo="";
try {
URL feedUrl = new URL(url);
SyndFeedInput input = new SyndFeedInput();
SyndFeed feed = input.build(new XmlReader(feedUrl));
List al = feed.getEntries();
if(showFeedSource)
{
outputStr+="<h3>New posts from: <a href=\""+feed.getUri()+"\">"+feed.getTitle()+"</a> </h3>";
}
for (Iterator it = al.iterator (); it.hasNext (); )
{
SyndEntry entry = (SyndEntry) it.next ();
outputStr+="<h4>"+entry.getTitle()+"</h4>";
if(showFeedPreview)
{
temp= entry.getDescription().getValue();
if ((showFeedPreview)&&(temp.length()>textLengthToDisplay))
{
temp=temp.substring(0,textLengthToDisplay);
temp+="..."+"<a href=\""+entry.getUri()+"\">[Read This Article]</a></p>";
}
outputStr+=temp;
}
else
if(showFeedArticle)
{ temp= entry.getDescription().getValue();
outputStr+=temp;
/*
List theContents=entry.getContents();
for (Iterator it2 = theContents.iterator (); it2.hasNext (); )
{
//outputStr+=entry.getDescription().getValue();
SyndContentImpl theEntry=(SyndContentImpl) it2.next ();
outputStr+=theEntry.getValue()+"!!!";
}
*/
//outputStr+=entry.getDescription().getValue();
//outputStr+="In Show Feed Article";
// outputStr+=showRssArticle(entry.getUri(), false);
//genRss(entry.getUri(), false, false,false,true,0);
}
}
}
catch (Exception ex)
{
ex.printStackTrace();
}
return(changeLinks(outputStr));
}
%>
<%! public String changeLinks(String in)
{
String out=in.replaceAll( "Party Poker", "<a href=\"\\PokerRooms/partypoker\">Party Poker</a>" );
out=out.replaceAll( "Canbet", "<a href=\"\\PokerRooms/canbet\">Canbet</a>" );
out=out.replaceAll( "Noble Poker", "<a href=\"\\PokerRooms/noblepoker\">Noble Poker</a>" );
out=out.replaceAll( "Poker Room", "<a href=\"\\PokerRooms/pokerroom\">Poker Room</a>" );
out=out.replaceAll( "Absolute Poker", "<a href=\"\\PokerRooms/absolutepoker\">Absolute Poker</a>" );
out=out.replaceAll( "Pacific Poker", "<a href=\"\\PokerRooms/pacificpoker\">Pacific Poker</a>" );
out=out.replaceAll( "Ultimate Bet", "<a href=\"\\PokerRooms/ultimatebet\">Ultimate Bet</a>" );
out=out.replaceAll( "CD Poker", "<a href=\"\\PokerRooms/cdpoker\">CD Poker</a>" );
out=out.replaceAll( "William Hill", "<a href=\"\\PokerRooms/williamhill\">William Hill</a>" );
out=out.replaceAll( "Will Hill", "<a href=\"\\PokerRooms/williamhill\">William Hill</a>" );
out=out.replaceAll( "Empire Poker", "<a href=\"\\PokerRooms/empirepoker\">Empire Poker</a>" );
out=out.replaceAll( "32 Red", "<a href=\"\\PokerRooms/32red\">32 Red</a>" );
out=out.replaceAll( "Paddy Power", "<a href=\"\\PokerRooms/paddypower\">Paddy Power</a>" );
return(out);
}%>
<!-- //String url showFeedURI showFeedSource, showFeedPreview, showFeedArticle, textLengthToDisplay !-->
[in the show-Poker-articles.jsp file] Code:
<p id="top">
<%@ include file="rss.jsp"%>
<%
boolean showuri=true;
boolean showfeedsource=false;
boolean showfeedpreview=true;
boolean showfeedarticle=false;
%>
<%=genRss("http://feeds.feedburner.com/pokergazette", showuri, showfeedsource,showfeedpreview,showfeedarticle,255 )%>
</p>
the result? http://ukgamblingforums.co.uk/poker-articles.jsp hope this helps and let me know if i can help you out with anything else! Regards paul admin at http://ukgamblingforums.co.uk - UK Gambling forums (UKGF) Last edited by FogHorn : June 25th, 2006 at 01:38 PM. Reason: links removed |
|
#5
|
|||
|
|||
|
If you use Wordpress, I have had success with...
a plugin called feedwordpress.
Mark @ Viralinks Free Link Building E-Course at www.viralinks.com |
![]() |
| Viewing: SEO Chat Forums > Search Engine Strategies > Blogs, Tagging, RSS Feeds > Im in RSS feed hell |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|