How to: Have your own Recent Blog link with out Blogger, Movable Type or WordPress.

Discussion in 'Support & Feedback' started by Nintendo, Dec 2, 2005.

  1. #1
    Here's how you can have your own Recent Blog link if you don't use Blogger, Movable Type or WordPress.

    In the file examples below, you only need to change

    http:/www.DOMAIN.com/

    and

    ***TITLE***

    That's what'll show up in the link URL and link text, and you will have to manually update the title when you make a new blog, and link if the URL changes.

    [size=+2]For perl.[/size]

    
    #!/usr/bin/perl
    
    {
       print "Content-Type: text/xml\n\n";
    print <<EOM;
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- generator="wordpress/1.5.2" -->
    <rss version="2.0">
    <channel>
    	<title>yadda yadda yadda</title>
    	<link>http://www.DOMAIN.com/</link>
    	<description>Not just another wordpress blog</description>
    	<generator>http://wordpress.org/?v=1.5.2</generator>
    		<item>
    		<title>***TITLE***</title>
    	</item>
    	</channel>
    </rss>
    EOM
       exit;
    }
    
    Code (perl):
    Example.

    [size=+2]Use .htaccess to turn a file in to a xml page.[/size]

    In this example, name the file blog.rss.

    At domain.com/.htaccess add...

    AddType 'text/xml; charset=UTF-8' rss

    Then in blog.rss in the directory with .htaccess....

    
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- generator="wordpress/1.5.2" -->
    <rss version="2.0">
    <channel>
    	<title>yadda yadda yadda</title>
    	<link>http://www.DOMAIN.com/</link>
    	<description>yadda yadda yadda</description>
    	<generator>http://wordpress.org/?v=1.5.2</generator>
    		<item>
    		<title>***TITLE***</title>
    	</item>
    	</channel>
    </rss>
    
    Code (xml):
    Example.

    [size=+2]For php.[/size]

    
    <?
    
    // this works
    header("Content-type: text/xml");
    
    ?>
    <!-- generator="wordpress/1.5.2" -->
    <rss version="2.0">
    <channel>
    	<title>yadda yadda yadda</title>
    	<link>http://www.DOMAIN.com/</link>
    	<description>yadda yadda yadda</description>
    	<generator>http://wordpress.org/?v=1.5.2</generator>
    		<item>
    		<title>***TITLE***</title>
    	</item>
    	</channel>
    </rss>
    
    Code (php):
    Example.

    [size=+2]Or a simple text file will work.[/size]

    Though when you look at the file you'll just see text instead of what you see in a normal xml page.

    
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- generator="wordpress/1.5.2" -->
    <rss version="2.0">
    <channel>
    	<title>yadda yadda yadda</title>
    	<link>http://www.DOMAIN.com/blog</link>
    	<description>yadda yadda yadda</description>
    	<generator>http://wordpress.org/?v=1.5.2</generator>
    		<item>
    		<title>***TITLE***</title>
    	</item>
    	</channel>
    </rss>
    
    Code (xml):
    Example.

    And then what ever the URL is of the xml page, you enter it in your options.
     
    Nintendo, Dec 2, 2005 IP
    Hodgedup, Nokia999 and wrmineo like this.
  2. Hodgedup

    Hodgedup Notable Member

    Messages:
    3,962
    Likes Received:
    287
    Best Answers:
    0
    Trophy Points:
    203
    #2
    Edit

    That's really cool Nintendo if people only use if for a blog. Thanks
     
    Hodgedup, Dec 2, 2005 IP
  3. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #3
    And if anyone uses it for something other than a blog (like news or whatever else), they will be banned. :)
     
    digitalpoint, Dec 2, 2005 IP
    Crazy_Rob likes this.