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

Reply
 
Thread Tools
Latest blog in postbit - magpierss Details »»
Latest blog in postbit - magpierss
Version: 1.00, by vauge vauge is offline
Developer Last Online: Dec 2013 Show Printable Version Email this Page

Version: 3.5.0 RC2 Rating:
Released: 08-01-2005 Last Update: Never Installs: 9
Uses Plugins Template Edits
 
No support by the author.

For this hack, we are using magpierss - simple and GPL.
================================================== =========
MagpieRSS provides an XML-based (expat) RSS parser in PHP.

MagpieRSS is compatible with RSS 0.9 through RSS 1.0. Also parses RSS 1.0's modules, RSS 2.0, and Atom. (with a few exceptions)

http://magpierss.sourceforge.net/
================================================== =========
Idea came from DigitalPoint. I have actually been using this for several months on my forum.
But with the new plugin system, it's even easier to share.

Install instructions:

Step 1)
Magpierss

Download & Install: http://magpierss.sourceforge.net/

Create a "cache" directory or make sure path is ok in: MAGPIEDIR/rss_cache.inc


Step 2)
Create a new profile field for the Blog - Note the field#
The example below is field 7.


Step 3)
Edit magpierss.xml
1. include your full path to magpierss/rss_fetch.inc
2. Change field 7 to applicable field.

PHP Code:
<?xml version="1.0" encoding="ISO-8859-1"?>



<plugins>
    <plugin active="1" product="vbulletin">
        <title>Magpierss_include</title>
        <hookname>global_start</hookname>
        <phpcode><![CDATA[require_once '/Full Path to/magpierss/rss_fetch.inc';]]></phpcode>
    </plugin>
    <plugin active="1" product="vbulletin">
        <title>Magpierss_Get_Blog</title>
        <hookname>postbit_display_start</hookname>
        <phpcode><![CDATA[if ($post['field7']){
$rss = fetch_rss( $post['field7'] );
foreach ($rss->items as $item) {
        $blogLink = $item[0]['link'];
        $blogTitle = $item[0]['title'];
    }
}]]></phpcode>
    </plugin>
</plugins>
Step 4)
Import magpierss.xml


Step 5)
In your postbit template add the following (note field #!):

PHP Code:
            <if condition="$post['field7']">
            <
div class="smallfont">Recent Blog: <a href="$blogLinktarget="_blank">$blogTitle</a></div>
                        </if> 
===============================================
Attached files: 2
Template Edits: 1
Simplicity: Easy
Time: < 30 mins, 5 mins for advanced users

Attached is a screen from another nevetS's Blog Feed parser using Carp - it is just as relivant.
https://vborg.vbsupport.ru/showthread.php?t=91781

Show Your Support

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

Comments
  #22  
Old 01-15-2006, 07:21 PM
Shoemoney's Avatar
Shoemoney Shoemoney is offline
 
Join Date: Jan 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will look into it and probably make my own release sometime next week.
Reply With Quote
  #23  
Old 01-16-2006, 03:36 AM
WhatChaMissin WhatChaMissin is offline
 
Join Date: Apr 2005
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I'll be on the lookout
Reply With Quote
  #24  
Old 07-18-2006, 02:31 AM
lexx27's Avatar
lexx27 lexx27 is offline
 
Join Date: May 2005
Location: Athens
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any news...
Reply With Quote
  #25  
Old 04-08-2007, 08:38 PM
ablaye ablaye is offline
 
Join Date: Dec 2006
Location: WebmasterGround.com
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed the mod on my forum at http://www.WebmasterGround.com and after a few code changes, it worked as a charm.
The download files do not work if you do not modify them.
Reply With Quote
  #26  
Old 07-22-2007, 03:32 PM
wtricks's Avatar
wtricks wtricks is offline
 
Join Date: Aug 2006
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What did you do?

I tried all the code changes and I am just losing my minds. Carp RSS is not working either, this one is not working .. coult it be that I am that stupid

I tested it: http://www.wtricks.com/forums/magpierss/test.php

It does pull my titles it seems.

But I cannot make this show in my postbit for the life of me. What am I doing wrong?
Reply With Quote
  #27  
Old 08-27-2007, 03:06 PM
pmkb's Avatar
pmkb pmkb is offline
 
Join Date: Sep 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I posted an updated solution here:

https://vborg.vbsupport.ru/showthread.php?t=156372
Reply With Quote
  #28  
Old 09-28-2007, 04:05 PM
revolver revolver is offline
 
Join Date: Aug 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wtricks View Post
What did you do?

I tried all the code changes and I am just losing my minds. Carp RSS is not working either, this one is not working .. coult it be that I am that stupid

I tested it: http://www.wtricks.com/forums/magpierss/test.php

It does pull my titles it seems.

But I cannot make this show in my postbit for the life of me. What am I doing wrong?
This version works. It's a pain in the bum to install and get working, and you have to make Wonderworms changes for it to display the actual feed.

My suggestion is this. First off make sure that you are using the FULL PATH to the Magpie directory on your server.

If you are unsure about the fullpath, then create a php file that includes the following:

Code:
<?php echo realpath(dirname(__FILE__)); ?>
then upload that file to the same location as your Magpie directory and navigate to it using your browser. Your full path will then be displayed.

Ensure that you replace this part in the magpierss XML file:
Code:
/Full+Path+to/magpierss/rss_fetch.inc
with your Full path. It will be something like /home/username/public_html/magpie/rss_fetch.inc

Where username is the username on your host, and magpie is what you called the magpie directory on your server that you uploaded the files to.

I hope that dumbs it down a shade. If that's not your problem and it was something else let me know because it took me a few goes to get it to work and I probably had the same errors along the way.
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 11:50 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.04417 seconds
  • Memory Usage 2,282KB
  • Queries Executed 22 (?)
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
  • (2)bbcode_code
  • (2)bbcode_php
  • (1)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
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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