New Digg Style Follow Unfollow Application Using jQuery and PHP

You know Digg has changed its style and layout and now I think it looks awesome. This time on 99Points, I create Digg Style follow/unfollow application. Which I tried to create same as original Digg look. Many users like my facebook style tutorials So this is a continues series of Digg style tutorials. I hope You will like it. I have used user IP to check followed or unfollowed. But you can do this in your required way. Please share this if you like and dont forget to subscribe by email.
Note: No spams and newsletters will be send to subscribers. Thanks !
No Spams or Newsletters will be send to Subscribers.
Database Structure
CREATE TABLE IF NOT EXISTS `digg_follow` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fullname` varchar(120) NOT NULL,
`username` varchar(80) NOT NULL,
`image` varchar(100) NOT NULL,
`bio` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
--
-- Dumping data for table `digg_follow`
--
INSERT INTO `digg_follow` (`id`, `fullname`, `username`, `image`, `bio`) VALUES
(1, 'Zeeshan Rasool', '99Points', 'zee', '[ www.99Points.info ] rnWeb Developer, Blogger, Freelancer and Technology Lover.rnDIGG MY STORIES AND I WILL DIGG YOURS'),
(2, 'Designr Fix', 'designrfix', 'designrfix', 'Daily Inspiration and useful online Resources for Web Designers and Graphic Artists'),
(3, 'Smashing Magazine ', 'smashingmag', 'smash', 'Smashing Magazine (www.smashingmagazine.com) is an online magazine dedicated to designers and developers. Curated by editor-in-chief Vitaly Friedman.rn'),
(4, 'Designs Magazine (Designs Mag) ', 'designsmag', 'designmag', 'Digg my submitted stories and i will digg your stories and also Share stuff with me on IM.Drop links for diggs, reddit, twitter, stumbleupon, dZone etc !!rn'),
(5, 'Speckyboy Design Magazine ', 'speckyboy', 'specky', 'Speckyboy Design Magazine offers insightful tutorials, time-saving techniques, fresh and useful resources and inspirational art, covering web design and development, graphic design, advertising, mobile applications and even, the occasional Lego post.rn'),
(6, '10Steps.SG', 'johnsonkoh', '10step', 'Blog focusing mainly on Photoshop Tutorials. Apart from passing on some useful tricks and techniques, we will be providing interesting design news and great freebies.rn');
CREATE TABLE IF NOT EXISTS `digg_follower_ip` (
`userip` varchar(200) NOT NULL,
`digg_id` int(11) NOT NULL,
PRIMARY KEY (`userip`)
)
JQuery Code
$(document).ready(function() {
$('.buttons > a').livequery("click",function(e){
var parent = $(this).parent();
var getID = parent.attr('id').replace('button_','');
$.post("follow.php?id="+getID, {
}, function(response){
$('#button_'+getID).html($(response).fadeIn('slow'));
});
});
});
HTML
CSS
#content{ width:600px; margin-left:80px;}
.digg-panel{ border-bottom:1px solid #CCDCEF; min-height:100px; width:450px; margin-bottom:10px;}
.digg-panel .bio{
width:320px; margin-left:50px;clear:left;
color:#666666;
letter-spacing:-0.03em;
overflow:hidden;
font-family:Arial, Helvetica, sans-serif;
line-height:1.16667em;
font-size:11px;
padding-bottom:5px;
}
.digg-panel .img-username{ float:left; width:340px; vertical-align:top}
.digg-panel .img-username img.userImage{ float:left;-webkit-border-radius: 5px;}
.digg-panel .buttons a{ margin-top:10px;}
.digg-panel .buttons .btn-follow{ display:block; background:url(follow.png) top center no-repeat; height:38px; width:67px; float:right;}
.digg-panel .buttons .btn-following{ display:block; background:url(following.png) top center no-repeat; height:38px; width:103px; float:right;}
/*.digg-panel .buttons a:hover{ border:solid #333333 1px;}*/
.digg-panel .user-title{
font-weight:bold;
margin-bottom:3px;
padding-left:10px;
float:left;
}
.digg-panel .user-title a.fullname{
color:#373529;
font-family:Arial, Helvetica, sans-serif;
display:block;
font-size:1.0em;
text-decoration:none;
}
.digg-panel .user-title a.username{
color:#105CB6;
font-family:Arial, Helvetica, sans-serif;
display:block;
text-decoration:none;
font-size:0.7em;
}
.digg-panel .user-title a:hover{
text-decoration:underline;
}
Download all the files and use this stylish tutorial. Thanks !
12 to “New Digg Style Follow Unfollow Application Using jQuery and PHP”
Post comment

Categories
- AJAX (28)
- Announcement (3)
- Blogging Tips (1)
- Codeigniter (16)
- CSS (14)
- Facebook (8)
- Freelance Tips (1)
- How-To (2)
- Joomla (1)
- JQuery (51)
- Miscellaneous (3)
- Mootools (1)
- MySQL (3)
- PHP (57)
- SEO (2)
- Technology (6)
- Tutorials (17)
- Twitter (2)
- Web Design (26)
- Web Development (58)
- WordPress (3)
Popular post
- 46 Highly Responsive Admin Templates for Your Websites
- $50 PayPal Cash & 5 Premium PHP Wall Script Prizes #Giveaway
- PHP Wall Script Clone with Real Time Features __ January 2013 Release __
- Things you should know if you are a Blogger
- Top 10 Must Have Qualities of a Freelance Web Developer
- Fundamental Factors for Mobile Compatible eCommerce Hosting
- Facebook Wall Script New Version in September 2012
Recommend

[...] forget to subscribe by email. Note: No spams and newsletters will be send to subscribers. Thanks !Source Link $(document).ready(function() { $('#social_nav_vertical li a').hover(function() { [...]
[...] New Digg Style Follow Unfollow Application Using jQuery and PHP [...]
[...] New Digg Style Follow Unfollow Application Using jQuery and PHP [...]
nice tutorial, I was looking some follow unfollow type application
thanks Zeeshan
awesome work, good work
[...] New Digg Style Follow Unfollow Application Using jQuery and PHP [...]
Why use with void if you could just target the span with jQuery?
This was a really helpful tutorial! Everything came together wonderfully thanks to your help!
Kudos to your work!
Thanks KSRealityBites
I think you cannot set ‘userip’ as primary key on ‘digg_follower_ip’ table. Because if you set it to be primary key, it will not allow duplicating entry on ‘userip’, that means a user will only can follow one user!.
Good luck!
Is there someone this can actually be connected with a friends list application and scalable