Hi folks,

I think many NCs were desperately looking for a solution to embed paypal widget in their blogs lately. 

So here is the solution:

Use this code in Custom code area.

THIS CODE IS FOR ALL BLOGS

<script type="text/javascript">
x$(document).ready(function() {
x$(".xg_span-16 .xg_blog .postbody").after('<div style="float:right;">PAYPAL EMBED CODE GOES HERE</div>');
});
</script>

 

THIS CODE IS FOR SPECIFIC BLOG
<script type="text/javascript">
if (window.location.href.split('blogs/')[1] == 'YOUR_BLOG_NAME') {
x$(".xg_span-16 .xg_blog .postbody").after('<div style="float:right;">PAYPAL EMBED CODE GOES HERE</div>');
}
</script>

Understanding YOUR_BLOG_NAME http://www.YOURSITE.com/profiles/blogs/YOUR_BLOG_NAME

You may want to contact me for custom design and custom solution @ bernardmax2@gmail.com

Tags: blog, code, embed, in, paypal, widget

Views: 398

Reply to This

Replies to This Discussion

Hi

nice tip!

do you have a similar code for adsense adverts? I tried the above the absense and didnt work

thanks

Well Joe, for ads and stuff check sweetpotato's tip here

thanks

i wish a code that makes it appear on the very bottom - that one in the link make it appear after paragraph

Credit goes to Sweetpotato

Why don't you the same code after modifying a little bit...

give this a try..

 

<!-- Insert Ads INSIDE Blog Posts by SweetPotato -->
<div id="ad_after_jump" style="display:none;">
<!-- Advert Script START -->
Your google ads goes here
<!-- Advert Code END -->
</div><script type="text/javascript">if (typeof(x$) != 'undefined') {  x$('.xg_widget_profiles_blog_show .postbody ').after('<p style="font-weight:bold;"><div id="ContentAdverts"></div>');    var inject_SPadverts = document.getElementById('ad_after_jump');    var SPadverts = document.getElementById('ContentAdverts');    SPadverts.innerHTML = inject_SPadverts.innerHTML; }</script>

hey!! thanks a lot  - it worked!

somehow using this code my adsense adverts are appearing perfectly when using Firefox and Opera browsers but do not appear at all when using internet explorer - the other adsense adverts not using this code are appearing okay using IE

I Need to check it. I will check it when I get time. Thanks

no problem

Hey Bernard, thanks for this post. Is there a way to repeat this for forum discussions? I would like to be able to create a series of helpful forum discussion about products that support the free educations videos and articles we post. I find that my PayPal form codes and content are always stripped from any forum discussions I add.

Thanks!

Hey James. You are welcome.

 

Use this class

.xg_span-16 .description

instead of this class

.xg_span-16 .xg_blog .postbody

This doesn't work on my network and I tried everything,I dont know why????

Waiters Today Social Network

 

How do I get my Paypal embed code?

RSS

What's Up With Ning 3.0?

Click here to share your thoughts on what features we should develop next!

Projects that the Ning 3.0 Team is currently working on: 

Articles - a new way of organizing longer content pieces.

Activity Feed Updates - options for more content in the activity feed.

Forum Notifications - ability for members to opt into receiving notifications of new discussions in forums.

APIsThe ability to create new members and content programatically.

For more information on what's next, visit the Product Roadmap

Latest Activity

Strumelia replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"+1"
2 minutes ago
Strumelia replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"I've been saying this exact thing for months and months John.  It seems like simple…"
3 minutes ago

NC for Hire
SweetPotato replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"I think this might be in response to how pages were migrating over - they needed to be better…"
11 minutes ago
soaringeagle replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"tru dat its a minor detail and works fine as is just didnt expect it to be applied universally when…"
21 minutes ago
soaringeagle replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"the :"what were working on" needs to be updated since all but 1 of them were released and…"
24 minutes ago
Strumelia replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"I do know what you mean.  On the other hand, it's easy to simply start my article by…"
25 minutes ago
Thammy Om replied to Lorenzo M. Oliver's discussion '[NING 3.0 EMIGRACIÓN] PROCESO' in the group Ning Networks en español
"Y eso lo hay? Alguna sugerencia?"
26 minutes ago
John Bizley replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"Once again this is all very nice BUT this is what is really peeing me off, we keep getting these…"
28 minutes ago

© 2014   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service