I didn't use wordpress or joomla or drupal for my blogsite.Here i see all plugin codes built for wordpress. but these codes does not work at my site. But how can i add Social bookmarking button code to my own created blogsite? my website is built by html, php, css and javascript? Can anybody suggest me what can i do?

I didn't use wordpress or joomla or drupal for my blogsite.Here i see all plugin codes built for wordpress. but these codes does not work at my site. But how can i add Social bookmarking button code to my own created blogsite? my website is built by html, php, css and javascript? Can anybody suggest me what can i do?

If you don't use Wordpress, joomla then it's problem for you. So you have to make script for your own website. here i post some codes. check these at your website.
For Delicious paste this code just before </body> tag.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://delicious-button.googlecode.com/files/jquery.delicious-button-1.0.min.js"></script>

If you use wordpress then paste this code:

<a class="delicious-button" href="http://delicious.com/save">
 <!-- {
 url:"<?php the_permalink() ?>"
 ,title:"<?php the_title(); ?>"
 ,button:"wide"
 } -->
 Save on Delicious
</a>

For Tweeter: paste this code:

<script type="text/javascript">
tweetmeme_source = 'machoarts';
tweetmeme_style = 'normal';
tweetmeme_service = 'bit.ly';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>

For Diggpaste this code:

<script type="text/javascript">
(function() {
var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://widgets.digg.com/buttons.js';
s1.parentNode.insertBefore(s, s1);
})();</script>
<!-- Medium Button -->
<a class="DiggThisButton DiggMedium"></a>
<!-- Compact Button -->
<a class="DiggThisButton DiggCompact"></a>

For facebook like button paste this code:

<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0"  allowTransparency="true" style="border:none; overflow:hidden; width:250px; height:40px">

If you frightened to paste this code then check it at this link before using these codes. it's easy to maintain.

i have a php website and would like to add popular social bookmarking sites with the option to add affiliate and google adsense banner codes, can you help www.theschoolworld.com

Member Avatar for LastMitch

@sripani

Start a new thread!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.