xF1 Guides - Guide: Random Banners - automatically timed rotating out from a banner pool | NulledTeam UnderGround | The Best Scripts Site In The World
Guide: Random Banners - automatically timed rotating out from a banner pool

xF1 Guides Guide: Random Banners - automatically timed rotating out from a banner pool 1.0.0

No permission to download
  • Read Our Rules

    Dont forget read our rules Nulled Team UnderGround Rules

  • You may not say thanks or replied bad language in a thread - Your reply will be removed and warning! You must be like us "overview" in the resource. You will be access to download in FREE SECTION ONLY! DO NOT PREMIUM SECTION! Is only upgrade to up account.
  • Please support our site and click on the advertised
  • Complete Installation Service

    Review Our XenForo Complete Installation Service
  • Multiple Accounts

    Dont forget we not allowed Multiple Accounts, so all of your accounts as well as your IP will ban

Compatible XF Versions 1.x
1.3, 1.4, 1.5
Additional Requirements
php 5.5 or newer,
Xenforo 1.x or 2.x (optional),
AppGini (optional) or PHPmyAdmin or HeidiSQL or similar
Banner - automatically timed rotating from a banner pool

This is a really simple way to view in a Xenforo template a set of banners by automatically timed rotating out from a banner pool. Sounds complicated but it is simple. ;)

Attention: this is will not be a complete step by step guide! I will give you only tips to find your own solution based on this guide. I will give you ideas to find your own way to make such things.

All you need is a pool from 3 up to x (I prefer max 10 banners) banners, saved as *.gif, *.jpg or *.png in a defined directory on your web space or server. The directory must be accessible public and you have to put in all your banners.
There are 2 simple PHP files called b_timer.php and b_select.php that should be placed at the root directory like this:

httpdocs/b_timer.php
httpdocs/b_select.php


b_select.php look at a database we create later and grab such info from. It also displays the number of banners you set up in b_select.php.
b_timer.php uses a little bit jquery to auto reload the b_select.php in an interval you can set up.



Now, the really hard part. Uhhh... :D;)
I use an AppGini database creation tool to make a really simple database with these red marked columns:
21411

  • ID - just the ID column
  • Banner - contains only the path to the banner image
  • Link - contains the link to each banner, if you click a banner
  • Text - contains an alt text to each banner
all others are not needed to work, they are individual extra columns I personal need. All you need, are the 4 red marked columns at the screenshot above. You can make this with AppGini or with PHPmyAdmin, Heidi-SQL, handy or whatever you prefer to make an own simple database.

in AppGini it looks like this when you create your own database:
21412


AppGini is available in a free version and in many languages. It also has a support forum.

AppGini is for me the easy and fast way I prefer to make the database and a nice frontend input mask like this:
21413


Where I can simple and fast take inputs to add new banners, change banners, delete banners, ... and at the same time save and delete the banner in the directory where b_select.php grab them out.
To view the database (first attachment) and the input fields (attachment above) you have to log in to the frontend of your database. So you have with AppGini also the ability to use more than one database member or groups with different rights ... its an amazingly powerful but simple tool. But enough words about AppGini now. :D;)

If the database exists and you have input one or more banners in, then our both PHP files are needed now.

Let's take a look at b_select.php:
PHP:
You don't have permission to view the code content. Please Log in or register now. Log in or register now.
First - change YOURDOMAIN.COM to your domain. All that code do is to made a iframe (I know, its not the best practice) and load the b_timer.php in it.
This displays your banners and this responsive. So if you will display 3 banners, they can automatically be displayed in one line or in multiple lines one after each other:
21414

21415

21416

That's all. :D I know, the code is not optimized but it works for me now for certain years. It works with PHP 5.5.x and newer ones up to PHP 7.3.x and I think you can use wide parts of it also for Xenforo 2.x with a little bit work at the Xenforo template code above.

I am open to constructive criticism and new ideas. :)
Author
AnimeHaxor
Downloads
1
Views
125
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from AnimeHaxor

Share this resource

AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock