1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

vBulletin - Recent Blog

Discussion in 'vBulletin' started by mdvaldosta, Oct 6, 2006.

  1. #1
    I found a couple "Recent Blog" plugins on vBulletin.org though they were made for 3.5...

    Does anyone have a how-to or could point me to the best plugin to use (3.6)?
     
    mdvaldosta, Oct 6, 2006 IP
  2. Endurer

    Endurer Well-Known Member

    Messages:
    1,113
    Likes Received:
    84
    Best Answers:
    0
    Trophy Points:
    140
    #2
    There are apprently two mod available to do the job. One is here (inspired by Shawn's version) & the other here that uses magpie.

    Porting them to 3.6 should not be a problem since the only thing that has changed in this version is the template. I'll be doing it by tomorrow and will let you know the results / template changes (if any).
     
    Endurer, Oct 7, 2006 IP
  3. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, looking foward to your results.
     
    mdvaldosta, Oct 7, 2006 IP
  4. Endurer

    Endurer Well-Known Member

    Messages:
    1,113
    Likes Received:
    84
    Best Answers:
    0
    Trophy Points:
    140
    #4
    Yes, It's working perfectly now at my personal computer. I'll be taking it to my community tonight. Here's a how-to.

    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, as described by nevetS at vbulletin.org.

    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:

    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');
    Code (markup):
    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:

    ob_start();
    CarpCacheShow($post[field5]);
    $blogentry = ob_get_contents();
    ob_end_clean();
    Code (markup):
    Set the plugin to active and click save.

    Now open your postbit template:

    FIND
    				<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
    Code (markup):
    ABOVE ADD
    				<if condition="$post['field5']">
    <div class="smallfont">Recent Blog: $blogentry</div>
    </if>
    Code (markup):
    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.

    Credit goes to nevetS for the mod.
     
    Endurer, Oct 8, 2006 IP
  5. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Works like a charm dude, thanks alot.
     
    mdvaldosta, Oct 11, 2006 IP
    Endurer likes this.
  6. Endurer

    Endurer Well-Known Member

    Messages:
    1,113
    Likes Received:
    84
    Best Answers:
    0
    Trophy Points:
    140
    #6
    You're welcome Mdvaldosta. :)

    Now I'm looking to add a nofollow to Recent weblogs urls. I will update you with it once it has been achieved.
     
    Endurer, Oct 11, 2006 IP
  7. Endurer

    Endurer Well-Known Member

    Messages:
    1,113
    Likes Received:
    84
    Best Answers:
    0
    Trophy Points:
    140
    #7
    To add rel=nofollow edit your carpinc.php file located in the carp/ folder of your site.

    Find:

    (strlen($link.$class.$style)?'>':'').
    Code (markup):
    Replace with:

    (strlen($link.$class.$style)?' rel="nofollow">':'').
    Code (markup):
     
    Endurer, Oct 11, 2006 IP
  8. saadahmed007

    saadahmed007 Admínistratör

    Messages:
    5,272
    Likes Received:
    869
    Best Answers:
    0
    Trophy Points:
    380
    #8
    Thanks dude just installed it on some forums.Worked perfectly with 3.6.2 :)
    Saad
     
    saadahmed007, Oct 19, 2006 IP
  9. dojo

    dojo Peon

    Messages:
    344
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I get this error:

    What format does this need to have? I tried many and it's not working ;(
     
    dojo, May 24, 2007 IP
  10. sahmothers.com

    sahmothers.com Well-Known Member

    Messages:
    2,389
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    135
    #10
    Got it - the second plugin had the wrong filed in it !!!


    Thanks
     
    sahmothers.com, Jun 28, 2007 IP