Home arrow MySQL arrow Page 2 - Build Your Own KlipFolio Klip With PHP
MYSQL

Build Your Own KlipFolio Klip With PHP


You all know Frank as our DevXPress editor, but we managed to get him writing articles too! Today he shows us how to create our own KlipFolio Klip with PHP and MySQL.

Author Info:
By: Frank Manno
Rating: 5 stars5 stars5 stars5 stars5 stars / 14
November 23, 2002
TABLE OF CONTENTS:
  1. · Build Your Own KlipFolio Klip With PHP
  2. · Creating a Klip with an Existing XML Feed
  3. · Testing Your Klip
  4. · Conclusion

print this article
SEARCH DEVARTICLES

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.
blog comments powered by Disqus
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 ...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials