Jump to content

Twitter Feed Not working


taylorn

Recommended Posts

My Twitter feed doesn't seem to be working - it just displays the loading bar.

 

This happens on 2 of my themes (custom themes), but not the 'portal' theme.

 

WHMCS Support suggested to add:

{if $systemurl}

<base href="$systemurl">

{/if}

 

But that didn't work.

 

Ideas?

Link to comment
Share on other sites

  • 1 month later...

I have the same problem, sometimes it works, but most of the time it does not.

Looking at Firebug I can see that a request is sent to announcements.php?action=twitterfeed&numtweets=3 but nothing is being returned for some reason. I probably will code my own announcements.php if this can't be fixed easily...

Link to comment
Share on other sites

  • 2 weeks later...
I have the twitter problem when browsing the site with SSL.

Without SSL its showing fine, but in secure pages, it shows only the loading bar.

any ideas?

 

You most likely have included the jQuery script via HTTP.

 

Go to your header.tpl and look for the:

 

<script type="text/javascript" src="http://www.yoursite.com/whmcs/includes/jscript/jquery.js"></script>

 

Make sure it just says:

 

<script type="text/javascript" src="/includes/jscript/jquery.js"></script>

 

If that doesn't work, post back :)

Link to comment
Share on other sites

Thank you taylorn;

 

I checked the source and the address is not included the domain and is as you mentioned.

I also checking the chrome console and there is no errors or warnings at all !!!

Whats your idea? :)

 

So is it written like:

 

<script type="text/javascript" src="/includes/jscript/jquery.js"></script>

 

What is the full path to your WHMCS directory? (http://www.yourdomain.com/billing etc.)

Link to comment
Share on other sites

this is my header :)

 

<link rel="shortcut icon" type="image/x-icon" href="/online/images/favicon.ico">

<meta http-equiv="content-type" content="text/html; charset={$charset}" />

<title>{$companyname} - {$pagetitle}{if $kbarticle.title} - {$kbarticle.title}{/if}</title>

{if $systemurl}<base href="{$systemurl}" />

{/if}<link rel="stylesheet" type="text/css" href="templates/{$template}/style.css" />

<link rel="stylesheet" type="text/css" href="templates/{$template}/css/parsnic.css" />

<link rel="stylesheet" media="screen" href="templates/{$template}/css/superfish.css" />

<link rel="stylesheet" media="all" href="templates/{$template}/js/islider/i.slider.css" />

<script type="text/javascript" src="includes/jscript/jquery.js"></script>

<script type="text/javascript" src="templates/{$template}/js/islider/jquery.i.slider-1.0.min.js"></script>

<script type="text/javascript" src="templates/{$template}/js/islider/jquery.easing.1.3.js"></script>

<script type="text/javascript" src="templates/{$template}/js/examples.js"></script>

<script src="templates/parsnic/js/superfish.js" type="text/javascript"></script>

Link to comment
Share on other sites

Hi

 

It appears you have conflicting jQuery libraries included...

 

Remove the following, and see if your Twitter feed works. Also test your slider...

 

<script type="text/javascript" src="templates/{$template}/js/islider/jquery.i.slider-1.0.min.js"></script>
<script type="text/javascript" src="templates/{$template}/js/islider/jquery.easing.1.3.js"></script>

 

If the slider doesn't work, try adding those lines back, one by one.

Link to comment
Share on other sites

So you've tried removing ALL javascript & jQuery?

 

<script type="text/javascript" src="templates/{$template}/js/islider/jquery.i.slider-1.0.min.js"></script>
<script type="text/javascript" src="templates/{$template}/js/islider/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="templates/{$template}/js/examples.js"></script>
<script src="templates/parsnic/js/superfish.js" type="text/javascript"></script>

Link to comment
Share on other sites

Yes. The slider is fine with JS.

the twitter code is in homepage.tpl

here is the code:

 

<div style="padding:5px 30px 5px 30px;height:auto">
{if $twitterusername}
<h2>{$LANG.twitterlatesttweets}</h2>
<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}
{elseif $announcements}
<h2>{$LANG.latestannouncements}</h2>
{foreach from=$announcements item=announcement}
<p>{$announcement.date} - <a href="{if $seofriendlyurls}announcements/{$announcement.id}/{$announcement.urlfriendlytitle}.html{else}announcements.php?id={$announcement.id}{/if}">{$announcement.title}</a><br />{$announcement.text|strip_tags|truncate:100:"..."}</p>
{/foreach}
{/if}
</div>

Edited by Mondoir
adding
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