• Skip to primary navigation
  • Skip to main content
  • Skip to footer

TECHXT

simple extendable solutions

  • Home
  • Wordpress Tutorial
  • SEO
  • How to
  • Forum
  • Knowledge Base
    • Domain Name Generator
    • My Tech Projects
    • News
    • Security
  • About
  • Search

Adding StumbleUpon custom button|Tweet Like Plusone and Share Plugin|Plugin Support Forum|TECHXT

.

Avatar
sp_LogInOut Log Insp_MemberList Members
Lost password?
sp_Search Search
Advanced Search
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
Home
Plugin Support Forum
Tweet Like Plusone and Share Plugin
Adding StumbleUpon custom button
Go to Bottom
sp_NewPost Add Reply
sp_NewTopic Add Topic
sp_Feed Topic RSSsp_TopicIcon
Adding StumbleUpon custom button
November 18, 2011
1:29 am
Avatar
Roy
Guest
Guests
Go to Top
1sp_Permalink sp_Print sp_QuotePost Quote

I have added the following custom Large Button code for StumbleUpon and get the SU badge displayed. The SU badge works but I can't get it lined up with the standard plugin badges (it drops below the others). Have tried moving it to different positions and floating/left etc but still appears below the others

 

The code I have used is:

<script type="text/javascript">
  stumble_url = "%%URL%%";
  stumble_title = "%%TITLE%%";
</script>
<script type="text/javascript" src="http://www.stumbleupon.com/hostedbadge.php?s=5"></script>

 

You can see the problem on my site (http://techlogon.com) - could anyone help with a way to align the custom button? Any help would be appreciated.

November 18, 2011
6:11 am
Avatar
_sudipto_
Admin
Forum Posts: 537
Member Since:
June 22, 2011
sp_UserOfflineSmall Offline
sp_UserWebsite sp_Twitter sp_Facebook
Go to Top
2sp_Permalink sp_Print sp_QuotePost Quote

you can use custom css to line up the stumbleupon button

 

.s4custombtn-1{

margin-top:-22px;

}

< My Domain Names Generator tool crossed 50,000 page views. If you haven't tried yet, then try it out. />

November 18, 2011
11:17 am
Avatar
Roy
Guest
Guests
Go to Top
3sp_Permalink sp_Print sp_QuotePost Quote

Wow, thanks very much Sudipto, this works fine now Smile For anyone else wishing to add a custom StumbleUpon Large Button:

 

Put the code I first quoted above in the "Place Large button Code in this box" of the plugin settings and (to align it up with the other buttons) add the CSS code from Sudipto above in the 'Insert Custom CSS' section of the plugin settings - remember to tick number 6 'Display Custom Buttons' in the Select Icons To Display section.

 

For info, I chose the SU badge that matched the size/format of the standard plugin Large Buttons - the styles of badges and code for them is here: http://www.stumbleupon.com/badges/ - the code for all badges is the same except each badge has a different 'hostedbadge' number at the end.

 

Thanks

November 18, 2011
12:34 pm
Avatar
_sudipto_
Admin
Forum Posts: 537
Member Since:
June 22, 2011
sp_UserOfflineSmall Offline
sp_UserWebsite sp_Twitter sp_Facebook
Go to Top
4sp_Permalink sp_Print sp_QuotePost Quote

Add the CSS only if the buttons are not aligning properly. Not all sites have this problem

< My Domain Names Generator tool crossed 50,000 page views. If you haven't tried yet, then try it out. />

December 11, 2011
12:43 pm
Avatar
pflorin
Guest
Guests
Go to Top
5sp_Permalink sp_Print sp_QuotePost Quote

id like to add a reddit button on my blog 

 

<script type="text/javascript">
  reddit_url = "%%URL%%";
  reddit_title = "%%TITLE%%";
</script>
<script type="text/javascript" src="http://www.reddit.com/static/button/button1.js?newwindow=1"></script>
i added this code to the "Small button Code in this box" what else do i need to do to make the button
appear on my site
December 11, 2011
5:59 pm
Avatar
_sudipto_
Admin
Forum Posts: 537
Member Since:
June 22, 2011
sp_UserOfflineSmall Offline
sp_UserWebsite sp_Twitter sp_Facebook
Go to Top
6sp_Permalink sp_Print sp_QuotePost Quote

You need to select "Display custom button" to display your custom button. Since you are using the small button so make sure that you have display small buttons selected.

< My Domain Names Generator tool crossed 50,000 page views. If you haven't tried yet, then try it out. />

May 3, 2012
4:45 pm
Avatar
Divvy
Guest
Guests
Go to Top
7sp_Permalink sp_Print sp_QuotePost Quote

Sudipto said
you can use custom css to line up the stumbleupon button

 

.s4custombtn-1{

margin-top:-22px;

}

Hello Sudipto, thank you for the fix!

But I have a weird problem... in index the button appears fine, but in the post page is not aligned.

If I add your code, appears fine in the post, but not in index page.

 

Any fix for my problem? 🙂

May 7, 2012
5:47 am
Avatar
_sudipto_
Admin
Forum Posts: 537
Member Since:
June 22, 2011
sp_UserOfflineSmall Offline
sp_UserWebsite sp_Twitter sp_Facebook
Go to Top
8sp_Permalink sp_Print sp_QuotePost Quote

Can you post your site URL? I want to have a look at the issue.

< My Domain Names Generator tool crossed 50,000 page views. If you haven't tried yet, then try it out. />

May 23, 2012
10:48 am
Avatar
Divvy
Guest
Guests
Go to Top
9sp_Permalink sp_Print sp_QuotePost Quote

Sure! Thank you 🙂

 

My URL is http://www.fappers.org (ADULT CONTENT) 

My index page: 

View post on imgur.com

My post page: 

View post on imgur.com

 

Btw, the link of stumbleupon in index page dont go to the post link, but to domain.com 🙁

Is possible to fix this too?

 

Thanks!

Divvy

May 23, 2012
10:50 am
Avatar
Divvy
Guest
Guests
Go to Top
10sp_Permalink sp_Print sp_QuotePost Quote

Thank you for your reply and for trying to helping me 🙂

Did you received my last message sent a few secs ago?

May 28, 2012
8:33 pm
Avatar
_sudipto_
Admin
Forum Posts: 537
Member Since:
June 22, 2011
sp_UserOfflineSmall Offline
sp_UserWebsite sp_Twitter sp_Facebook
Go to Top
11sp_Permalink sp_Print sp_QuotePost Quote

what stumbleupon custom code are you adding??

< My Domain Names Generator tool crossed 50,000 page views. If you haven't tried yet, then try it out. />

May 30, 2012
12:07 am
Avatar
Divvy
Guest
Guests
Go to Top
12sp_Permalink sp_Print sp_QuotePost Quote

Thank you for your reply.

 

I added this code:
[code]

<!-- Place this tag where you want the su badge to render -->
<su:badge layout="5"></su:badge>

<!-- Place this snippet wherever appropriate -->
<script type="text/javascript">
(function() {
var li = document.createElement('script'); li.type = 'text/javascript'; li.async = true;
li.src = 'https://platform.stumbleupon.com/1/widgets.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(li, s);
})();
</script>

[/code]

sp_NewPost Add Reply
sp_NewTopic Add Topic
Add Reply: Adding StumbleUpon custom button
Guest name (required):
Guest email (required):

NOTE: new posts are subject to administrator approval before being displayed

Guest URL (required)
Math Required
What is the sum of:
2 + 10
sp_Feed All RSS
Go to top
Forum Timezone: America/New_York
Most Users Ever Online: 177
Currently Online:
Guest(s) 2
Top Posters:
Natália Gastão: 10
indy: 6
Milan Berger: 5
Cesar Bielich: 5
YethzART: 4
Aqua Skye: 4
Member Stats:
Guest Posters: 369
Members: 88
Moderators: 0
Admins: 2
Forum Stats:
Groups: 2
Forums: 5
Topics: 384
Posts: 1334
Newest Members:
test usser, Anthony Ang, Fernando Rueda, Jesus S. Jr Matubis, Quinton Williamson, William H Cole
Administrators: Administrator: 4, _sudipto_: 537
© Simple:Press —sp_Information

Footer

Subscribe by email

FOLLOW US :

Tools & Apps

  • Domain Names Generator
  • Our Wordpress Plugins
  • HTML Code Table

TechXT Network

  • www.seecoupons.com – Just another Deals & Coupons site
  • pincodes.techxt.com – A search engine for Indian Pincode.
  • stdcode.techxt.com – A search engine for Indian STD Codes
  • mobileinfo.techxt.com – A search engine for Indian Mobile Codes
  • bankifsccode.techxt.com – A search engine for Indian Bank IFSC Codes.

Info

  • Contact us
  • Privacy Policy

  •   simple extendable solutions

© Copyright 2025 TECHXT.COM

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.