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: 1477

Attachments:

Reply to This

Replies to This Discussion

You rock as usual!

You da man!!!!

I have a silly question. When you say 'custom code box', do you mean a text box? What do you mean exactly? Thanks.

When you go to My Network>Tools>Custom Code. That is called custom code. 

Very cool! Many thanks!

PROBELM, I have a pin it button next to my status update button and Its already screwed up because my 140 character count is distorted! lol any help here Bernard? you may wanna just look at my home page

Hey Armani,

I have just updated the code. Please the latest version.

Excellent! Any help with my 140 character count? How do I move the 0 back to where the 14 is?

Well, I'm not sure about 140 character count? What exactly is this? What's the problem with that?

Bernard look where Ive circled the character count of 140 words where you update your status in the latest activity section...see how the 14 are together and the 0 is below it? Im not sure of how to fix this is what im asking

It looks like there is a problem with some other codes....I guess my code is not affecting this.

Well, I can only see that error when I log in to your site. 

Sorry for that.

RSS

Latest Activity

Riccardo Rossini replied to Riccardo Rossini's discussion 'problem in redirecting NING 3.0'
25 minutes ago
Mandy P. replied to Mandy P.'s discussion 'Remove unwanted space-Header'
"thanks a bunch..that helps!"
1 hour ago
Aaron replied to Aaron's discussion 'Ning Spring Cleaning Begins This Week'
"Hi everyone, Just a quick note to let you know that this spam cleanup is complete. That said, you…"
2 hours ago

NC for Hire
Jen replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Check it out. I hovered both images, made 2 screen shots (just to capture the hover tip) and placed…"
3 hours ago

NC for Hire
Jen replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"I'm thinking it has something to do with caching. I just inspected the header, and I see 2…"
3 hours ago

NC for Hire
Jen replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Fire-Tech, You guys have given me major relief, just to know it's not something unique on my…"
3 hours ago
Fire-Tech replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Same thing here. All of the same issues...in FF and Chrome, but not as bad in Chrome."
4 hours ago
Kos replied to Kos's discussion '3.0 My Thoughts From A Non-Coder (edited 5/20/13)' in the group The Sandbox
"Edited to add a menu layer suggestion [used the Galaxy SIII]"
5 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service