1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

trying to add stumbleupon to share_page

Discussion in 'Styling and Customization Questions' started by Brandon Sheley, Nov 30, 2011.

  1. Brandon Sheley

    Brandon Sheley Well-Known Member

    no mater where I put this code

    Code:
    <script src="http://www.stumbleupon.com/hostedbadge.php?s=1"></script>
    found here

    http://www.stumbleupon.com/badges/

    in the share_page template, it always falls to the bottom of the page like this.

    stumble.png

    I would like to add it to the right of the Twitter badge before toe google badge.
    I'd like to add it in the sidebar share this page spot as well, but I think if I figure out the one in the post, the sidebar one will be easier.

    Any help is appreciated

    thanks
    -Brandon
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    This works for me.

    Code:
    <div class="shareControl"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1"></script></div>
    You may need to create a new class and add some additional styling.
     
    Brandon Sheley likes this.
  3. Brandon Sheley

    Brandon Sheley Well-Known Member

    I'm not sure what I would add for CSS, it's still showing at the bottom of the screen
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Are you sure you're adding it on the correct place?

    That line of code should be placed directly before this:
    Code:
    <xen:if is="{$xenOptions.plusone}">
     
    Brandon Sheley likes this.
  5. Brandon Sheley

    Brandon Sheley Well-Known Member

    I hadn't tried it there but I still get the same results
    http://admin-talk.com/threads/6143/
    stumble2.png
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    It can only be something else on the page which is interfering with it; some additional JavaScript or something.
     
  7. Brandon Sheley

    Brandon Sheley Well-Known Member

    okay, I'll take a look
    thanks for the help

    *update*
    it was the vb optimize mod messing something up, I'll check out the settings of it
     
  8. Kevin

    Kevin Well-Known Member

  9. Brandon Sheley

    Brandon Sheley Well-Known Member

    I'll have to look but I believe I ran into an issue with it making the page load very slow for some users. :(
     

Share This Page