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.
Not a member yet? Click here to register.
Forgot Password?

Working Banner Rotator

Asked Modified Viewed 1,372 times
D
daimonbok1
D
Into The Nebula! Is it Science or Science Fiction?
  • Senior Member, joined since
  • Contributed 626 posts on the community forums.
  • Started 141 threads in the forums
  • Started this discussions
asked
Senior Member

I found this on my intothenebula site and rememberd getting help from either Falk, Chan or RobiNN to get it to work, now I'll share it with everyone. I have it running on my Ver 8.00.100 site, my 9.03 site haven't checked it on 9.10 as I removed that site and downgraded to 8. And I have tested it running 83 banners and it didn't crash.
Gene

<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.phpfusion.com/
+--------------------------------------------------------+
| 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 >
| 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
$ads = [
 '<center><a href="your link goes here" target="_blank"><img class="auto-style2" height="height here" src="banner link here" width="width here" /></center></a>',
 '<center><a href="your link goes here" target="_blank"><img class="auto-style2" height="height here" src="banner link here" width="width here" /></center></a>',
 '<center><a href="your link goes here" target="_blank"><img class="auto-style2" height="height here" src="banner link here" width="width here" /></center></a>',
 '<center><a href="your link goes here" target="_blank"><img class="auto-style2" height="height here" src="banner link here" width="width here" /></center></a>',

];

echo $ads[array_rand($ads)];
0 replies

1 post

V
VyperPrecisionCorporation
V
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 4 threads in the forums
answered
Junior Member

I am very glad that a few people are sharing their work for PHP-Fusion 9. I am going to test this code on my PHP-Fusion 9.10.30 site and see if it works on it. I will post and let you know either way. I am also going to send you a Private Message.
0 replies

Labels

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

D
D
Into The Nebula! Is it Science or Science Fiction?
  • Senior Member, joined since
  • Contributed 626 posts on the community forums.
  • Started 141 threads in the forums
  • Started this discussions
V
V
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 4 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet