Jump to content

Twitter in admin area


brettr

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated