Can't figure out this stupid theme on tumblr

by tn5421

tn5421
Sharing: For a better tomorrow
Torrents
Posts: 1,370
Threads: 36
Joined: May 2015
Reputation: 10
05-21-2016, 03:11 AM
#41548 (1)
Code:
</div>
            <div id="sideblog-twitter">
              <h2><a href="http://www.twitter.com/{TwitterUsername}">@{TwitterUsername}</a></h2>
              <div id="tweets"></div>
              <script type="text/javascript">
                  function recent_tweets(data) {
                      for (i=0; i<data.length; i++) {
                          document.getElementById("tweets").innerHTML =
                              document.getElementById("tweets").innerHTML +
                              '<a href="http://twitter.com/{TwitterUsername}/status/' +
                              data[i].id_str + '"><div class="content">' + data[i].text +
                              '</div></a>';
                      }
                      document.getElementById("sideblog-twitter-loading").style.display = 'block'; /* was none */
                      document.getElementById("sideblog-twitter").style.display = 'block';
                  }
              </script>
            </div>

Essentially what I'm trying to do is get the fucking twitter sideloader to load my latest tweets. It's doing fuckall.

http://tumblr.tn5421.me/

The theme is: Rank & File 1.2.4 by Sleepover.
Available at http://ranknfiletheme.tumblr.com/

It might just be me being dumb but I've been up too long and can't figure this shit out.

my sc2 replays&info | my osu stuff | my steam | my HB
Do you like to read or write fanfiction?  Then please check out my usergroup.
Yuu
ℳℴℯ❤ ( ´・‿-) ~ ♥
lainchan
Posts: 371
Threads: 8
Joined: Aug 2014
Reputation: 9
05-21-2016, 08:34 AM (This post was last modified: 05-21-2016, 08:35 AM by Yuu.)
#41557 (2)
I'm not sure if it works but have you tried calling the scripts/locating the script tags before the "tweets" div? Like this:

Spoiler

Code:
</div>
           <div id="sideblog-twitter">
             <script type="text/javascript">
                 function recent_tweets(data) {
                     for (i=0; i<data.length; i++) {
                         document.getElementById("tweets").innerHTML =
                             document.getElementById("tweets").innerHTML +
                             '<a href="http://twitter.com/{TwitterUsername}/status/' +
                             data[i].id_str + '"><div class="content">' + data[i].text +
                             '</div></a>';
                     }
                     document.getElementById("sideblog-twitter-loading").style.display = 'block'; /* was none */
                     document.getElementById("sideblog-twitter").style.display = 'block';
                 }
             </script>
             <h2><a href="http://www.twitter.com/{TwitterUsername}">@{TwitterUsername}</a></h2>
             <div id="tweets"></div>
           </div>
tn5421
Sharing: For a better tomorrow
Torrents
Posts: 1,370
Threads: 36
Joined: May 2015
Reputation: 10
05-22-2016, 02:30 AM (This post was last modified: 05-22-2016, 03:04 AM by tn5421.)
#41617 (3)
I'll make a backup real quick and check it out, and will get back to you. (here is the official theme: https://www.tumblr.com/theme/8952)

my sc2 replays&info | my osu stuff | my steam | my HB
Do you like to read or write fanfiction?  Then please check out my usergroup.