Recent Topics

1 May 11, 2007 09:44    

My b2evolution Version: Not Entered

Hi,
I'm using B2evolution for my blog, but I want to make a fancy front end in flash...
So The flash application uses the RSS feed from my blog.
That's all good, and it seems to work, except for the fact that macromedia flash can't handle any content between the <channel> ...!..</channel>
So the basic output is now:

<?xml version="1.0" encoding="iso-8859-1" ?>
- <!-- generator="b2evolution/1.9.3" -->
- <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"                                  xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
- <channel>
<title>bLoGgEnDe paarden</title>
<link>http://</link>
<description />
<language>en-US</language>
<docs>http://backend.userland.com/rss</docs>
<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=1.9.3" />
<ttl>60</ttl>
- <item>
<title>test RSS</title>
<link>http://</link>
<pubDate>Tue, 17 Apr 2007 14:31:17 +0000</pubDate>
<dc:creator>Ewout</dc:creator>
<category domain="main">ode to joy</category>
<guid isPermaLink="false">/</guid>
<description>Gaan we een beetje werken of nie? check check cjeck</description>
- <content:encoded>
- <![CDATA[
<p>Gaan we een beetje werken of nie?<br />
check<br />
check <br />
cjeck</p>
]]>
</content:encoded>
<comments></comments>
</item>
- <item>
<title>test 1</title>
<link></link>
<pubDate>Wed, 11 Apr 2007 12:50:32 +0000</pubDate>
<dc:creator>Ewout</dc:creator>
<category domain="main">ode to joy</category>
<guid isPermaLink="false"></guid>
<description>test post</description>
- <content:encoded>
- <![CDATA[ <p>test post</p>
]]>
</content:encoded>
<comments></comments>
</item>
</channel>
</rss>

and I would like it to be

 <?xml version="1.0" encoding="iso-8859-1" ?>
- <!-- generator="b2evolution/1.9.3" -->
- <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
- <channel>
- <item>
<title>test RSS</title>
<link>http://</link>
<pubDate>Tue, 17 Apr 2007 14:31:17 +0000</pubDate>
<dc:creator>Ewout</dc:creator>
<category domain="main">ode to joy</category>
<guid isPermaLink="false">/</guid>
<description>Gaan we een beetje werken of nie? check check cjeck</description>
- <content:encoded>
- <![CDATA[
<p>Gaan we een beetje werken of nie?<br />
check<br />
check <br />
cjeck</p>
]]>
</content:encoded>
<comments></comments>
</item>
- <item>
<title>test 1</title>
<link></link>
<pubDate>Wed, 11 Apr 2007 12:50:32 +0000</pubDate>
<dc:creator>Ewout</dc:creator>
<category domain="main">ode to joy</category>
<guid isPermaLink="false"></guid>
<description>test post</description>
- <content:encoded>
- <![CDATA[ <p>test post</p>
]]>
</content:encoded>
<comments></comments>
</item>
</channel>
</rss>

Does anybody know where I can edit the content of the RSS feed?
I've tried to alter the _main.php allready, but then it gives me a parse error.
Thanx

2 May 11, 2007 10:08

Assuming you still want to keep your rss feeds :-

Make a copy of skins/_rss2/ ( call it skins/_flash/ or summat cool ). Then crack open the new copy of _main.php and delete the following sections of code :-

		<title><?php
			$Blog->disp( 'name', 'xml' );
			request_title( ' - ', '', ' - ', 'xml' );
		?></title>

				<link><?php $Blog->disp( 'blogurl', 'xml' ) ?></link>
				<description><?php $Blog->disp( 'shortdesc', 'xml' ) ?></description>
				<language><?php $Blog->disp( 'locale', 'xml' ) ?></language>
				<docs>http://backend.userland.com/rss</docs>
				<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=<?php echo $app_version ?>"/>
				<ttl>60</ttl>

Save the file and upload it.

To call the file just use yourdomain.com/?tempskin=_flash or whatever cool name you picked ;)

¥

3 May 11, 2007 10:46

Thanks! It worked!!!!

4 May 11, 2007 17:30

Okay, I do feel bad about asking for your help again....
but if you knew the answer to the fist question...you'll probably know this one as wel.

I'want my flash front end to automatically link trough. My Blog is outputting the RSS as follows:


<link>http://www.mysite.com/blog/index.php?blog=1&amp;title=test_1&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>

And I'd like to change it into:


<link><a href="www.mysite.com/blog/index.php?blog=1&amp;title=test_rss&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">TEST</a></link>

That way flash automaticly makes it a link....

Where can I add the <a href= part??????

Thanks a bunch

5 May 14, 2007 11:22

¥åßßå????? or anybody else????

So it it possible to alter the content of an RSS feed so that it contains the <a href part???


<link><a href="www.mysite.com/blog/index.php?blog=1&amp;title=test_rss&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">TEST</a></link>

6 May 14, 2007 11:43

<link><a href="<?php $Item->permanent_url( 'single' ) ?>">TEST</a></link>

¥

7 May 14, 2007 11:57

Thanks ¥åßßå!!!

I won't bug you again!!!


Form is loading...