The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Latest Blog Feed in Postbit using Carp RSS Details »» | |||||||||||||||||||||||||
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: PHP Code:
Here is the code: PHP Code:
Attach this to hook location: postbit_display_start PHP Code:
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
|
Comments |
#42
|
|||
|
|||
After upgrading to 3.66, my previous blog add-on needed to be redone. I decided to try this one instead, since frankly the previous one was a royal pain.
Works like a charm in 3.66 and seems to get Blogger feeds as well as other normal RSS feeds. Just set up the blogger feed URL as follows: Code:
http://{blogname}.blogspot.com/feeds/posts/default?alt=rss I also couldn't get it to work with custom field paths but it's fine if you just delete those lines. Thanks, nevetS! |
#43
|
|||
|
|||
Question:
Anyone know what I have to do to correct a blog title like the following: Quote:
|
#44
|
||||
|
||||
Quote:
|
#45
|
|||
|
|||
I don't use Feedburner but for WordPress it should look like http://www.somenlog.com/feed/
|
#46
|
||||
|
||||
I used this and 3 other possible links with no use. Here is the code as I have put it in the plugin section. I might have not set the path correctly I assume.
Code:
require_once 'carp/carp.php'; CarpConf('cacheinterval',120); /** You may want to set a cachepath specifically for your forum **/ CarpConf('cachepath','carp/'); CarpConf('cacherelative',0); /** You can omit the above two lines without a problem **/ CarpConf('cborder',''); CarpConf('poweredby',''); CarpConf('maxitems',1); CarpConf('iorder','link'); Thank you again for any possible tips as how to solve this |
#47
|
|||
|
|||
I will pay 15 bucks via PayPal to the person who will make an installable and working product for vB 3.6.x from this one. If someone is interested, please PM me
|
#48
|
|||
|
|||
I don't even get an error - it just shows the Blog: and no link or text at all.
Any ideas ? http://www.widewebtalk.com/showthrea...=1861#post1861 |
#49
|
|||
|
|||
Quote:
|
#50
|
|||
|
|||
No I have not as that is not in the instructions to do that I can find.
|
#51
|
|||
|
|||
My aplologies - you're correct. That was for another add-on I tried that didn't work properly for me.
If I recall correctly, I had to fiddle with this a bit to get it to work. Make sure that your Carp Configuration plugin looks like this: Code:
require_once '/full/server/path/to/forum/carp/carp.php'; CarpConf('cacheinterval',120); CarpConf('cborder',''); CarpConf('poweredby',''); CarpConf('maxitems',1); CarpConf('iorder','link'); CarpConf('linktarget',1); Code:
ob_start(); CarpCacheShow($post[field6]); $blogentry = ob_get_contents(); ob_end_clean(); Code:
<if condition="$post['field6']"> <div class="smallfont">Recent Blog: $blogentry</div> </if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|