vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - 3.6 Working Recent Blog Mod ( Uses Carp Free ) (https://vborg.vbsupport.ru/showthread.php?t=163718)

gotlinks 11-26-2007 10:00 PM

3.6 Working Recent Blog Mod ( Uses Carp Free )
 
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

gotlinks 11-29-2007 06:41 PM

:D thanks for sharing the info and yes thats the way ;)

BTW, I am the person you banned on your forum ( Rember ;) )

djbaxter 12-27-2007 05:06 AM

How is this different from nevetS add-on?

gotlinks 12-28-2007 04:33 PM

Mine works ;)

Gharibe 12-31-2007 08:38 AM

can't download crap

djbaxter 12-31-2007 11:49 AM

Quote:

Originally Posted by Gharibe (Post 1412490)
can't download crap

You don't want crap - you want carp.

Well, to be fair, I shouldn't speak for you. Correction: Most of us don't want crap. :)

But let me repeat a question not yet answered: How is this different from the Nevets add-on? Although l;isted for 3.5x, it works fine with 3.6x. My only complaint with it is that it doesn't parse Atom feeds (e.g., Blogger) very well.

There's also a Magpie add-on but apparently it messes up some of the Ajax functions.

gotlinks 01-23-2008 04:42 PM

Again, mine is the 3.6 version ;)

eJM 01-28-2008 10:27 AM

Thank you for the mod. It works just like I wanted. I did modify the location of the "Recent Blog: link so that it went to the far right side of the postbit (I don't use the legacy postbit, so others might not be able to have this choice). I also decided to align the other items there to the right to keep things orderly. Looks good and works nice. Thank you again.

INSTALLED

Jim

exes_slayer 02-20-2008 04:51 PM

great mod! working like a charm :D

[high]* exes_slayer clicks installed[/high]

HiSoC8Y 03-07-2008 06:34 AM

cant find the free edition of carp


All times are GMT. The time now is 08:47 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03912 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete