Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Latest Blog Feed in Postbit using Carp RSS Details »»
Latest Blog Feed in Postbit using Carp RSS
Mod Version: 1.00, by nevetS (Contributor) nevetS is offline
Developer Last Online: Oct 2008 I like it Show Printable Version Email this Page

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 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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Step 3) Create a new plugin. I named mine: Carp Configuration. Attach it to the "global_start" hook location.
Here is the code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Step 4) One more plugin. This one I called: Get Users Blog Entry
Attach this to hook location: postbit_display_start

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	postbit-highlighted.jpg
Views:	1305
Size:	26.4 KB
ID:	31724Click image for larger version

Name:	postbit-nohighlight.jpg
Views:	1065
Size:	25.9 KB
ID:	31725

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
3.6 Working Recent Blog Mod ( Uses Carp Free ) gotlinks vBulletin 3.6 Add-ons 17 17 Nov 2009 04:23
Latest blog in postbit - magpierss vauge vBulletin 3.5 Add-ons 26 28 Sep 2007 18:05

Comments
  #2  
Old 07 Jul 2005, 14:30
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Thank you for sharing this with us.

Could you please be so kind to copy your instructions into a textfile and upload it to the modification. This is usefull so members can keep the instruction of installed modifications for later use when upgrading for example.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #3  
Old 07 Jul 2005, 19:13
nevetS nevetS is offline
 
Join Date: Jun 2005
Originally Posted by MarcoH64
Thank you for sharing this with us.

Could you please be so kind to copy your instructions into a textfile and upload it to the modification. This is usefull so members can keep the instruction of installed modifications for later use when upgrading for example.
The attached zip file contains the instructions per request.
Reply With Quote
  #4  
Old 07 Jul 2005, 19:33
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Real name: allan
screen please
__________________
-------------------------------------------------------------------------------------------
Administrator vBulletin-Ressources.com, French vBulletin Resources.
Reply With Quote
  #5  
Old 07 Jul 2005, 21:48
nevetS nevetS is offline
 
Join Date: Jun 2005
screenies added.
Reply With Quote
  #6  
Old 07 Jul 2005, 21:54
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Real name: allan
Originally Posted by nevetS
screenies added.
thank you

PS: I just meant that screen is important for those who are not English as me.
__________________
-------------------------------------------------------------------------------------------
Administrator vBulletin-Ressources.com, French vBulletin Resources.
Reply With Quote
  #7  
Old 07 Jul 2005, 22:14
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Originally Posted by nevetS
The attached zip file contains the instructions per request.
Thank you for your fast response.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #8  
Old 07 Jul 2005, 22:30
nevetS nevetS is offline
 
Join Date: Jun 2005
Originally Posted by MarcoH64
Thank you for your fast response.
No problem. I'm very impressed at how easy it is to build plugins in 3.5. It took me several hours to put this together, but I'm very new to vbulletin and I didn't know the in's and out's of anything.

In the future for this script, I'd like to add an installer that creates everything for you, but I don't quite know the best way for doing this yet and I'm going to have to add a function to search for the carp files and accepts some user input for location. I'm also not sure if I should just insert the code into the template or if I should just have the users do that themselves.

Before I go that far, I'm going to wait for any feedback about better ways to go about this. If there's a more performance friendly method, I should use it.

Carp is an caching RSS script. Which basically means it will look for a locally cached version fo the rss feed to display first and if one does not exist it will go out and grab the latest version online. The configuration above expires caches every two hours, so if you update your blog it can be up to two hours before the latest blog entry appears. If 10 different people have blogs configured and post in a thread it can mean that 10 different http queries need to go out to display the thread if it has not been viewed in a long time.

Another way to go about this is to set up a cron job to regularly update the cache files, but that could mean that every time it runs 150 http queries go out if you have 150 members with blog entries configured, and it very well could be the case that 50 of those members are not active posters.

These are all reasons to post the plugin here, though. As I get feedback, I can improve the script and everyone can benefit.
Reply With Quote
  #9  
Old 01 Aug 2005, 16:03
gamebrink gamebrink is offline
 
Join Date: Jul 2005
Originally Posted by nevetS
No problem. I'm very impressed at how easy it is to build plugins in 3.5. It took me several hours to put this together, but I'm very new to vbulletin and I didn't know the in's and out's of anything.

In the future for this script, I'd like to add an installer that creates everything for you, but I don't quite know the best way for doing this yet and I'm going to have to add a function to search for the carp files and accepts some user input for location. I'm also not sure if I should just insert the code into the template or if I should just have the users do that themselves.

Before I go that far, I'm going to wait for any feedback about better ways to go about this. If there's a more performance friendly method, I should use it.

Carp is an caching RSS script. Which basically means it will look for a locally cached version fo the rss feed to display first and if one does not exist it will go out and grab the latest version online. The configuration above expires caches every two hours, so if you update your blog it can be up to two hours before the latest blog entry appears. If 10 different people have blogs configured and post in a thread it can mean that 10 different http queries need to go out to display the thread if it has not been viewed in a long time.

Another way to go about this is to set up a cron job to regularly update the cache files, but that could mean that every time it runs 150 http queries go out if you have 150 members with blog entries configured, and it very well could be the case that 50 of those members are not active posters.

These are all reasons to post the plugin here, though. As I get feedback, I can improve the script and everyone can benefit.

Yes I would like to see some sort of change so that (If 10 different people have blogs configured and post in a thread it can mean that 10 different http queries need to go out to display the thread if it has not been viewed in a long time.) doesn't happen.

Thanks for the code!
Reply With Quote
  #10  
Old 19 Aug 2005, 21:01
EricaJoy EricaJoy is offline
 
Join Date: Sep 2002
Could you kindly make the same sort of thing for vB 3.0.8? It would be very much appreciated.
Reply With Quote
  #11  
Old 19 Aug 2005, 22:22
nevetS nevetS is offline
 
Join Date: Jun 2005
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.

I appreciate the interest.
Reply With Quote
  #12  
Old 20 Aug 2005, 05:58
memdy's Avatar
memdy memdy is offline
 
Join Date: Oct 2002
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.
Reply With Quote
  #13  
Old 20 Aug 2005, 10:38
nevetS nevetS is offline
 
Join Date: Jun 2005
Are you seeing the "Recent Blog" part of it? Or just nothing at all?

You can place it anywhere you want in the postbit, but I think the place that makes sense the most is right around where the username is.

One thing to keep in mind is the part that says
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

field5 was in my own personal setup. It could be that your new field has a different number - field6, field7, etc.
Reply With Quote
  #14  
Old 19 Nov 2005, 05:19
EricaJoy EricaJoy is offline
 
Join Date: Sep 2002
any updates?
Reply With Quote
  #15  
Old 20 Jan 2006, 00:25
irishblacknight irishblacknight is offline
 
Join Date: May 2003
Thumbs up

Nice hack

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

Thanks!
__________________
European Hosting | Blog|Movie Chat
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 12:13.

Layout Options | Width: Wide Color: