Author:
rurbaniak
|
[
Next Thread |
Previous Thread |
Next Message |
Previous Message
]
Date Posted: 09:07:19 03/11/05 Fri
In reply to:
alfie
's message, "Re: Using CaRP with b2Evolution" on 20:29:46 03/10/05 Thu
You can have several feeds in one PHP file if you like. Here's an example of 1 PHP file with several feeds.
require_once "/path_to_carp/carp.php";
// same settings as the previous example
CarpConf('bi','• ');
CarpConf('poweredby','');
CarpConf('maxitems',5);
CarpCacheShow('http://www.somesite.com/index.rdf');
echo '';
// reset all settings to their defaults
CarpConfReset();
// make any desired changes again
CarpConf('bi','• ');
CarpConf('poweredby','');
CarpConf('maxitems',5);
CarpCacheShow('http://www.somesite.com/rss.xml');
echo ' ';
// reset all settings to their defaults
CarpConfReset();
// make any desired changes again
CarpConf('bi','• ');
CarpConf('poweredby','');
CarpConf('maxitems',5);
CarpCacheShow('http://www.somesite.com/rss.xml');
echo ' ';
>Ok, I might be able to do that. I just have to figure
>out if each b2evo blog has its own copy of the
>template or of there's only one for the entire b2evo
>installation... because of course I only want the
>feeds on one page, the "feed blog." not on all pages
>(other blogs).
>
>Thing is, if I want several different feeds from
>different sources to appear on the same page, would I
>then create a different php file for each feed, and
>then insert a seperate require_once line in the
>template for each feed?
>
>>I'm not too familiar with b2evo, but does it have an
>>editable template where you can place code?
>>
>>If so, first create a PHP file with NOTEPAD, and call
>>it whatever you want, example file.php
>>
>>Place this code in that PHP file.
>>
>>
>>require_once '/where carp.php is located/carp.php';
>>// Add any desired configuration settings below
>this
>>line using "CarpConf" and other functions
>>CarpCacheShow('http://www.geckotribe.com/press/rss/
>pr.r
>>ss');
>>?>
>>
>>Make sure you edit the require_once line.
>>
>>After that, then drop this line into your template
>>where you want the feed, assuming it's a PHP template
>>of course.
>>
>>include 'where_it's_located/the_name_of_the_file.php';
>>
>>
>>Then the Carp news feed should show up where you need
>>it.
>>
>>
>>
>>
>>
>>
>>
>>>Hi. I am just wondering if CaRP can be easily
>>>integrated into b2evo.
>>>
>>>Essentially what I want to do is create an additional
>>>blog on my b2evo site, so that it is in the same
>>>template, in the linkblog, all blogs, etc...
>>>
>>>but instead of manually adding posts to this "feeds
>>>blog" it would just be automatically filled with the
>>>RSS feeds.
>>>
>>>I know next to nothing about PHP, I can manage to
>>>insert things into the PHP main file to some degree,
>>>thats it.
[
Next Thread |
Previous Thread |
Next Message |
Previous Message
]
|