brettr Posted April 26, 2012 Share Posted April 26, 2012 Hi, Using version 5.0.3 I'm trying to include the Twitter feed from the client area into the admin area. I've copied the twitterfeed.tpl file into the admin template folder and placed the following code into sidebar.tpl: {if $twitterusername} <div id="twitterfeed"> <p><img src="images/loading.gif"></p> </div> {literal}<script language="javascript"> jQuery(document).ready(function(){ jQuery.post("announcements.php", { action: "twitterfeed", numtweets: 3 }, function(data){ jQuery("#twitterfeed").html(data); }); }); </script>{/literal}{/if} Is there anything else I need to do or haven't done correctly? Many thanks 0 Quote Link to comment Share on other sites More sharing options...
brettr Posted May 1, 2012 Author Share Posted May 1, 2012 No replies for my question below, so just wondering if an alternative fix can be implemented by including the Twitter username directly into the code below instead of having to reference the username typed in to admin? Or would I have to use a widget from the Twitter website? {if $twitterusername} <div id="twitterfeed"> <p><img src="images/loading.gif"></p> </div> {literal}<script language="javascript"> jQuery(document).ready(function(){ jQuery.post("announcements.php", { action: "twitterfeed", numtweets: 3 }, function(data){ jQuery("#twitterfeed").html(data); }); }); </script>{/literal}{/if} Thanks 0 Quote Link to comment Share on other sites More sharing options...
brettr Posted June 9, 2012 Author Share Posted June 9, 2012 Hi, Just chasing up this thread as I've had no replies. Is there anybody who can offer any help, pretty please? I've given up on the below, but if I can include any Twitter script that will do. I've tried different scripts, including the official Twitter widget, in sidebar.tpl and footer.tpl but nothing works. Any ideas why this is? Cheers 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.