[advanced search]
 

Go Back   NamePros.com > Discussion > Domain Names > Domain Newbies

Domain Newbies New to domain names? Have your questions answered here.


Closed Thread
 
LinkBack Thread Tools
Old 07-11-2006, 10:31 PM   #1 (permalink)
NamePros Member
 
Join Date: Jul 2006
Location: Gardendale, Texas
Posts: 48
55.30 NP$ (Donate)

Zhang is an unknown quantity at this point


RSS Question

I would like someone to direct me to a WordPress site that has an RSS feed on it. I'm new to this and I want to make sure that I did mine correctly on my webpage. I had thought that the RSS feed would come in and automatically "post" on the front page, but that didn't happen...And if anyone has some information on a good RSS/News Aggregator addon for WordPress, I'd appreciate that too. Thanks!
Zhang is offline  
Old 07-12-2006, 07:25 AM   #2 (permalink)
Senior Member
 
newton's Avatar
 
Join Date: Jun 2006
Location: BC, Canada
Posts: 1,309
100.00 NP$ (Donate)

newton has much to be proud ofnewton has much to be proud ofnewton has much to be proud ofnewton has much to be proud ofnewton has much to be proud ofnewton has much to be proud ofnewton has much to be proud ofnewton has much to be proud ofnewton has much to be proud of

Animal Rescue
Magpie - http://magpierss.sourceforge.net/ is a good one for bringing in feeds and have it on a few of my blogs.

There is one which posts to blogs such as rss2blog or autoblogger but pricey. If you want to go down the quick route a plugin called firstrss will also help from http://wp-plugins.net/plugin/firstrss/

PM me and will show you a couple of the blogs
__________________
creates.me . casts.me . films.me . cells.me . debts.me . describes.me . delivers.me . installs.me . learns.me . shemales.me . socal.me . unions.me

Last edited by newton; 07-12-2006 at 07:30 AM.
newton is offline  
Old 07-12-2006, 07:30 AM   #3 (permalink)
Rom
Senior Member
 
Join Date: Mar 2005
Location: Yerevan, Armenia
Posts: 2,418
0.20 NP$ (Donate)

Rom has a reputation beyond reputeRom has a reputation beyond reputeRom has a reputation beyond reputeRom has a reputation beyond reputeRom has a reputation beyond reputeRom has a reputation beyond reputeRom has a reputation beyond reputeRom has a reputation beyond reputeRom has a reputation beyond reputeRom has a reputation beyond reputeRom has a reputation beyond repute

Cystic Fibrosis Save a Life Cancer Breast Cancer Animal Rescue Cancer Survivorship Baby Health Baby Health Baby Health Save The Children Save The Children Save The Children VA Tech Memorial Autism Ethan Allen Fund
In Wordpress you could make a page and enter this data as there won't be a need for cron job nor installing the script.

Try www.RSSJava.com for a JavaScript which you can display on HTML pages. The good thing about this is that you can customize from numbers to styles. The bad thing is that it does not display in the source.

If you are looking for a SEO friendly then try this on any PHP Page:

PHP Code:
<?php
/*
Created by Global Syndication's RSS Parser
http://www.globalsyndication.com/rss-parser
*/
set_time_limit(0);

$file = "YOUR FEED URL";

$rss_channel = array();
$currently_writing = "";
$main = "";
$item_counter = 0;

function
startElement($parser, $name, $attrs) {
       global
$rss_channel, $currently_writing, $main;
       switch(
$name) {
           case
"RSS":
           case
"RDF:RDF":
           case
"ITEMS":
               
$currently_writing = "";
               break;
           case
"CHANNEL":
               
$main = "CHANNEL";
               break;
           case
"IMAGE":
               
$main = "IMAGE";
               
$rss_channel["IMAGE"] = array();
               break;
           case
"ITEM":
               
$main = "ITEMS";
               break;
           default:
               
$currently_writing = $name;
               break;
       }
}

function
endElement($parser, $name) {
       global
$rss_channel, $currently_writing, $item_counter;
       
$currently_writing = "";
       if (
$name == "ITEM") {
           
$item_counter++;
       }
}

function
characterData($parser, $data) {
    global
$rss_channel, $currently_writing, $main, $item_counter;
    if (
$currently_writing != "") {
        switch(
$main) {
            case
"CHANNEL":
                if (isset(
$rss_channel[$currently_writing])) {
                    
$rss_channel[$currently_writing] .= $data;
                } else {
                    
$rss_channel[$currently_writing] = $data;
                }
                break;
            case
"IMAGE":
                if (isset(
$rss_channel[$main][$currently_writing])) {
                    
$rss_channel[$main][$currently_writing] .= $data;
                } else {
                    
$rss_channel[$main][$currently_writing] = $data;
                }
                break;
            case
"ITEMS":
                if (isset(
$rss_channel[$main][$item_counter][$currently_writing])) {
                    
$rss_channel[$main][$item_counter][$currently_writing] .= $data;
                } else {
                    
$rss_channel[$main][$item_counter][$currently_writing] = $data;
                }
                break;
        }
    }
}

$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "startElement", "endElement");
xml_set_character_data_handler($xml_parser, "characterData");
if (!(
$fp = fopen($file, "r"))) {
    die(
"could not open XML input");
}

while (
$data = fread($fp, 4096)) {
    if (!
xml_parse($xml_parser, $data, feof($fp))) {
        die(
sprintf("XML error: %s at line %d",
                    
xml_error_string(xml_get_error_code($xml_parser)),
                    
xml_get_current_line_number($xml_parser)));
    }
}
xml_parser_free($xml_parser);


if (isset(
$rss_channel["ITEMS"])) {
    if (
count($rss_channel["ITEMS"]) > 0) {
        for(
$i = 0;$i < count($rss_channel["ITEMS"]);$i++) {
            if (isset(
$rss_channel["ITEMS"][$i]["LINK"])) {
            print (
"\n<div class=\"itemtitle\"><a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\">" . $rss_channel["ITEMS"][$i]["TITLE"] . "</a></div>");
            } else {
            print (
"\n<div class=\"itemtitle\">" . $rss_channel["ITEMS"][$i]["TITLE"] . "</div>");
            }
             print (
"<div class=\"itemdescription\">" . $rss_channel["ITEMS"][$i]["DESCRIPTION"] . "</div><br />");         }
    } else {
        print (
"No News Found");
    }
}
?>
Rom is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 03:54 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85