Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andy 5 posts 55 karma points
    Oct 19, 2015 @ 14:42
    Andy
    0

    uTweets - Tweets disappeared from the website

    We installed uTweets version 1.1 in January 2015. Absolutely worked fine till last week when the tweets were not showing up on our website www.recordcm.com (bottom right hand) . It just shows a blank space. No code changes were done. Checked our firewalls and nothing came up. There was no error logs. Changed the keys on dev twitter web site and still doesnt work. I have reinstalled the UTweets package as well. We are using Umbraco v 6.1 . Code is as

    @inherits umbraco.MacroEngines.DynamicNodeContext @using umbraco; @using umbraco.MacroEngines;

    @{

    int nrOfTweets = String.IsNullOrEmpty(Parameter.nrOfTweets) ? 10 : int.Parse(Parameter.nrOfTweets);

                try
                {
    
                    var t = new uTweets.Tweets();
                var user = t.GetUser();
                var result = t.GetTweets();
    
                if (result != null)
                {
                                <ul>
                @foreach(var tw in result.Take(nrOfTweets))                                                {
    
        <blockquote>  <li> <a href="https://twitter.com/xxxx" target="_blank"> @Html.Raw(tw.TextAsHtml) (@tw.CreatedDate.ToString("dd/MM/yy")) (@tw.RelativeTime) </a></li></blockquote>
                                                }
                                </ul>
                }
                }
                catch (Exception ex)
                {
                                @ex.ToString();
                }
    

    }

    Any suggestions?

Please Sign in or register to post replies

Write your reply to:

Draft