Jump to content
Larry Ullman's Book Forums

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.

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">
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 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>
<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.


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

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

Link to comment
Share on other sites


  • Create New...