Social Stats Stopped Working

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
igetcha69
New Member
New Member
Posts: 5
Joined: Fri Jun 05, 2015 12:41 pm

Social Stats Stopped Working

Post by igetcha69 »

hi all,

around 18 months ago i employed a person to rebuild my website from scratch using CMS MadeSimple so that i could add new content myself and have a site that was easily manageable.
for the most part they provided a workable site, but unfortunately they greatly let me down by not fully completing all the work that i paid them for and basically done a runner with my money.

with my very little experience I've managed to work around some of the issues they left me with, but there are certain things that are simply beyond my capabilities and i would therefore be greatly appreciative if someone could offer any advice

the main issue i now have is that one section of my website has just suddenly stopped working for what appears to be no particular reason...one day it was fine, the next day it was broken

here is my website - http://www.E-Cig-Reviews.com

in the top right hand corner you can see that there is an area which is meant to display my social stats with regard to number of YouTube subscribers, number of Twitter followers and number of Facebook likes...but as you can see, the numbers are no longer visible for YouTube and Facebook
the Twitter stats still shows as that is one i have to manually add myself, but YouTube and Facebook stats work via getting that info automatically and updating itself

that section is a Global Content Block and the code used is as follows:-

<div class="box" title="Youtube subscriber count for ECR">
<div class="cell_1"><a href="http://youtube.com/user/igetcha69" target="_blank"><img class="icon" src="img/youtube.png" alt="" /></a></div>
<div class="cell_2"> </div>
<div class="cell_3 black"><a href="http://youtube.com/user/igetcha69" target="_blank"><span style="margin-right: 5px;">Channel Subscribers</span></a></div>
</div>
<div class="box" title="Twitter Followers count for ECR">
<div class="cell_1"><a href="http://twitter.com/igetcha69" target="_blank"><img class="icon" src="img/twitter.png" alt="" /></a></div>
<div class="cell_2"><a href="http://twitter.com/igetcha69" target="_blank"><span id="twitter-followers" class="count">{global_content name="twitterfollowers"}</span></a></div>
<div class="cell_3 google-red"><a href="http://twitter.com/igetcha69" target="_blank"><span style="margin-right: 5px;">Twitter Followers</span></a></div>
</div>
<div class="box" title="Number of Likes for ECR Facebook page">
<div class="cell_1"><a href="https://www.facebook.com/pages/E-Cig-Re ... 83?fref=ts" target="_blank"><img class="icon" src="img/facebook.png" alt="" /></a></div>
<div class="cell_2"> </div>
<div class="cell_3 facebook-blue"><a href="https://www.facebook.com/pages/E-Cig-Re ... 83?fref=ts" target="_blank"><span style="margin-right: 5px;">Facebook Likes</span></a></div>
</div>


i have not changed the code so I'm rather puzzled as to why it has suddenly stopped working?

not sure if this helps but my CMS version is 1.11.9 and my current PHP version is 5.3.20


if anyone has any ideas how i could get this working again i would be very grateful :)

cheers

scott
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Social Stats Stopped Working

Post by staartmees »

version 1.11.9 is almost 2 years old. Updating tot the latest version 1.12 is advisable mostly for security reasons. If you use CG-modules, update your PHP-version to at least 5.4.x

About your problem: I only see one GCB to get the Twitter-followers, I don't see aan GCB to get the FB-Followers and Youtube-followers
igetcha69
New Member
New Member
Posts: 5
Joined: Fri Jun 05, 2015 12:41 pm

Re: Social Stats Stopped Working

Post by igetcha69 »

staartmees wrote:version 1.11.9 is almost 2 years old. Updating tot the latest version 1.12 is advisable mostly for security reasons. If you use CG-modules, update your PHP-version to at least 5.4.x

About your problem: I only see one GCB to get the Twitter-followers, I don't see aan GCB to get the FB-Followers and Youtube-followers
hi there,

thanks for the reply...

the Twitter followers is actually something i have to manually add...it doesn't auto update

the Facebook and YouTube stats though should auto update and up until a few days ago it had been working properly
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Social Stats Stopped Working

Post by Jeff »

It was probably using a Javascript API call (you have not provide this so it is only a guess) to get the Social Stats. Whatever API it was connecting to probably update/stop the service so the existing code doesn't work.

Thanks,
Jeff
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

Re: Social Stats Stopped Working

Post by rotezecke »

Jeff is correct, the twitter API throws an error in firebug:
using that URL in browser returns:
/**/jQuery17207868949695054429_1433651387420({"errors":[{"message":"The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.}]});
igetcha69
New Member
New Member
Posts: 5
Joined: Fri Jun 05, 2015 12:41 pm

Re: Social Stats Stopped Working

Post by igetcha69 »

Jeff wrote:It was probably using a Javascript API call (you have not provide this so it is only a guess) to get the Social Stats. Whatever API it was connecting to probably update/stop the service so the existing code doesn't work.

Thanks,
Jeff
hi Jeff,

unfortunately i would not have the knowledge to be able to tell if it was using a Javascript API...im not sure what a Javascript API even is, lol

but as a temporary measure i have figured out a way to get them to work...i studied the code for the Twitter stats (which is separate from the FB and YouTube and needs to be done manually) and then rewrote the code for FB and YouTube so it matches but with the correct URL's. i then created 2 more Global Content Blocks (one for FB and one for YouTube) so that i can update the stats manually in the same way that i do for the Twitter stats

so this is what the code looks like now:-

<div class="box" title="Youtube subscriber count for ECR">
<div class="cell_1"><a href="http://youtube.com/user/igetcha69" target="_blank"><img class="icon" src="img/youtube.png" alt="" /></a></div>
<div class="cell_2"><a href="http://youtube.com/user/igetcha69" target="_blank"><span id="youtube-followers" class="count">{global_content name="youtubefollowers"}</span></a></div>
<div class="cell_3 black"><a href="http://youtube.com/user/igetcha69" target="_blank"><span style="margin-right: 5px;">Channel Subscribers</span></a></div>
</div>
<div class="box" title="Twitter Followers count for ECR">
<div class="cell_1"><a href="http://twitter.com/igetcha69" target="_blank"><img class="icon" src="img/twitter.png" alt="" /></a></div>
<div class="cell_2"><a href="http://twitter.com/igetcha69" target="_blank"><span id="twitter-followers" class="count">{global_content name="twitterfollowers"}</span></a></div>
<div class="cell_3 google-red"><a href="http://twitter.com/igetcha69" target="_blank"><span style="margin-right: 5px;">Twitter Followers</span></a></div>
</div>
<div class="box" title="Number of Likes for ECR Facebook page">
<div class="cell_1"><a href="https://www.facebook.com/pages/E-Cig-Re ... 83?fref=ts" target="_blank"><img class="icon" src="img/facebook.png" alt="" /></a></div>
<div class="cell_2"><a href="http://www.facebook.com/pages/E-Cig-Rev ... 83?fref=ts" target="_blank"><span id="facebook-followers" class="count">{global_content name="facebookfollowers"}</span></a></div>
<div class="cell_3 facebook-blue"><a href="https://www.facebook.com/pages/E-Cig-Re ... 83?fref=ts" target="_blank"><span style="margin-right: 5px;">Facebook Likes</span></a></div>
</div>


its a shame that it no longer auto updates, but at least now i can manually add all the stats and there is no longer a blank section :)

Image


looking through the backend it would seem that i have many things that are out of date, including CMSMS itself which ideally i would like to be updated....but i think thats a bit out of my league so will have to try and find a reputable company to sort that for me

many thanks for your help

cheers

scott
Post Reply

Return to “The Lounge”