taylorn Posted August 11, 2011 Share Posted August 11, 2011 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? 0 Quote Link to comment Share on other sites More sharing options...
Hal9000 Posted September 28, 2011 Share Posted September 28, 2011 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... 0 Quote Link to comment Share on other sites More sharing options...
wsa Posted September 28, 2011 Share Posted September 28, 2011 My working fine with no problem in all browser 0 Quote Link to comment Share on other sites More sharing options...
WebsiteIntegrations Posted September 28, 2011 Share Posted September 28, 2011 on the custom themes you probably have conflicting javascript files included 0 Quote Link to comment Share on other sites More sharing options...
taylorn Posted September 28, 2011 Author Share Posted September 28, 2011 Sorry, I forgot to post what the fix was... It turned out that jQuery wasn't included in the header.tpl file. I found a mobile-compatible jQuery (as its a mobile template) and it started working 0 Quote Link to comment Share on other sites More sharing options...
Mondoir Posted October 12, 2011 Share Posted October 12, 2011 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? 0 Quote Link to comment Share on other sites More sharing options...
taylorn Posted October 13, 2011 Author Share Posted October 13, 2011 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 0 Quote Link to comment Share on other sites More sharing options...
Mondoir Posted October 13, 2011 Share Posted October 13, 2011 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? 0 Quote Link to comment Share on other sites More sharing options...
taylorn Posted October 14, 2011 Author Share Posted October 14, 2011 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.) 0 Quote Link to comment Share on other sites More sharing options...
Mondoir Posted October 14, 2011 Share Posted October 14, 2011 Yes Taylorn, Its like that. 0 Quote Link to comment Share on other sites More sharing options...
taylorn Posted October 14, 2011 Author Share Posted October 14, 2011 Do you have the following in your header.tpl: {if $systemurl} <base href="{$systemurl}" /> {/if} 0 Quote Link to comment Share on other sites More sharing options...
Mondoir Posted October 14, 2011 Share Posted October 14, 2011 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> 0 Quote Link to comment Share on other sites More sharing options...
taylorn Posted October 14, 2011 Author Share Posted October 14, 2011 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. 0 Quote Link to comment Share on other sites More sharing options...
Mondoir Posted October 14, 2011 Share Posted October 14, 2011 I already tested that. The thing is the header is same with and without SSL. If there were the JS conflict, it must have affect the site without SSL as well but it is working fine with no SSL. !!! 0 Quote Link to comment Share on other sites More sharing options...
taylorn Posted October 14, 2011 Author Share Posted October 14, 2011 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> 0 Quote Link to comment Share on other sites More sharing options...
Mondoir Posted October 14, 2011 Share Posted October 14, 2011 Yes. and yet no luck ! 0 Quote Link to comment Share on other sites More sharing options...
taylorn Posted October 14, 2011 Author Share Posted October 14, 2011 Hi Is your slider still working? After removing those JaveScript includes, did you clear your templates_c directory before testing? 0 Quote Link to comment Share on other sites More sharing options...
Mondoir Posted October 14, 2011 Share Posted October 14, 2011 I have done everything that came to my mind so far !!! The slider is not working without JS for sure Template_c is emptied. yes. no luck ! 0 Quote Link to comment Share on other sites More sharing options...
taylorn Posted October 14, 2011 Author Share Posted October 14, 2011 Yes, but is the slider working WITH the jQuery? That would indicate its not a jQuery issue... Can you paste the section of code from your homepage.tpl file where the Twitter feed is? Thanks 0 Quote Link to comment Share on other sites More sharing options...
Mondoir Posted October 14, 2011 Share Posted October 14, 2011 (edited) 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 October 14, 2011 by Mondoir adding 0 Quote Link to comment Share on other sites More sharing options...
Mondoir Posted October 14, 2011 Share Posted October 14, 2011 Also, forget to mention that the twitter section shows only the loading bar forever over SSL. 0 Quote Link to comment Share on other sites More sharing options...
taylorn Posted October 14, 2011 Author Share Posted October 14, 2011 Hmmm everything seems normal there. Could you please provide your WHMCS URL, and I will check it out 0 Quote Link to comment Share on other sites More sharing options...
Mondoir Posted October 14, 2011 Share Posted October 14, 2011 sure. appreciate it. Its not ready though ! http://www.parsnic.com/online 0 Quote Link to comment Share on other sites More sharing options...
taylorn Posted October 14, 2011 Author Share Posted October 14, 2011 I cannot get the index page to display in SSL. This is because when accessing the index.php with HTTPS, WHMCS automatically directs you back to HTTP. How did you test this? 0 Quote Link to comment Share on other sites More sharing options...
Mondoir Posted October 14, 2011 Share Posted October 14, 2011 click on login and it will take you to the secured URL. 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.