The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Twitter feed problem

2 posters

Go down

Solved Twitter feed problem

Post by Ramdaman August 29th 2014, 12:39 am

Hi, I followed the twitter feed problem but all it shows is the title of the widget. Any help would be appreciated, thanks.

If you'd like to check the portal out, please visit http://www.agg-community.com/


Last edited by Ramdaman on August 29th 2014, 6:13 am; edited 1 time in total
Ramdaman
Ramdaman
Active Poster

Male Posts : 1590
Reputation : 99
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

Solved Re: Twitter feed problem

Post by Ange Tuteur August 29th 2014, 1:42 am

Hi,

I am getting a syntax error from your JavaScripts. I am assuming this is what's causing your widget to not work as a syntax error stops all scripts from running.

You have this content in JavaScripts management :
( Modules > javascript codes management )
Code:
<script src="http://twitter.com/javascripts/blogger.js"type="text/javascript"></script><script src="http://twitter.com/statuses/user_timeline/agamersgaming.json?callback=twitterCallback2&count=1" type="text/javascript"></script><script src="http:

This is HTML which refers to an external script. It should be added to where HTML formats. ( e.g. widgets, html page, homepage message ) Also the last script tag is cut off at the source.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Twitter feed problem

Post by Ramdaman August 29th 2014, 3:02 am

I think added that section to the CSS.

It didn't specify which code goes where in the tutorial so I was confused, I think I still am.
Ramdaman
Ramdaman
Active Poster

Male Posts : 1590
Reputation : 99
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

Solved Re: Twitter feed problem

Post by Ange Tuteur August 29th 2014, 5:39 am

Where is this "Tutorial" you used ?
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Twitter feed problem

Post by Ramdaman August 29th 2014, 5:40 am

Ramdaman
Ramdaman
Active Poster

Male Posts : 1590
Reputation : 99
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

Solved Re: Twitter feed problem

Post by Ange Tuteur August 29th 2014, 5:47 am

This goes into the widget :
Code:
<div class="twitterfeed"><div id="twitter_div" style="margin-left: 35px; padding-top: 3px;"><ul id="twitter_update_list" style=" list-style-image : url(http://hitskin.com/themes/13/34/38/i_icon_minipost_participate.png); font-size: 12px; line-height: 15px;"><li style="padding-top: 3px; padding-left 20px;"> </li></ul></div><p align="right" style="margin-top: 2px; font-size: 11px;">recently twittered on <a href="http://twitter.com/forumotion">Forumotion</a></div><script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script><script type="text/javascript" src="http://twitter.com/statuses/user_timeline/forumotion.json?callback=twitterCallback2&count=1"></script>

In the HTML above you must modify this piece to the information which corresponds to your twitter account :
Code:
<a href="twitter.com/forumotion">Forumotion</a>

You must also edit this part in the HTML above :
Code:
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script><script type="text/javascript" src="http://twitter.com/statuses/user_timeline/forumotion.json?callback=twitterCallback2&count=1">

As mentioned :
There are 2 things you have to edit here.
1) - statuses/user_timeline/your twitter account name.json?
* - change the twitter account from forumotion to your twitter account

2) - twitterCallback2&count=1
* - my code only displays your last tweet. if you want the last 2 or 3 you have to change the "count" to your desired number of tweets. (don't go over 5 it doesn't look nice)
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Twitter feed problem

Post by Ramdaman August 29th 2014, 5:51 am

This is the code I put it.

Code:
<div class="twitterfeed">
    
   <div id="twitter_div" style="margin-left: 35px; padding-top: 3px;">
       
      <ul id="twitter_update_list" style=" list-style-image : url(http://hitskin.com/themes/13/34/38/i_icon_minipost_participate.png); font-size: 12px; line-height: 15px;">
          
         <li style="padding-top: 3px; padding-left 20px;">
              
         </li>
          
      </ul>
       
   </div>
    
   <p align="right" style="margin-top: 2px; font-size: 11px;">
      recently twittered on <a href="https://twitter.com/agamersgaming">AGG</a> 
   </p>
</div><script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script><script type="text/javascript" src="http://twitter.com/statuses/user_timeline/agamersgaming.json?callback=twitterCallback2&count=2"></script>

Could it be the /user_timeline/agamersgaming.json?, I put agamersgaming because that's the Twitter account.
Ramdaman
Ramdaman
Active Poster

Male Posts : 1590
Reputation : 99
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

Solved Re: Twitter feed problem

Post by Ange Tuteur August 29th 2014, 6:11 am

This doesn't seem to work anymore : http://twitter.com/statuses/user_timeline/agamersgaming.json?callback=twitterCallback2&count=2

There is a better way on twitter :
Go to Profile > Widgets > Create new > User timeline

Fill out the information, then click "Create widget" and copy the provided code to your widget.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Twitter feed problem

Post by Ramdaman August 29th 2014, 6:15 am

That works. Smile Thank you.

(Might want to update that Tips & Tricks section, you might get more of these kind of threads lol)
Ramdaman
Ramdaman
Active Poster

Male Posts : 1590
Reputation : 99
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

Solved Re: Twitter feed problem

Post by Ange Tuteur August 29th 2014, 6:21 am

You're welcome

Topic archived

Have a great day. Smile
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum