vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBadvanced magpieRSS integration (https://vborg.vbsupport.ru/showthread.php?t=99111)

Protoman 10-22-2005 09:00 PM

vBadvanced magpieRSS integration
 
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) :p

FleaBag 10-23-2005 06:33 PM

Nice work Protoman! I don't think the limiting will be a problem provided the feeds are trusted and it remains a centre module. :)

Odysseus 10-23-2005 07:15 PM

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.

Rhoads 10-23-2005 08:17 PM

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.

Protoman 10-23-2005 09:34 PM

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.

Rhoads 10-24-2005 06:12 AM

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 :)

glorify 10-25-2005 08:02 PM

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.

Odysseus 10-27-2005 07:55 PM

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

glorify 10-28-2005 08:58 PM

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?


All times are GMT. The time now is 06:44 PM.

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.02120 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete