Receiving feeds on a web site

The thing is, your feed will always do that anyway. It’s a function of the thing that generates the feed, nothing else. The reader just shows the content in the order presented (which is, by tradition, latest thing first).

Walter

On Mar 17, 2013, at 4:57 AM, PeterH wrote:

The clincher for me (in deciding to give up doing it myself) is that the feed “box” auto updates, bringing the latest feeds to the top as well.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Just wondered Walter if you had a link to a functioning example of the feed2js action for me to look at.
I don’t suppose I’ll see anything you won’t have already seen at all but so that I can see it working.

Is there a way to constrain the size of the actual box the content of the feeds are in?

I’m keen to make use of the action as it allows me to keep things more self contained than using other services and with the linking issue resolved having more control of the content for the front page.

All the best for now

Anthony


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here you go: Feed2js

I had this pulling the latest Actions from the forge when I first posted it, but something is wrong with FeedBurner at the moment, and it’s not working there. So I changed it to Apple’s “hot news” feed. The Action specifically removes the height attribute from the element you apply it to, so if you want to make it appear within a scrolling box (to limit its size on screen) then you would need to nest the feed element inside another HTML box (as an inline element) and apply the overflow:scroll setting to that outer box. The Action lets you select how many stories you show at a time, but you can’t control how large the description will be for each one – especially if it’s not your feed.

Walter

On Mar 17, 2013, at 3:46 PM, tonzodehoo wrote:

Just wondered Walter if you had a link to a functioning example of the feed2js action for me to look at.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hello again Walter,

The resizing I’ll weigh up. Its down to whether the scroll bars look a bit unseemly on a front page or not.

Just wanted to check where I can affect the changes to the css for the feed2js action mentioned and shown here?

On 18 Feb 2013, 3:44 pm, waltd wrote:

You need to look through the styles defined here:

http://cdn.freewaypro.com/feed2js/0.1.1/feed2js.css

All the best for now

Anthony


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hello again Walter,

I see now looking at the example you have setup where the url should be referenced between the two double quotation marks. They are not visible in the html in the test version I have set up. And yet when I cut and paste the very same html to here then the double quotation marks are there.

How should the url be called up into the space between the two quote marks?

Is this the line where it should be called in (For want of the correct expression!)

{

		// output channel title and description	
		$str.= "<p class="rss-title"><a class="rss-title" href="" . trim($rss->channel['link']) . '"' . $target_window . ">" . addslashes(strip_returns($rss->channel['title'])) . "</a><br /><span class="rss-item">" . addslashes(strip_returns(strip_tags($rss->channel['description']))) . "</span></p>";
	
	} elseif ($chan == 'title') {
		// output title only
		$str.= "<p class="rss-title"><a class="rss-title" href="" . trim($rss->channel['link']) . '"' . $target_window . ">" . addslashes(strip_returns($rss->channel['title'])) . "</a></p>";
	
	}

Let me know if this is relevant or am I barking up the wrong tree?

All the best again

Anthony


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You are deep inside the PHP that converts the XML to HTML in this snippet. I never touch that when I use this function. You need to call the function with arguments. My JavaScript sends an Ajax request to feed2js.php with a querystring containing src=http://url/of/the/feed.xml. Line 51 of my (concatenated) feed2js.php file sets up the $src argument used inside the rest of the script by converting the $_GET[‘src’] variable into a local variable. This gets used again at line 2470 of the same file, in the fetch_rss() function.

$rss = @fetch_rss( $src );

What you might try there, as a debugging step, is to remove the @ sign from that line. (Do this directly on your server. Use a tool like Transmit to open the file directly and edit it in place. Leave it open, so you can revert it by Undo and Save.) See what sort of ugliness erupts when you do this. If you see a big error at this point, copy it down for reference and then undo and save to put the error suppression back in place. (That’s what the @ sign does in PHP.)

Walter

On Mar 18, 2013, at 6:25 AM, tonzodehoo wrote:

Hello again Walter,

I see now looking at the example you have setup where the url should be referenced between the two double quotation marks. They are not visible in the html in the test version I have set up. And yet when I cut and paste the very same html to here then the double quotation marks are there.

How should the url be called up into the space between the two quote marks?

Is this the line where it should be called in (For want of the correct expression!)

{

  	// output channel title and description	
  	$str.= "<p class="rss-title"><a class="rss-title" href="" . trim($rss->channel['link']) . '"' . $target_window . ">" . addslashes(strip_returns($rss->channel['title'])) . "</a><br /><span class="rss-item">" . addslashes(strip_returns(strip_tags($rss->channel['description']))) . "</span></p>";
  
  } elseif ($chan == 'title') {
  	// output title only
  	$str.= "<p class="rss-title"><a class="rss-title" href="" . trim($rss->channel['link']) . '"' . $target_window . ">" . addslashes(strip_returns($rss->channel['title'])) . "</a></p>";
  
  }

Let me know if this is relevant or am I barking up the wrong tree?

All the best again

Anthony


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter. Tried what you suggested and, not sure if its significant at all, but nothing happened!
No change at all.

I’ve restored things to the previous state.

Its almost like the links are trying to connect but aren’t.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

What is the exact address you are entering in the Action to the feed?

Walter

On Mar 18, 2013, at 9:59 AM, tonzodehoo wrote:

Thanks Walter. Tried what you suggested and, not sure if its significant at all, but nothing happened!
No change at all.

I’ve restored things to the previous state.

Its almost like the links are trying to connect but aren’t.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The address I am entering into the feed2js box is:

http://www.thegorbals.co.uk/thegorbalsanecdotes/feed.php

If this is the cause of my problem then I might as well give up if its something as obvious as or to do with this!

Heres hoping.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi there

I am trying to style the contents of feed2js on a web page that is temporarily at http://www.macvalley.org/index2.html

However no matter what I try the feed always seems to revert to the default styles at http://cdn.freewaypro.com/feed2js/0.1.1/feed2js.css

I have added the following to my page before /head and no matter what combinations I have tried, including using !important, the look of the feed remains the unchanged.

<style type="text/css">
<!-- 
#blogfeed .feed2js { color:#000000; font-family:Verdana,Arial,Helvetica,sans-serif; font-weight:bold; font-size:12px; line-height:18px; text-align:left; margin-top:0px; margin-bottom:0.1px; !important; }
#blogfeed .feed2js ul, .feed2js li { list-style-type: none; margin: 0; padding: 0; !important; }
#blogfeed .feed2js li { padding-top: 4px; padding-bottom: 9px; margin-top: 4px; margin-bottom: 4px; border-bottom: 1px solid #756816; !important; }
#blogfeed .feed2js a.rss-item { text-decoration: underline; font-size: 12px; color: inherit; display: inline-block; padding-bottom: 3px; !important; }
#blogfeed .feed2js a.rss-item:hover { text-decoration: none; color #756816; !important; }
#blogfeed .feed2js span.rss-date { display: inline-block; padding-bottom: 3px; padding-top: 3px; font-size: 12px; !important; }
-->
</style>

Hopefully someone can guide me as to what I am doing wrong so the links in the RSS feed match the other links on the page.

Thanks in advance.

Gordon


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi again

Just to follow up on my last post I went direct to the website at http://feed2js.org to create the code and style my feed which worked well when added to the Freeway page.

Gordon


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hello Gordon,

Thanks for this.
It seemed quite promising but sadly I am no further forward with this.
I have used the feedsjs.org site to generate the rss feed but it creates the same issue of non linking links i.e. links which appear to be valid but which don’t actually link to the content.

The results are viewable here:
http://www.thegorbals.co.uk/tester.php

On the left is the feed created from the website and on the right is the feed using the feed2js action. Both produce what look like valid feeds but neither link to the content.

This will be something daft, including me of course, which will be the issue. Whatever it is it is very frustrating.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

AS a bit of an addendum to this I have used a simple means to link to the actual php source of the feeds by placing a graphic box over the top of the feed box with a link to the start of the forums.

Its a crude way of achieving a bit of what I’m hoping to do.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi tonzodehoo

I have used the same settings with some of my RSS feeds and with your one. The code it generates for my feeds works but I see the same problems with your RSS feed links not being passed through.

Unfortunately I’m not skilled enough to know why this is happening so hopefully someone else can help you out.

All the best

Gordon
http://www.gordonlow.net/


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options