Home > Forum

Support Forum

Twitter Javascript

Discussions related to the HTML Javascript Adder WordPress plugin.

Twitter Javascript

Postby Matrixxx » Fri Jun 24, 2011 10:00 pm

The following code works within a webpage - can't get it to work in the plugin.
Code: Select all
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/ace.json?callback=twitterCallback2&amp;count=3"></script>
Matrixxx
 
Posts: 4
Joined: Fri Jun 24, 2011 9:58 pm

Re: Twitter Javascript

Postby vaakash » Sat Jun 25, 2011 7:01 am

The mistake is not due to plugin. I get a error "Not Authorized" from twitter. Maybe that can be the reason.
User avatar
vaakash
Site Admin
 
Posts: 672
Joined: Sun Jan 17, 2010 11:15 am
Location: India

Re: Twitter Javascript

Postby Matrixxx » Sat Jun 25, 2011 2:15 pm

sorry i used an example of a twitter account that is locked. Have a look at:

Code: Select all
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/biz.json?callback=twitterCallback2&amp;count=3"></script>


I replaced the "ace" twitter account with "biz"
Matrixxx
 
Posts: 4
Joined: Fri Jun 24, 2011 9:58 pm

Re: Twitter Javascript

Postby vaakash » Sat Jun 25, 2011 4:49 pm

I think this is only for blogger. when i tried this in blogger widget, it works well.
Where did you get his script ? it is not working anywhere except blogger.
User avatar
vaakash
Site Admin
 
Posts: 672
Joined: Sun Jan 17, 2010 11:15 am
Location: India

Re: Twitter Javascript

Postby Matrixxx » Sun Jun 26, 2011 2:20 am

It's used on here - http://dribbble.com/site/about

Which I believe is a wordpress site.
Matrixxx
 
Posts: 4
Joined: Fri Jun 24, 2011 9:58 pm

Re: Twitter Javascript

Postby vaakash » Mon Jun 27, 2011 12:38 pm

What you have to do is... just wrap the script with a div of ID twitter_update_list
You have to use this script.

Code: Select all
<div id="twitter_update_list">
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
    <script type="text/javascript" src="http://twitter.com/statuses/user_timeline/dribbble.json?callback=twitterCallback2&amp;count=3"></script>
</div>


Please note that it is not a problem with HJA. please post issues only regarding to HJA.. :p
User avatar
vaakash
Site Admin
 
Posts: 672
Joined: Sun Jan 17, 2010 11:15 am
Location: India

Re: Twitter Javascript

Postby Matrixxx » Tue Jun 28, 2011 2:04 pm

Thanks for correcting the error with my code. I didn't think it was a problem with the HJA plugin - but couldn't see the error myself.
Matrixxx
 
Posts: 4
Joined: Fri Jun 24, 2011 9:58 pm

Re: Twitter Javascript

Postby vaakash » Wed Jun 29, 2011 12:36 pm

HJA does not run javascript, its work is just to insert the javascript in the sidebar. So if the javascript is right then it will work.
User avatar
vaakash
Site Admin
 
Posts: 672
Joined: Sun Jan 17, 2010 11:15 am
Location: India


 


  • Related topics
    Replies
    Views
    Last post


Return to HTML Javascript Adder

cron


phpBB SEO