ScoobyNet.com - Subaru Enthusiast Forum

ScoobyNet.com - Subaru Enthusiast Forum (https://www.scoobynet.com/)
-   Computer & Technology Related (https://www.scoobynet.com/computer-and-technology-related-34/)
-   -   Help needed with web coding (https://www.scoobynet.com/computer-and-technology-related-34/903987-help-needed-with-web-coding.html)

pwhittle 02 September 2011 10:37 PM

Help needed with web coding
 
I'd appreciate any help with this.
I've amended the code on one of my web pages, to try to pull in my blog, rather than the one which was on there.
It's a PHP page - my knowledge only stretches to HTML.

since I changed the code (just the URL bit), I get the following error:
Unable to open RSS Feed http://photosupplyshop.blogspot.com/posts/default with error HTTP ERROR: 404, exiting



the code as it is now:
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><?php include("includes/url.htm");?> Photography Tips Blog</strong></h2>
<div id="entry"><?php
$XMLFILE = "http://photosupplyshop.blogspot.com/posts/defaul";
$TEMPLATE = "feed-template.html";
$MAXITEMS = "1";
include("rss2html.php");
?></div>

thanks

ChefDude 02 September 2011 11:05 PM

is rss2html.php in the directory where this script is running?

JackClark 02 September 2011 11:29 PM

$XMLFILE = "http://photosupplyshop.blogspot.com/posts/defaul";

Default?.

pwhittle 03 September 2011 10:16 AM


Originally Posted by JackClark (Post 10217129)
$XMLFILE = "http://photosupplyshop.blogspot.com/posts/defaul";

Default?.

spotted that when I pasted here, but fixing it didn't help

pwhittle 03 September 2011 10:17 AM


Originally Posted by ChefDude (Post 10217088)
is rss2html.php in the directory where this script is running?

it is, yes
it was working before - the only thing I changed was the blog URL. both blogs are Blogger

JackClark 03 September 2011 10:21 AM

Try using http://photosupplyshop.blogspot.com/feeds/posts/default

pwhittle 03 September 2011 01:16 PM


Originally Posted by JackClark (Post 10217418)

cheers, that's done it
is there a way to pull in more than the most recent post?

JackClark 03 September 2011 06:29 PM

Change MAXITEMS it's set to 1


All times are GMT +1. The time now is 07:13 PM.


© 2024 MH Sub I, LLC dba Internet Brands