Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Banner rotator?

Anyone have an idea of what to use for affiliate marketing on our sites, seems the banner rotators I had no longer works with php 7.2 and fusion 9.3.7.

Found one, it works fine till I add it to my site. I tried a php include in footer_includes.php and get an error that will not allow the site to load. the error is: Parse error: syntax error, unexpected '<', expecting end of file in /home/carlub/nebula/includes/footer_includes.php on line 18

My footer_includes is:
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
| Filename: footer_includes.php
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
//Add your custom include files for the footer here
<center><!--?php include 'http://www.intothenebula.info/js/index.php';?--></center>

You added HTML directly into PHP.

Your "banner rotator" has unnecessarily many lines of JS and HTML code, it just shows random ads from array on every refresh.

The same thing but in PHP with few lines:
$ads = [
 'Ad 1 <a href="link">clickbait title</a>',
 'Ad 2 <a href="link">clickbait title</a>',
 'Ad 3 <a href="link">clickbait title</a>',

echo $ads[array_rand($ads)];

Thanks RobiNN, I'll change it later, like yours better. You are a lifesaver..
Works fantastic RobiNN!!!
Thread Information
Posted In
5 posts
95 times
Last Post
Last updated on 3 months ago
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
Users who participated in discussion: RobiNN, daimonbok1