Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Help needed with web coding

Thread Tools
 
Search this Thread
 
Old Sep 2, 2011 | 10:37 PM
  #1  
pwhittle's Avatar
pwhittle
Thread Starter
Scooby Regular
 
Joined: Feb 2005
Posts: 1,793
Likes: 0
Default 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
Reply
Old Sep 2, 2011 | 11:05 PM
  #2  
ChefDude's Avatar
ChefDude
Scooby Regular
 
Joined: Aug 2005
Posts: 4,291
Likes: 0
Default

is rss2html.php in the directory where this script is running?
Reply
Old Sep 2, 2011 | 11:29 PM
  #3  
JackClark's Avatar
JackClark
Scooby Senior
25 Year Member
Liked
Loved
Community Favorite
 
Joined: Dec 2000
Posts: 20,896
Likes: 53
From: Overdosed on LCD
Default

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

Default?.
Reply
Old Sep 3, 2011 | 10:16 AM
  #4  
pwhittle's Avatar
pwhittle
Thread Starter
Scooby Regular
 
Joined: Feb 2005
Posts: 1,793
Likes: 0
Default

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

Default?.
spotted that when I pasted here, but fixing it didn't help
Reply
Old Sep 3, 2011 | 10:17 AM
  #5  
pwhittle's Avatar
pwhittle
Thread Starter
Scooby Regular
 
Joined: Feb 2005
Posts: 1,793
Likes: 0
Default

Originally Posted by ChefDude
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
Reply
Old Sep 3, 2011 | 10:21 AM
  #6  
JackClark's Avatar
JackClark
Scooby Senior
25 Year Member
Liked
Loved
Community Favorite
 
Joined: Dec 2000
Posts: 20,896
Likes: 53
From: Overdosed on LCD
Default

Try using http://photosupplyshop.blogspot.com/feeds/posts/default
Reply
Old Sep 3, 2011 | 01:16 PM
  #7  
pwhittle's Avatar
pwhittle
Thread Starter
Scooby Regular
 
Joined: Feb 2005
Posts: 1,793
Likes: 0
Default

Originally Posted by JackClark
cheers, that's done it
is there a way to pull in more than the most recent post?
Reply
Old Sep 3, 2011 | 06:29 PM
  #8  
JackClark's Avatar
JackClark
Scooby Senior
25 Year Member
Liked
Loved
Community Favorite
 
Joined: Dec 2000
Posts: 20,896
Likes: 53
From: Overdosed on LCD
Default

Change MAXITEMS it's set to 1
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
oilman
Trader Announcements
15
Oct 1, 2015 11:55 AM
taylor85
Wanted
2
Sep 13, 2015 04:57 PM
AzzDSM
Engine Management and ECU Remapping
4
Sep 13, 2015 03:59 PM
Scooby-Doo 2
Wheels And Tyres For Sale
1
Sep 9, 2015 06:51 PM




All times are GMT +1. The time now is 01:35 PM.