Back to vBulletin 3.5 Add-ons

Latest Blog Feed in Postbit using Carp RSS
Mod Version: 1.00, by nevetS

This modification is in the archives.
vB Version: 3.5.0 Beta 3 Rating: (5 votes - 4.80 average) Installs: 34
Released: 07 Jul 2005 Last Update: 07 Jul 2005 Downloads: 109
Not Supported Uses Plugins Template Edits  

I just posted this over at http://www.vbwebmaster.com/forums. I'm all excited because this is my first plugin and I know pretty much nothing about vbulletin. I got the idea from Shawn's forum at http://forums.digitalpoint.com

I just put this together for 3.5 using carp.

Step 1) Add a custom profile field for the RSS link. In my setup it was field5.
Step 2) Edit your postbit template as follows:
PHP Code:
<if condition="$post['field5']">
<
div class="smallfont">Recent Blog$blogentry</div>
        </if> 
Step 3) Create a new plugin. I named mine: Carp Configuration. Attach it to the "global_start" hook location.
Here is the code:
PHP Code:
require_once '/path/to/carp/carp.php';
CarpConf('cacheinterval',120);
/** You may want to set a cachepath specifically for your forum **/
CarpConf('cachepath','/where/you/want/your/cache/files/');
CarpConf('cacherelative',0);
/** You can omit the above two lines without a problem **/
CarpConf('cborder','');
CarpConf('poweredby','');
CarpConf('maxitems',1);
CarpConf('iorder','link'); 
Step 4) One more plugin. This one I called: Get Users Blog Entry
Attach this to hook location: postbit_display_start
PHP Code:
ob_start();
CarpCacheShow($post[field5]);
$blogentry ob_get_contents();
ob_end_clean(); 
That's it... away you go. If you don't have carp, you can check it out at: http://www.geckotribe.com/rss/carp/
I'm not sure if this will work with the free version, as I have the paid version.

I'm thinking about using grouper to set it up so I can parse atom files, but I don't know how important that will be.

Note: carp allows you to enter local paths and http paths for rss feeds. I've tried entering both in my user profile field successfully. You may want to disallow users from entering a local path just to be on the safe side. I don't have any code for that right now, but I'm sure there are some examples for field validation out there.

Carp has an option to store it's output in a variable ($carpoutput), but it didn't seem to work for me. That's why I used the ob_start and end_clean functions. If anybody has any feedback as to how this may be improved, I'm willing to listen.

Download

This modification is archived and cannot be downloaded.

Screenshots

   

Similar Mods

Add-On Releases 3.6 Working Recent Blog Mod ( Uses Carp Free ) vBulletin 3.6 Add-ons
Latest blog in postbit - magpierss vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024