Jump to content
Larry Ullman's Book Forums
abigail

javascript link stopped working

Recommended Posts

I've had this code working for years. A few months ago the links (to affiliate site) stopped showing. I didn't do anything about it until a few weeks ago. I noticed that the links showed in Opera and not in Firefox. I added a line that advises people to use another browser other than Opera. I also posted at FF forum but no one there knows why this is happening to me.

Today I went to Opera and the links do not show there either. These links are provided by the affiliate site and I have no control over them, but I don't notice anything unusual about them. Hopefully Larry or someone else will see the problem.

Following is the code that is included.

<?php 
if (!defined('ADVICE_ENV')) {	die;}
// this is for the new pages that I don't have a banner
?>
<p class="noshowlink-box"><title="In case the link does not show.">In case the link does not show you should use a different browser such as Opera.</p>
<div class="centered-banner">
<script type="text/javascript" src="http://www.the-tree-of-life.com/lib/jquery/jquery.js"></script>
<script type="text/javascript" src="http://www.the-tree-of-life.com/js/core.js"></script>
<script type="text/javascript">
//<![CDATA[
if (typeof(cart_banner) == "undefined") var cart_banner = new Array();
cart_banner[25] = {
BoxWidth: '236',
BoxHeight: '16',
OutlineColor: '#296DC1',
TitleTextColor: '#FDFDFD',
TextColor: '#333333',
TextBackgroundColor: '#F9F9FF',
ShowURL: 'Y' /* Y - yes; N - no*/
}
//]]>
</script>
<script id="id_script_banner_25" type="text/javascript" src="http://www.the-tree-of-life.com/index.php?dispatch=aff_banner.view&amp;bid=25&amp;type=js_content&amp;sl=EN&amp;product_ids=&amp;aff_id=55"></script>
</div>
<p class="na-box">This Banner Link is not yet available, meanwhile, click on banner above and search for this treatment.</p>

And here is link to one place that file is included and the link should show. These links are all around my website.

http://adviceofthequeen.com/unique/reactive-airways-disease-treatment#reactive-airways-disease-treatment

This is running on Windows 7. I think I also tested at the library and  the links did not show using FF.

I just noticed the webhostinghub gives me the option to change my PHP version but I have no idea if I should do this. I can go up to 7.2
Current: PHP 5.4
System Default: PHP 7.0
 

Share this post


Link to post
Share on other sites

Thank you very much for pointing that out to me.

However, when I go to my site, adviceofthequeen.com, the links do not even show. That is a separate problem, right? That I need to solve.

Share this post


Link to post
Share on other sites

One other thing I noticed with that site and it's 404 page, it appears they are forcing the entire site to https (before only the login pages and such were https). Apparently, when they change that script to https, that is when the page is not found. That they will probably fix once they become aware of this.

But that link still does not show on my site.

Share this post


Link to post
Share on other sites

Yes, it looks like your site doesn't include those JavaScript links. I don't know if that's a problem or not (it is a problem if your site needs that JavaScript). But it's pretty unusual to pull a JS file from another site. 

Share this post


Link to post
Share on other sites

This is the way that affiliate site gave me the links. I have no choice about that. And I do need those links. The last thing I can think of is Malwarebytes, which I have submitted a ticket to them.

Share this post


Link to post
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.

Loading...

×
×
  • Create New...