Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-04-2017, 04:50 PM   #1
P_RABID
Confirmed User
 
Industry Role:
Join Date: Apr 2017
Posts: 514
Ad Rotating Script I've been using

Hey guys,

I was doing some work on my tube website and thought I'd share a great Banner Ad Rotating Script which I have been using.

Its free to use, you just place the link to your banner image, and your affiliate link you want to link too, set the ad dimensions and hit Generate.

It's a very basic script but great for self hosted JPG and GIF banner ads that you want to appear in a rotating order.

Script is here Random Banner Generator

Enjoy
P_RABID is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-04-2017, 05:37 PM   #2
faperoni
Confirmed User
 
faperoni's Avatar
 
Industry Role:
Join Date: Feb 2015
Location: Amsterdam
Posts: 163
Thanks! i was looking for something like this for a client.
__________________
Faperoni
faperoni is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-04-2017, 10:40 PM   #3
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
This worked nicely for me
rand_img.php

PHP Code:
function RandImg($dir) {
         
$images glob($dir '*.{jpg,jpeg,png,gif}'GLOB_BRACE);
            
$randomImage $images[array_rand($images)];

            return 
$randomImage;
                }

$ads1_image RandImg('../dir/path/toimages/'); 
use

echo "$ads1_image";
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2017, 03:44 AM   #4
bns666
Confirmed Fetishist
 
bns666's Avatar
 
Industry Role:
Join Date: Mar 2005
Location: Fetishland
Posts: 11,471
nice
__________________
CAM SODASTRIPCHAT
CHATURBATESKYPE SEX CAMS
bns666 is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-06-2017, 03:20 PM   #5
TitanWM
Confirmed User
 
TitanWM's Avatar
 
Industry Role:
Join Date: Dec 2015
Posts: 111
If you want to try different Images/Banners with tracking code:

Code:
<?php

$rand = rand(1, 8); //example for 8 different images/banners
 
$ads = "<a href=\"AFFLINK?WM-ID&CAMPAIGN=CampaignName$rand\" title=\"title-text\" rel=\"nofollow\"><img src=\"/path-to-image/Image-$rand.gif\" alt=\"alt-text\" /></a>";

echo $ads;

?>
You should name the images/banners like:
Image-1
Image-2
Image-3
...
Image-8
__________________
CamSoda invite link - promote an unsatisfied cam site!
TitanWM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
script, banner, link, rotating, hosted, jpg, basic, dimensions, hit, generate, gif, ads, enjoy, thumbsup, set, free, tube, website, share, hey, image, affiliate, guys
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.