Hi NCs,

Do you know how to add a pinterest button next to every twitter button? No?  No worries, here is the code. Simply copy and paste the code into custom code box. You are done. 

Learn more about share button here

Also you can contact me for better share button customization and other ning stuff at bernardmax@gmail.com

The Code Updated: 27/10/12

<!-- Add pinterest Button BEGIN -->
<script type="text/javascript">
x$(document).ready(function(){
x$(".post_to_twitter").after('<a class="addthis_button_pinterest_pinit"></a>');
x$(".xg_module_activity .addthis_button_pinterest_pinit").css('display','none');

});
</script>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":false};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4ff19dea60772bf2"></script>
<!-- AddThis Button END -->

<style>

.at_PinItButton:hover {

background-position: -124px 0px;
}

.at_PinItButton {
background-image: url(http://api.ning.com:80/files/Xuh4rezxPoq7fgI*fSEmPfHFCb6apRyGLRkMmwJALs96Rw6ee5lwXuN-Fk8cQQLg7yB4xX1jmqQJmlYp4fQhC*CTOIRuW8Gk/gtcliketweetpinit.gif);
background-repeat: no-repeat;
background-position: -124px 0px;
}
</style>

_
_

_

Live Example

Screenshot Example:

Tags: button, pinterest

Views: 1526

Attachments:

Reply to This

Replies to This Discussion

Bernard, you rock like Gangnam style.

Hey Bernard,

I need your help, my pinerest is not working as before yesterday everything was fine but now by click on it nothing happened just window scrolls up...

Help me..

Hi Adeel,

Can you show me your site link?

Sure

VU Cafe

Hi Adeel,

I saw your site and it looks like there is an error. BTW, are you using the same code or you have made some changes?  

Thanx for having look on it...

I didn't make any changes in it and as i said, everything was working fine since yesterday...

Remove all the codes from custom code and add one bye one. It seems like one code is conflicting with other code. You need to take a close look.

Best Wishes

Bernard

Let me check...

THanx in advance..:)

No there is no problem with custom codes box as i removed and just used Pinterest code in it...there is something else..

may be Network cache clear ???

I am having an issue. It was there and now all I see is code where there should be graphic images and the code it's showing is my Google analytics. This really messed me up cause when i go to remove the code you gave us, it's gone.

This is not good. I need help please.

It looks like the code is within advanced css area. Or may be you are not pasting the complete code. check once again.

EXCELLENT work, Bernard

RSS

Latest Activity

Jorge Bravo joined Allison Leahy's group
Thumbnail

The Sandbox

Join The Sandbox to experiment with Ning 3.0 now!The Ning Team will be triaging bug reports and…See More
5 minutes ago
Allison Leahy replied to SM's discussion 'Just discovered Disqus commenting on Ning - how do we add more features?'
"Thanks for looking into it, SM!"
19 minutes ago
Kos replied to Gary W Norman's discussion 'Tagline Font Size or Type - can it be changed?'
"You can remove that earlier code and replace it with this.  If you don't want the bold,…"
20 minutes ago
Gary W Norman replied to Gary W Norman's discussion 'Tagline Font Size or Type - can it be changed?'
"too cool! Let me check it out..and I guess i over ride the old one denoting font size with this.…"
25 minutes ago
SM replied to SM's discussion 'Just discovered Disqus commenting on Ning - how do we add more features?'
"I asked Jon if SSO cost money or not? I guess at some point in time used to charge…"
40 minutes ago

NC for Hire
Bernard Lama replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
"OIC then we can only do this with javacript code. I will try it and let you know. Best Bernard"
48 minutes ago
A discussion started by Andrew Sanderson was featured

Video chat for ning network

I hva eread a dew discussions about adding video to ning networks and wanted to get all the…See More
48 minutes ago

NC for Hire
SweetPotato replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
"Diego, I PMd you. hope you got it. SP"
49 minutes ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service