vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   VbIndex: Integrating RSS Feed (https://vborg.vbsupport.ru/showthread.php?t=59505)

Macindy 01-02-2004 07:56 AM

VbIndex: Integrating RSS Feed
 
Hi there!
I have a problem with integrating an RSS feed to my VbIndex Homepage. I included the phpcode in the phpinclude_start and added the variable to one VbIndex Custombox. But nothing happens...

Has somebody an idea?

Here is the code I used:

PHP Code:

// Example of how to include a seperate file:
// ob_start();
// require("yourheader.html");
// $header = ob_get_contents();
// ob_end_clean();

ob_start();

function 
rssnews() 

require_once(
'/xxx/includes/magpierss/rss_fetch.inc')

function 
IncNews($url) { 
    
$i 0
    
$rss fetch_rss($url); 
    echo 
"<ul>"
    echo 
"<li>"$rss->channel['title'], "</li>"
    foreach (
$rss->items as $item) { 
     
$title $item[title];
          
$title htmlentities("$title"ENT_QUOTES);
        
$link $item[link]; 
        if(
$i 7) { 
            echo 
"<li><a href=\"$link\" title=\"$title\">$title</a></li>\n";
            
$i++; 
        } 
    } 
    echo 
"</ul>"


IncNews('http://www.heise.de/newsticker/heise.rdf'); 
IncNews('http://www.versiontracker.com/macosx/recent.rss'); 
IncNews('http://maccentral.macworld.com/news/mnnfeed.xml');
$rssnews ob_get_contents();
ob_end_clean(); 

and I included $rssnews in custombox template of VbIndex

Lesane 01-02-2004 10:23 AM

Are there no specific errors? Be sure that you have chmodded the directories right where it creates the files (.xml).

Macindy 01-02-2004 10:27 AM

no there aren' t any errors...
The header of VbIndex also includes the phpinclude_start
Perhaps it is not so a good idea to include the script in every page. I also can add it to the source of index.php (the VbIndex PHP file) - but I don't know how i have to do that.
If u want I can post the index.php - or you get it from www.coreforums.net/
Thanks a lot


All times are GMT. The time now is 05:09 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.00983 seconds
  • Memory Usage 1,721KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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