Twitter widget, my desperation… :)

  • Posted in : BookCard
  • rossidav
    Participant

    I give up…
    I’ve tried many times to follow the steps, tried to change what I thought had to be changed but my score is always the same: zero… the widget doesn’t even appear on the home page (http://www.daviderossi.info/areatest/dr2014/).
    I’ve downloaded the latest version of the template, entered the “data-twitterId” in the index.page and tried to manage the fetcher.js entering there the “data-twitterId” as well.

    what’s wrong with this?
    other users solved the issue with your updates and corrections so I really don’t understand…

    thanks for the help you’ll give me!
    davide

    ahmetsali
    Keymaster

    Hi, this is really weird, i just tested your twitter id on our demo site, and it worked on my side. I can’t see any error on the console so i can’t detect the issue.

    – try downloading a fresh copy of the theme and check again.

    rossidav
    Participant

    thank you for the reply,
    actually I re-downloaded the theme and nothing better happens… I entered my twitter data in your demo “index” but the homepage opens without the twitter widget.

    I suppose there is another change I’m supposed to do to make it work: what else shall I do apart from insert the data in index and in the fetcher? Any third place to look into?

    may the error be in the twitter fetcher.js?
    is this syntax correct?

    twitterFetcher.fetch($(‘html’).attr(“this is my twitterID number”), ”, 1, true, false, true, ”, false, handleTweets);

    function handleTweets(tweets){
    var x = tweets.length;
    var n = 0;
    var element = document.getElementById(‘twitter-list’);
    var html = ”;
    while(n < x) {
    html += '’ + tweets[n] + ”;
    n++;
    }
    html += ”;
    element.innerHTML = html;
    }

    thank you

    ahmetsali
    Keymaster

    no the syntax is not correct, it should be like;

    twitterFetcher.fetch( 427498186618331136 , '', 1, true, false, true, '', false, handleTweets);
    

    427498186618331136 = your twitter id.

    Actually you don’t have to edit twitterFetcher_v10_min.js directly. Just putting your twitter id to html data attribute ; data-twitterId=”388393979672150017″, should be enough. Also note that it will not work on local machine, you need to upload it to ftp to see if it is working.

    cineplexer
    Participant

    Thanks Ahmet… I was working on this from local machine :p

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register