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
vBadvanced magpieRSS integration Details »»
vBadvanced magpieRSS integration
Version: 1.02, by Protoman Protoman is offline
Developer Last Online: May 2011 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-22-2005 Last Update: 10-28-2005 Installs: 10
Template Edits
Additional Files Is in Beta Stage  
No support by the author.

This mod is unsupported, so it's by my choice that I help anybody
/*================================
CMPS 2.0 magpieRSS integration
by Protoman
Hack Ver 1.02
================================*/

Description:
This adds a very basic CMPS 2.0 module to your homepage that is generated with the help of magpieRSS. You can specify the number of links to display as well as how often the RSS feed will update. magpie is included in this zip file unmodified as allowed by the GPL license.

Stats
1 directory upload
1 module file upload
1 module addition
1 template addition


If you like this mod:
Please click Install!
I always accept donations too (PM)

Show Your Support

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

Comments
  #2  
Old 10-23-2005, 07:33 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work Protoman! I don't think the limiting will be a problem provided the feeds are trusted and it remains a centre module.
Reply With Quote
  #3  
Old 10-23-2005, 08:15 PM
Odysseus's Avatar
Odysseus Odysseus is offline
 
Join Date: Oct 2002
Location: Regensburg, Germany
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work, thanks for sharing!
This is exactly what I've been looking for today.

Quote:
Limitations:
As far as I know magpie is not capable of limiting the length of the text displayed per line.
You can modify the output directly in rss.php. Below this line:

PHP Code:
$title $item['title']; 
add the following line:

PHP Code:
if(strlen($title) > 30$title substr($title027) . "..."

This will break any too long titles to a maximum of 30 characters. You can of course modify this value according to you needs.
Reply With Quote
  #4  
Old 10-23-2005, 09:17 PM
Rhoads Rhoads is offline
 
Join Date: Dec 2004
Location: Holland
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is exactly where I look up to were, great add-on Protoman
I have 1 question, can I centre the text, because I have now at the right-side a very empty blank flat, I use the standaard wide for mij portal, and my centerblock are to big for the text.
Reply With Quote
  #5  
Old 10-23-2005, 10:34 PM
Protoman's Avatar
Protoman Protoman is offline
 
Join Date: Jan 2005
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the addition odysseus, I think I'll leave it up to the pros to add that code since I'm not familiar with everybody's skill level.


drl2005, you should be able to center the text by changing the 'vba_portal_rss' template to:
Code:
<tr><td class="alt1"><div style="text-align:center;"><div style="text-align:left;margin:0 auto 0 auto; width: 400px;">$rssbits</div></div></td></tr>
you can thank Chroder for that bit of code :nervous:
change the 400px to the width you want the text to be.
Reply With Quote
  #6  
Old 10-24-2005, 07:12 AM
Rhoads Rhoads is offline
 
Join Date: Dec 2004
Location: Holland
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Protoman
thanks for the addition odysseus, I think I'll leave it up to the pros to add that code since I'm not familiar with everybody's skill level.


drl2005, you should be able to center the text by changing the 'vba_portal_rss' template to:
Code:
<tr><td class="alt1"><div style="text-align:center;"><div style="text-align:left;margin:0 auto 0 auto; width: 400px;">$rssbits</div></div></td></tr>
you can thank Chroder for that bit of code :nervous:
change the 400px to the width you want the text to be.
Thnx, works great
Reply With Quote
  #7  
Old 10-25-2005, 09:02 PM
glorify's Avatar
glorify glorify is offline
 
Join Date: Aug 2004
Posts: 376
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work. Two questions.

1) Any way if you are viewing the rss that you can get like the first 30 chracters of the article?

2) Any way to add mutiple feeds? Doesn't have to be in one module. I can do different modules from various sources.
Reply With Quote
  #8  
Old 10-27-2005, 08:55 PM
Odysseus's Avatar
Odysseus Odysseus is offline
 
Join Date: Oct 2002
Location: Regensburg, Germany
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found a mistake in the documentation concerning the cache directory.
The doc says, you have to create a "cache" folder in the modules folder and set it to chmod 777.
The modules folder is the wrong location -- the cache folder must be created in the vbulletin root folder.

E.g., if you have vB installed on www.yourdomain.com/vbulletin/ --> create a folder /vbulletin/cache/ and set it to chmod 777. The cache folder is NOT supposed to be at /vbulletin/modules/cache!

I found this when checking my error logs, where I found some entries like that:

Quote:
[Thu Oct 27 23:37:18 2005] [error] [client xxx.179.143.64] Cache unable to open file for writing: ./cache/755bf6967b6a39e9323c34014011492c
[Thu Oct 27 23:37:35 2005] [error] [client xxx.136.115.204] Cache couldn't make dir './cache'.
[Thu Oct 27 23:37:35 2005] [error] [client xxx.136.115.204] Cache unable to open file for writing: ./cache/755bf6967b6a39e9323c34014011492c
[Thu Oct 27 23:37:38 2005] [error] [client xxx.140.120.30] Cache couldn't make dir './cache'.
[Thu Oct 27 23:37:38 2005] [error] [client xxx.140.120.30] Cache unable to open file for writing: ./cache/755bf6967b6a39e9323c34014011492c
[Thu Oct 27 23:38:20 2005] [error] [client xxx.178.22.138] Cache couldn't make dir './cache'.
[Thu Oct 27 23:38:20 2005] [error] [client xxx.178.22.138] Cache unable to open file for writing: ./cache/755bf6967b6a39e9323c34014011492c
Reply With Quote
  #9  
Old 10-28-2005, 09:58 PM
glorify's Avatar
glorify glorify is offline
 
Join Date: Aug 2004
Posts: 376
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by glorify
Nice work. Two questions.

1) Any way if you are viewing the rss that you can get like the first 30 chracters of the article?

2) Any way to add mutiple feeds? Doesn't have to be in one module. I can do different modules from various sources.
Anything?
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 08:22 PM.


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.05256 seconds
  • Memory Usage 2,290KB
  • Queries Executed 24 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete