JavaScript Editor Ajax software     Free javascripts 



Main Page

Figure 7-6
Adding Social Bookmarking Support
1.
Create a folder named
social_icons
in your
seophp
folder.
2.
Download the code archive of this book, and copy the social bookmarking images from the
archive to your
social_icons
folder. (The
welcome.html
document from the code download
contains details about the exact locations of the necessary files.)
3.
Create a new file named
social_bookmarking.inc.php
in your
seophp/include
folder, and
type this code in:
<?php
// +-------------------------------------------------------------+
// | SocialBookmarking |
// | Displays links for various social bookmarking services |
// +-------------------------------------------------------------+
// | Copyright (c) 2005 Jaimie Sirovich |
// +-------------------------------------------------------------+
// | Author: Jaimie Sirovich <jsirovic@gmail.com> |
// | Icons taken from Plugin Sociable by Peter Harkins |
// | (http://push.cx) |
// +-------------------------------------------------------------+
class SocialBookmarking
{
var $_link;
var $_title;
var $_site_name;
var $_templates = array(
‘blinkbits’ => array(
‘icon’ => ‘blinkbits.tif’,
165
Chapter 7: Web Feeds and Social Bookmarking
c07.qxd:c07 10:42 165


JavaScript Editor Ajax software     Free javascripts