Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Add Javascript twitter Follow Button Rate Topic   - - - - -

 
  • AmitP
  • Senior Member
  • Members
  • Join Date: 08-Feb 10
  • 510 posts

Posted 28 March 2012 - 09:28 PM #1

Hi All,

I am trying to add a javascript twitter follow button to my website however it doesn't work properly at all, I cannot seem to edit details such as hide count etc. I am just trying to add it to the my account block if possible.

any help would be greatly appreciated.

https://dev.twitter....nywhere/welcome
This is the code I am trying to get to work.

Thank you
VPS 2.0GHz + 1GB RAM

 
  • brandonvd
  • is Super Awesome
  • Members
  • Join Date: 19-Dec 06
  • 2633 posts

Posted 29 March 2012 - 01:21 AM #2

I'm not exactly sure how you are trying to add the code, but did you try {literal} tags?

So, instead of:

<script type="text/javascript">
   twttr.anywhere(function (T) {
       T.hovercards();
    });
</script>

Put:

{literal}<script type="text/javascript">
   twttr.anywhere(function (T) {
       T.hovercards();
    });
</script>{/literal}

And be sure to clear your cache after you are done.

Hope that helps,

Brandon

 
  • AmitP
  • Senior Member
  • Members
  • Join Date: 08-Feb 10
  • 510 posts

Posted 30 March 2012 - 02:44 PM #3

Thanks Brandonvd, im trying to implement the following code however none of the options such as data-show-count seem to work. When selecting save these lines of code get deleted.

<a href="https://twitter.com/twitterapi" class="twitter-follow-button" data-show-count="false" data-lang="en">Follow @twitterapi</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>


VPS 2.0GHz + 1GB RAM

 
  • Adrian8
  • Junior Member
  • Members
  • Join Date: 04-Feb 11
  • 138 posts

Posted 30 March 2012 - 04:01 PM #4

How are you trying to add this code?

If using the wysiwyg editor source mode TinyMCE does strange things to code in source code mode, use CKEditor instead.
www.ecopolar.com - V2.1.4
www.ledpolar.com - V2.2.4

 
  • AmitP
  • Senior Member
  • Members
  • Join Date: 08-Feb 10
  • 510 posts

Posted 30 March 2012 - 05:10 PM #5

Thanks SO much far that, works a treat now! :D
VPS 2.0GHz + 1GB RAM

 
  • lauser
  • Newbie
  • Members
  • Join Date: 17-Jul 12
  • 1 posts

Posted 07 August 2012 - 12:48 PM #6

<div class="textwidget">
<script type="text/javascript" src="http://s.moopz.com/f...t.js"></script> <div id="twitterfanbox">
<script type="text/javascript">fanbox_init("SuCesta");</script> </div>
</div>
<style type="text/css">
.FB_SERVER_IFRAME {
height: 250px !important;
width: 182px !important;</style>
<p>