View Single Post
  #4  
Old 03-08-2005, 02:52 PM
MikeeX MikeeX is offline
 
Join Date: Oct 2003
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thought I would post what I did. Just in case others are interested

PHP Code:
<?

require_once 'rss_fetch.inc';

// Section 1

echo '<table cellspacing="7" cellpadding="7" width="100%">';

// RSS 1

$url1 = 'URL TO RSS';
$num_items1 = 7;
$rss1 = fetch_rss($url1);

if ( $rss1 ) {

}
else {
   echo "Error reading news feed  " .
        "Check back later" .
        "<br>Error Message: " . magpie_error();
}

echo '<tr>';
echo '<td valign="top">';
echo "&nbsp;&nbsp;Source: <b>", $rss1->channel['title'], "</b><p>\n";
$items1 = array_slice($rss1->items, 0, $num_items1);
foreach ( $items1 as $item1 ) {
    $title1 = substr($item1[title], 0, 50);
        //$title1 = $item1[title];
        $url1   = $item1[link];
    echo "? <a href=$url1>$title1</a></li><br>\n";
}
echo '</td>';
echo '<td valign="top">';

// RSS 2

$url2 = 'URL TO RSS';
$num_items2 = 7;
$rss2 = fetch_rss($url2);

if ( $rss2 ) {

}
else {
   echo "Error reading news feed  " .
        "Check back later" .
        "<br>Error Message: " . magpie_error();
}


echo "&nbsp;&nbsp;Source: <b>", $rss2->channel['title'], "</b><p>\n";
$items2 = array_slice($rss2->items, 0, $num_items2);
foreach ( $items2 as $item2 ) {
    $title2 = substr($item2[title], 0, 50);
        //$title2 = $item2[title];
    $url2   = $item2[link];
    echo "? <a href=$url2>$title2</a></li><br>\n";
}
echo '</td>';
echo '</tr>';
echo '</table>';

// Section 2

echo '<table cellspacing="7" cellpadding="7" width="100%">';

// RSS 3

$url3 = ' URL TO RSS';
$num_items3 = 7;
$rss3 = fetch_rss($url3);

if ( $rss3 ) {

}
else {
   echo "Error reading news feed  " .
        "Check back later" .
        "<br>Error Message: " . magpie_error();
}

echo '<tr>';
echo '<td valign="top">';
echo "&nbsp;&nbsp;Source: <b>", $rss3->channel['title'], "</b><p>\n";
$items3 = array_slice($rss3->items, 0, $num_items3);
foreach ( $items3 as $item3 ) {
    $title3 = substr($item3[title], 0, 50);
        //$title3 = $item3[title];
    $url3   = $item3[link];
    echo "? <a href=$url3>$title3</a></li><br>\n";
}
echo '</td>';
echo '<td valign="top">';

// RSS 4

$url4 = 'URL TO RSS';
$num_items4 = 7;
$rss4 = fetch_rss($url4);

if ( $rss4 ) {

}
else {
   echo "Error reading news feed  " .
        "Check back later" .
        "<br>Error Message: " . magpie_error();
}


echo "&nbsp;&nbsp;Source: <b>", $rss4->channel['title'], "</b><p>\n";
$items4 = array_slice($rss4->items, 0, $num_items4);
foreach ( $items4 as $item4 ) {
    $title4 = substr($item4[title], 0, 50);
        //$title4 = $item4[title];
    $url4   = $item4[link];
    echo "? <a href=$url4>$title4</a></li><br>\n";
}
echo '</td>';
echo '</tr>';
echo '</table>';

?>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01148 seconds
  • Memory Usage 1,796KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete