Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
3.6 Working Recent Blog Mod ( Uses Carp Free ) Details »»
3.6 Working Recent Blog Mod ( Uses Carp Free )
Version: 1.00, by gotlinks gotlinks is offline
Developer Last Online: Mar 2008 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.8 Rating:
Released: 11-26-2007 Last Update: Never Installs: 18
 
No support by the author.

First of all download carp from here: http://www.geckotribe.com/rss/carp/

I am using the free version and it works perfectly.

Unzip the carp archive (zip) and upload the carp folder to your forums home directory.

Upload the carpsetup.php to the same directory as of your showthread.php (forums home) folder.

Run the setup file, it will give you two choices..

1) directory cache and the other.. mysql cache. I am using directory cache and I recommend you to try this one.

When you hit next, carp will install cache folders to your carp/ directory. If you don't see any errors here then the setup is complete, you should now delete the carpsetup.php from the forum home directory and carpsetupinc.php from your forums/carp/ directory. If you encountered any errors here then it's highly likely that you need to change the directory permissions for you /carp folder in order allow the script to create cache directories.

Now the rest of the process is fairly simple.

Open your admincp (vb) and create a custom profile field. It should be Single-Line text box. Click next and fill the fields. Give it an appropriate title/description, i.e:

For title: Blog Feed
For description: Enter your Blog's RSS feed URL here i.e. http://myblog.com/rss.xml

Leave the default value field empty. Change max length allowed for user input to 200. Field should be editable by user, not a private field, not searchable on member list and do not show on member list. Leave the regular expressions field blank. In the Display page option below, set it to Edit profile and click save.

Now add two plugins in your admincp's Plugins and Products >> Add new plugin. For the first plugin: Selected "global_start" as your hook location, give it an appropriate title (can be anything) and paste the following php code in the plugin php code area:


PHP 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'); 
Set the plugin to active and click save. Now it's time to add the second plugin:

Attach it to postbit_display_start as the hook location, give it a title & paste the following code in the plugin php code area:


PHP Code:
ob_start();
CarpCacheShow($post[field5]);
$blogentry ob_get_contents();
ob_end_clean(); 
Be sure to change CarpCacheShow($post[field5]); to your correct field #.

Set the plugin to active and click save.

Now open your postbit template:

FIND

PHP Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> 
ABOVE ADD

PHP Code:
<if condition="$post['field5']">
<
div class="smallfont">Recent Blog$blogentry</div>
</if> 
Save your template. Now to test it, go to your usercp> edit profile and scroll down, you will see the Blog Feed option there, add your blog's rss feed and hit save changes. Now go to your forums and look for any of your post.. you will see the latest blog link below your username.

If you encounter any problems then post a message here and I will try to fix it accordingly.

Thanks to this member for the 3.5 mod! https://vborg.vbsupport.ru/showthread.php?p=1390269

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-07-2008, 08:34 AM
HiSoC8Y HiSoC8Y is offline
 
Join Date: Mar 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed.

worked like a charm
Reply With Quote
  #13  
Old 05-16-2008, 03:19 PM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

worked great. thanks
Reply With Quote
  #14  
Old 08-29-2008, 02:21 AM
kevcj's Avatar
kevcj kevcj is offline
 
Join Date: Mar 2007
Location: East Texas
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod, thank you!!!

I do have one question though. I went ahead and bought grouper from Gecko tribe to be able to display Atom1 feeds from blogger.com I installed grouper, changed all mention of carp to grouper and when I check private messages, the site crashes as long as the plugins are active.

The error message is -

Quote:
Fatal error: Call to undefined function grouperCacheShow() in edited out full path/public_html/includes/class_postbit.php(265) : eval()'d code on line 92
Any idea of how to fix this?? I would really like to be able to display Atom1 feeds.
Reply With Quote
  #15  
Old 10-30-2008, 02:36 AM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great
can we get the links to open in a new window?
target="_blank" ?

thx
Reply With Quote
  #16  
Old 01-06-2009, 10:49 PM
luket79 luket79 is offline
 
Join Date: May 2007
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Loco.M View Post
works great
can we get the links to open in a new window?
target="_blank" ?

thx
Agreed.

Does this work with any XML feed? I'd like to provide a list of common compatible feed sources if possible (for the users) so they can use it.

Thanks, installed.
Reply With Quote
  #17  
Old 03-28-2009, 12:00 AM
kevcj's Avatar
kevcj kevcj is offline
 
Join Date: Mar 2007
Location: East Texas
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To get the link to open in a new window, in the php code, just under CarpConf('iorder','link');

Enter this CarpConf('linktarget',1);

Save and reload the plugins page.

Source - http://carp.docs.geckotribe.com/tips...01_archive.php

And it works just fine on my page.

Now if I could just this working with Grouper instead of Carp.
Reply With Quote
  #18  
Old 03-28-2009, 12:04 AM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kevcj View Post
To get the link to open in a new window, in the php code, just under CarpConf('iorder','link');

Enter this CarpConf('linktarget',1);

Save and reload the plugins page.

Source - http://carp.docs.geckotribe.com/tips...01_archive.php

And it works just fine on my page.

Now if I could just this working with Grouper instead of Carp.
Thanks Kevin, I need to edit this on my site
the new window was something I wanted as well :up:
Reply With Quote
  #19  
Old 11-17-2009, 02:23 AM
kevcj's Avatar
kevcj kevcj is offline
 
Join Date: Mar 2007
Location: East Texas
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'am having a problem with carp not writing the temporary files. Everything has been working fine for maybe a year and a half, and all of a sudden problems start.
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:27 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04244 seconds
  • Memory Usage 2,307KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete