Community

To:
Subject:
Message:
or Cancel

confused on local scores

wolfcore
Mar 21, 2012 (2 years 28 days ago) edited 2 years 28 days ago

I have this problem of the Games with LB showing only local scores.

  1. I have my mochi.html file from Mochi on my root
  2. I have the crossdomain.xml correct
  3. My site is verified and its tracking impressions
  4. This did work before, but I did change the code and now I am having issue.
  5. Also my bridge file is not activated, the site shows no errors. (also bridge does DB call & tried saving data to file.

        <div id="leaderboard_bridge"></div>
        <script src="http://xs.mochiads.com/static/pub/swf/leaderboard.js" type="text/javascript"></script>
        <script type="text/javascript">
        // Mochi Bridge
        var options = {partnerID: "'.$ARC_SET['mochi_id'].'", id: "leaderboard_bridge"};';
        echo ($userdata['user_level'] > 0 ? 'options.userID = "'.$userdata['user_id'].'";' : '');
        echo ($userdata['user_level'] > 0 ? 'options.username = "'.$userdata['user_name'].'";' : '');
        echo ($userdata['user_level'] > 0 && $ARC_SET['lb_mochi'] == 1 ? 'options.gateway = "'.$settings['siteurl'].'infusions/wc_arcade/bridge.php";' : '');
        echo ($userdata['user_level'] > 0 ? 'options.postMedals = "true";' : '');
        echo ($userdata['user_level'] > 0 ? 'options.callback = function (params) { alert(params.name + " (" + params.username + ") just scored " + params.score + "!"); }' : '');
        echo'Mochi.addLeaderboardIntegration(options);
        </script>

Also in Chrome when I "Inspect Element" it shows options.gateway="correct address" actually ALL of those options show when a member is logged in, which is whats suppose to happen.

Any help would be appreciated.

  • Thankful People:

confused on local scores

wolfcore
Mar 22, 2012 (2 years 26 days ago)

Anyone have any ideas, I am sure its something small that I am forgetting...

  • Thankful People:

confused on local scores

mdaudali
Mar 29, 2012 (2 years 20 days ago)

That happened to me all of a sudden, it might be something on their end. try putting options.width = 320 options.height = 400 options.debug = true Just to check it is working

  • Thankful People:
Back To The Forums