JavaScript Editor Ajax software     Free javascripts 



Main Page

Whenever you add something interesting that other people may want to talk about, you want to facili-
tate them in doing so. After creating the
SocialBookmarking
class and referencing it from the page
where your content is located, you simply need to use it like you did in
catalog.php
:
<center>
<?php
// instantiate class by providing link, title, and site name
$social = new SocialBookmarking(‘http://seophp.example.com/catalog.html’,
‘Exciting SEOEgghead Products!’,
‘SEOEgghead’);
// display social bookmarking links
echo $social->getHTML();
?>
</center>
The HTML output, of course, can be customized. We won’t insist on such customization here though.
Also, note the
getHTML()
method has an optional array parameter that contains the services for
which to create links. The default value is
array(‘del.icio.us’, ‘digg’, ‘Furl’, ‘Reddit’,
‘YahooMyWeb’)
, but you can specify any of the known services if you don’t like the default list.
Summary
Feeds provide a streamlined method for users to access content, as well as allow other sites to syndicate
content. Links that are embedded in the feeds will both provide traffic directly as well as indirectly over
time. Users will click the embedded links in the syndicated content. And search engines will see a grad-
ually increasing number of links. This chapter demonstrated a class to easily create an RSS 2.0 feed, as
well as a third-party class to read all of the various formats employed today.
Social bookmarking services offer another sort of organic traffic that should also not be ignored. Stream
-
lining the process of bookmarking on your web site will likely increase the number of bookmarks your
site receives, and hence its ranking in the social bookmarking site search function — and perhaps even
earn a place on its home page.
172
Chapter 7: Web Feeds and Social Bookmarking
c07.qxd:c07 10:42 172


JavaScript Editor Ajax software     Free javascripts