<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.brightscape.net/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" version="2.0">
<channel>
	<title>Comments for Brightscape Blog</title>
	
	<link>http://brightscape.net/blog</link>
	<description />
	<lastBuildDate>Tue, 27 Jul 2010 13:59:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.brightscape.net/brightscape-comments" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="brightscape-comments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/</creativeCommons:license><xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">brightscape-comments</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Comment on Truncate SimplePie Content with PHP by Robin Parduez</title>
		<link>http://brightscape.net/blog/truncate-simplepie-content-with-php/comment-page-1/#comment-10797</link>
		<dc:creator>Robin Parduez</dc:creator>
		<pubDate>Tue, 27 Jul 2010 13:59:29 +0000</pubDate>
		<guid isPermaLink="false">http://brightscape.net/blog/?p=1323#comment-10797</guid>
		<description>Hi Lars, sorry I haven't got time to look through the SimplePie news script to find the errors.

I know that you want to truncate it on the page rather than within the SimplePie script though. Feel free to send me the full code you are using on your page and I'll have a look at it for you.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Lars, sorry I haven&#8217;t got time to look through the SimplePie news script to find the errors.</p>
<p>I know that you want to truncate it on the page rather than within the SimplePie script though. Feel free to send me the full code you are using on your page and I&#8217;ll have a look at it for you.</p>
<p>Thanks</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape-comments?a=FHCIHit8nrs:8OC3Vwcdw08:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape-comments?d=yIl2AUoC8zA" border="0"></img></a>
</div>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Truncate SimplePie Content with PHP by Lars</title>
		<link>http://brightscape.net/blog/truncate-simplepie-content-with-php/comment-page-1/#comment-10794</link>
		<dc:creator>Lars</dc:creator>
		<pubDate>Tue, 27 Jul 2010 13:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://brightscape.net/blog/?p=1323#comment-10794</guid>
		<description>heh.. clearly *not* having a fun &lt;code&gt; day here.. 

You can easily view their source page here with full array I mean:
http://simplepie.org/demo/newsblocks/&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>heh.. clearly *not* having a fun <code> day here.. </p>
<p>You can easily view their source page here with full array I mean:<br />
<a href="http://simplepie.org/demo/newsblocks/">http://simplepie.org/demo/newsblocks/</a></code></p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape-comments?a=qLd46e1x9tI:kjlK8Jc66u0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape-comments?d=yIl2AUoC8zA" border="0"></img></a>
</div>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Truncate SimplePie Content with PHP by Lars</title>
		<link>http://brightscape.net/blog/truncate-simplepie-content-with-php/comment-page-1/#comment-10793</link>
		<dc:creator>Lars</dc:creator>
		<pubDate>Tue, 27 Jul 2010 13:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://brightscape.net/blog/?p=1323#comment-10793</guid>
		<description>err.. how about this way.. +_+

						*/ 'Whatever RSS Feed,
							'more_move' =&gt; true,
							'items' =&gt; 5
						)); ?&gt;</description>
		<content:encoded><![CDATA[<p>err.. how about this way.. +_+</p>
<p>						*/ &#8216;Whatever RSS Feed,<br />
							&#8216;more_move&#8217; =&gt; true,<br />
							&#8216;items&#8217; =&gt; 5<br />
						)); ?&gt;</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape-comments?a=OEC3xhGEeJ0:8tlKQLW1kQk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape-comments?d=yIl2AUoC8zA" border="0"></img></a>
</div>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Truncate SimplePie Content with PHP by Lars</title>
		<link>http://brightscape.net/blog/truncate-simplepie-content-with-php/comment-page-1/#comment-10792</link>
		<dc:creator>Lars</dc:creator>
		<pubDate>Tue, 27 Jul 2010 13:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://brightscape.net/blog/?p=1323#comment-10792</guid>
		<description>Hi Robin..

Wow.. Thanks for the speedy respond.. 8-)

Looking at the array string provided in their index.php and then at your approach... cannot figure-out how to make them play nice together.. will try pasted here again with code tags.. 

&lt;code&gt;
						 'Whatever RSS Feed',
							'more_move' =&gt; true,
							'items' =&gt; 5
						)); ?&gt;
&lt;/code&gt;

sorry for the script kiddie 101 tuts.. =^_^=</description>
		<content:encoded><![CDATA[<p>Hi Robin..</p>
<p>Wow.. Thanks for the speedy respond.. <img src='http://brightscape.net/blog/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
<p>Looking at the array string provided in their index.php and then at your approach&#8230; cannot figure-out how to make them play nice together.. will try pasted here again with code tags.. </p>
<p><code><br />
						 'Whatever RSS Feed',<br />
							'more_move' =&gt; true,<br />
							'items' =&gt; 5<br />
						)); ?&gt;<br />
</code></p>
<p>sorry for the script kiddie 101 tuts.. =^_^=</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape-comments?a=w9vDThXHprI:K09DYejRj9Y:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape-comments?d=yIl2AUoC8zA" border="0"></img></a>
</div>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Truncate SimplePie Content with PHP by Robin Parduez</title>
		<link>http://brightscape.net/blog/truncate-simplepie-content-with-php/comment-page-1/#comment-10785</link>
		<dc:creator>Robin Parduez</dc:creator>
		<pubDate>Tue, 27 Jul 2010 11:27:54 +0000</pubDate>
		<guid isPermaLink="false">http://brightscape.net/blog/?p=1323#comment-10785</guid>
		<description>Hi Lars, I would truncate the title within the body of the page, not within the SimplePie script itself.

Let SimplePie parse the full title, then when you output it on the page (use the echo truncation string), truncate it.

Does that make sense?</description>
		<content:encoded><![CDATA[<p>Hi Lars, I would truncate the title within the body of the page, not within the SimplePie script itself.</p>
<p>Let SimplePie parse the full title, then when you output it on the page (use the echo truncation string), truncate it.</p>
<p>Does that make sense?</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape-comments?a=XTzepocgpgM:1J5DDbUP7rg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape-comments?d=yIl2AUoC8zA" border="0"></img></a>
</div>]]></content:encoded>
	</item>
	<item>
		<title>Comment on Truncate SimplePie Content with PHP by Lars</title>
		<link>http://brightscape.net/blog/truncate-simplepie-content-with-php/comment-page-1/#comment-10784</link>
		<dc:creator>Lars</dc:creator>
		<pubDate>Tue, 27 Jul 2010 10:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://brightscape.net/blog/?p=1323#comment-10784</guid>
		<description>Hi Robin..

Really Hate to Bug ya.. but bouncing off brick wall for a few hours.. +_+

I'm using the latest SP Newsblocks 2.0 from Here:
http://simplepie.org/demo/newsblocks/
http://simplepie.org/wiki/tutorial/how_to_replicate_popurls

The multi-feed embed has array structure - as per sample code below - and cannot figure out how to Truncate the Feed TITLE character length..?!?


]					
						 'Whatever RSS',
							'more_move' =&gt; true,
							'items' =&gt; 5
						)); ?&gt;
					[

Any magic to get your fix -- echo substr($item-&gt;get_title(), 0, 45); -- working within either that array or via their newsblocks.inc.php script would be Really Great...!!!</description>
		<content:encoded><![CDATA[<p>Hi Robin..</p>
<p>Really Hate to Bug ya.. but bouncing off brick wall for a few hours.. +_+</p>
<p>I&#8217;m using the latest SP Newsblocks 2.0 from Here:<br />
<a href="http://simplepie.org/demo/newsblocks/">http://simplepie.org/demo/newsblocks/</a><br />
<a href="http://simplepie.org/wiki/tutorial/how_to_replicate_popurls">http://simplepie.org/wiki/tutorial/how_to_replicate_popurls</a></p>
<p>The multi-feed embed has array structure &#8211; as per sample code below &#8211; and cannot figure out how to Truncate the Feed TITLE character length..?!?</p>
<p>]<br />
						 &#8216;Whatever RSS&#8217;,<br />
							&#8216;more_move&#8217; =&gt; true,<br />
							&#8216;items&#8217; =&gt; 5<br />
						)); ?&gt;<br />
					[</p>
<p>Any magic to get your fix &#8212; echo substr($item-&gt;get_title(), 0, 45); &#8212; working within either that array or via their newsblocks.inc.php script would be Really Great&#8230;!!!</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape-comments?a=k9y_B5LsUIw:B7oWU945vbk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape-comments?d=yIl2AUoC8zA" border="0"></img></a>
</div>]]></content:encoded>
	</item>
	<item>
		<title>Comment on SimplePie: Parse RSS/Atom Feeds by Robin Parduez</title>
		<link>http://brightscape.net/blog/simplepie-parse-rss-atom-feeds/comment-page-1/#comment-10041</link>
		<dc:creator>Robin Parduez</dc:creator>
		<pubDate>Tue, 29 Jun 2010 14:17:17 +0000</pubDate>
		<guid isPermaLink="false">http://brightscape.net/blog/?p=463#comment-10041</guid>
		<description>Yes, the title is still truncating.
Change this line: &lt;a href="get_link(); ? rel="nofollow"&gt;”&gt;get_title(), 0, 45) . ‘…’; ?&gt;&lt;/a&gt; to &lt;a href="get_link(); ? rel="nofollow"&gt;”&gt;get_title(); ?&gt;&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Yes, the title is still truncating.<br />
Change this line: <a href="get_link(); ?>”>get_title(), 0, 45) . ‘…’; ?></a> to <a href="get_link(); ?>”>get_title(); ?></a>.</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape-comments?a=hS5o-fU74Kw:IrlfWJMWEBE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape-comments?d=yIl2AUoC8zA" border="0"></img></a>
</div>]]></content:encoded>
	</item>
	<item>
		<title>Comment on SimplePie: Parse RSS/Atom Feeds by Harry Finn</title>
		<link>http://brightscape.net/blog/simplepie-parse-rss-atom-feeds/comment-page-1/#comment-10040</link>
		<dc:creator>Harry Finn</dc:creator>
		<pubDate>Tue, 29 Jun 2010 13:50:31 +0000</pubDate>
		<guid isPermaLink="false">http://brightscape.net/blog/?p=463#comment-10040</guid>
		<description>sorry i see that that didnt post correctly - my code is up here = http://harryfinn.co.uk/doitright/test.php - can you see whats wrong?</description>
		<content:encoded><![CDATA[<p>sorry i see that that didnt post correctly &#8211; my code is up here = <a href="http://harryfinn.co.uk/doitright/test.php">http://harryfinn.co.uk/doitright/test.php</a> &#8211; can you see whats wrong?</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape-comments?a=Y5hcVglnDqQ:VaOJtb0CyJA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape-comments?d=yIl2AUoC8zA" border="0"></img></a>
</div>]]></content:encoded>
	</item>
	<item>
		<title>Comment on SimplePie: Parse RSS/Atom Feeds by Harry Finn</title>
		<link>http://brightscape.net/blog/simplepie-parse-rss-atom-feeds/comment-page-1/#comment-10039</link>
		<dc:creator>Harry Finn</dc:creator>
		<pubDate>Tue, 29 Jun 2010 13:48:44 +0000</pubDate>
		<guid isPermaLink="false">http://brightscape.net/blog/?p=463#comment-10039</guid>
		<description>Thanks for the reply - i have just tried that but it doesnt seem to work i get only a few characters now with this code:

set_feed_url($url);  

     $feed-&gt;init();  

    
    $start = 0;  

     $length = 1;  

     $feed-&gt;strip_htmltags(array('img','embed','center','strong'));  

?&gt;  

  

   
       

     SimplePie Test  

  

   
   
                 SimplePie Test  

                  

                 get_items($start,$length) as $item):  
                ?&gt;  
                     &lt;a href="get_link(); ?&gt;"&gt;get_title(), 0, 45) . '...'; ?&gt;  
                   
                   

  


Can you see what im doing wrong?

Many Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for the reply &#8211; i have just tried that but it doesnt seem to work i get only a few characters now with this code:</p>
<p>set_feed_url($url);  </p>
<p>     $feed-&gt;init();  </p>
<p>    $start = 0;  </p>
<p>     $length = 1;  </p>
<p>     $feed-&gt;strip_htmltags(array(&#8216;img&#8217;,'embed&#8217;,'center&#8217;,'strong&#8217;));  </p>
<p>?&gt;  </p>
<p>     SimplePie Test  </p>
<p>                 SimplePie Test  </p>
<p>                 get_items($start,$length) as $item):<br />
                ?&gt;<br />
                     &lt;a href=&quot;get_link(); ?&gt;&#8221;&gt;get_title(), 0, 45) . &#8216;&#8230;&#8217;; ?&gt;  </p>
<p>Can you see what im doing wrong?</p>
<p>Many Thanks!</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape-comments?a=MLCfg5PL3ws:OV9q4jTimzM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape-comments?d=yIl2AUoC8zA" border="0"></img></a>
</div>]]></content:encoded>
	</item>
	<item>
		<title>Comment on SimplePie: Parse RSS/Atom Feeds by Robin Parduez</title>
		<link>http://brightscape.net/blog/simplepie-parse-rss-atom-feeds/comment-page-1/#comment-10037</link>
		<dc:creator>Robin Parduez</dc:creator>
		<pubDate>Tue, 29 Jun 2010 13:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://brightscape.net/blog/?p=463#comment-10037</guid>
		<description>BTW there shouldn't be a gap between the first bracket &lt;code&gt;&lt; &lt;/code&gt; and &lt;/code&gt;&lt;code&gt;?php&lt;/code&gt; but it keeps getting rendered with the gap.</description>
		<content:encoded><![CDATA[<p>BTW there shouldn&#8217;t be a gap between the first bracket <code>< </code> and </code><code>?php</code> but it keeps getting rendered with the gap.</p>
<div class="feedflare">
<a href="http://feeds.brightscape.net/~ff/brightscape-comments?a=Oyvlu0ZQ-vI:LWKJbUTsUkI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/brightscape-comments?d=yIl2AUoC8zA" border="0"></img></a>
</div>]]></content:encoded>
	</item>
</channel>
</rss>
