MySQL
  Home arrow MySQL arrow Page 2 - Build Your Own KlipFolio Klip With PHP
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MYSQL

Build Your Own KlipFolio Klip With PHP
By: Frank Manno
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 12
    2002-11-23

    Table of Contents:
  • Build Your Own KlipFolio Klip With PHP
  • Creating a Klip with an Existing XML Feed
  • Testing Your Klip
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Build Your Own KlipFolio Klip With PHP - Creating a Klip with an Existing XML Feed


    (Page 2 of 4 )

    The quickest and simplest way of creating a Klip is by using your existing XML content feed. Getting your Klip setup is as easy as modifying a few lines in the template. Edit the template.klip file and modify the following:

    <owner>
    <author>
    <!--your contact or company name-->
    DevArticles.com
    </author>

    <copyright>
    <!--your copyright notice-->
    Copyright 2001-2002 SiteCubed.com</copyright>


    <email>
    <!--your contact or company email address-->
    frank@devarticles.com
    </email>

    <web>
    <!--your contact or company web address-->
    http://www.devarticles.com
    </web>
    </owner>

    <identity>
    <title>
    <!--the title of this Klip to display in KlipFolio-->
    DevArticles.com Klip
    </title>

    <uniqueid>
    <!--an identifier that is unique to this Klip goes here.
    we suggest you choose some text that is unlikely to be used by
    any other Klip author-->
    DevArtKlip
    </uniqueid>

    <version>
    <!--a version number to help you keep track of your Klip as it changes-->
    1.0
    </version>

    <lastmodified>
    <!--the date this Klip was last modified yyyy.mm.dd:hhmm-->
    2002.11.22:1505
    </lastmodified>

    <description>
    <!--a short description of this Klip-->
    DevArticles.com: ASP, PHP and .NET articles, tutorials and forums for the
    serious web developer.
    </description>

    <keywords>
    <!--a space delimited list of keywords for matching your klip during a
    search the order of the keywords is relevant no more than 15 keywords will be processed-->
    PHP ASP articles tutorials .NET C# mysql XML linux apache JSP java J2EE COM forums
    </keywords>
    </identity>


    The tags are self-explanatory, and include specific instructions if you're in a jam. I found it useful to read the definition provided in order to achieve the best data for each tag.

    The next set is the most important, as it tells the Klip where to locate its source of information:

    <locations>
    <defaultlink>
    <!--the url this Klip links to by default-->
    http://www.devarticles.com/index.php
    </defaultlink>

    <contentsource>
    <!--the url for the KlipFood this Klip uses-->
    http://www.devarticles.com/rss.php
    </contentsource>

    <icon>
    <!--the url for this Klip's default 16x16 gif or jpeg icon-->
    http://www.devarticles.com/feeds/dev_news_logo.jpg
    </icon>

    <banner>
    <!--the url for this Klip's 234x60 gif or jpeg banner-->
    http://www.devarticles.com/feeds/dev_news_title.jpg
    </banner>

    <help>
    <!--the url for this Klip's help web page-->
    </help>

    <kliplocation>
    <!--the url where this Klip is stored this is where KlipFolio periodically checks for updates to your Klip-->
    http://www.devarticles.com/feeds/dev_news.klip
    </kliplocation>
    </locations>

    <defaultlink>
    http://www.devarticles.com/index.php
    </defaultlink>






    This tag specifies the location to which your users are redirected when clicking on an area of the Klip other than the content links (for example, your Klip logo). As you can see, we redirect our users to the DevArticles front page, although you can use any link you wish.

    <contentsource>
    <!--the url for the KlipFood this Klip uses-->
    http://www.devarticles.com/rss.php
    </contentsource>


    This tag is where the heart of your Klip resides. This is the location the Klip uses to retrieve your content from. As you can see above, we simply use our pre-formatted RSS content feed. The power of the Klip is that it can use different technologies to parse your content.

    <icon>
    <!--the url for this Klip's default 16x16 gif or jpeg icon-->
    http://www.devarticles.com/feeds/dev_news_logo.jpg
    </icon>

    <banner>
    <!--the url for this Klip's 234x60 gif or jpeg banner-->
    http://www.devarticles.com/feeds/dev_news_title.jpg
    </banner>


    Although you aren't required to fill in the <icon> and <banner> tags, it adds that extra touch of personality. Your icon must be 16x16 in size, and can be created in any graphical application you choose. I simply designed it in Photoshop, and saved it as a JPEG image. You can do the same with your banner, although you are permitted to a size of 234x60. The banner can be anything from your website logo to a personalized message that appears when users right-click your Klip for customization options.

    Once you have completed designing your Klip icon and banner, it's time to upload and test the Klip.

    More MySQL Articles
    More By Frank Manno


     

    MYSQL ARTICLES

    - MySQL and BLOBs
    - Two Lessons in ASP and MySQL
    - Lord Of The Strings Part 2
    - Lord Of The Strings Part 1
    - Importing Data into MySQL with Navicat
    - Building a Sustainable Web Site
    - Creating An Online Photo Album with PHP and ...
    - Creating An Online Photo Album with PHP and ...
    - PhpED 3.2 – More Features Than You Can Poke ...
    - Creating An Online Photo Album with PHP and ...
    - Creating An Online Photo Album with PHP and ...
    - Security and Sessions in PHP
    - Setup Your Personal Reminder System Using PHP
    - Create a IP-Country Database Using PERL and ...
    - Developing a Dynamic Document Search in PHP ...






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT