Version: 1.00, by nevetS
Developer Last Online: Oct 2008
Version: 3.5.0 Beta 3
Rating:
Released: 07-06-2005
Last Update: 07-06-2005
Installs: 34
Uses Plugins Template Edits
No support by the author.
I just posted this over at vbWebmaster 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 Digital Point
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:
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
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.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I have plans on making a single install file for vb 3.5 in the near future, but I don't have an installation of 3.08 up and running right now to play with.
Give me two weeks and I'll see if I can't put both a 3.0x and a 3.5 update together.
I'm also planning on making it compatible with both magpie and carp - since those seem to be the most common rss caching systems out there.
Everything seems to have installed properly, but it's not showing up in the postbit. Anywhere special we should put the code in the postbit template. I put it just under the title/rank section.
The only thing I found was that if I tried to set the cache to be anywhere other than the default carp cache it refused to work even with the directories set to 777
This is with the GPL version
The only thing I found was that if I tried to set the cache to be anywhere other than the default carp cache it refused to work even with the directories set to 777
This is with the GPL version
I will look into this this week. Last week I was able to make a few changes that allowed the last five blog entries to display into the member profile.
I had originally set a goal to have this all set up as an installable package. I'm not sure if that's an achievable goal, but I'll see what I can do.