NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Rotator

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 11-27-2004, 03:23 PM THREAD STARTER               #1 (permalink)
Account Closed
 
tony84's Avatar
Join Date: Oct 2004
Location: Manchester, UK
Posts: 624
tony84 is on a distinguished road
 



Rotator


Hi, i was thinking of getting a script that can rotate banner ads
i dont really want to use javascript bu they are the only scripts i can find

im also pretty new to php so i dont mind giving it a try but if anything i prefer css (if its possible) or html (for simplicity)

also if anyone knows of a fairly basic rotator script that has something built in where i can check my clickthrough and impression rates (this is incase im feeling brave )

Cheers
Tony
tony84 is offline  
Old 11-27-2004, 08:36 PM   #2 (permalink)
NamePros Expert
 
IAmAllanShore's Avatar
Join Date: Nov 2004
Location: Esse quam videri
Posts: 8,332
IAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond repute
 

Member of the Month
January 2005Member of the Month
February 2007
Ethan Allen Fund Child Abuse Child Abuse Child Abuse Child Abuse Save The Children Save The Children Child Abuse Child Abuse Child Abuse Child Abuse VA Tech Memorial Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse
I've got a php script I can toss you if you feel up to it ;-)

Just PM me if interested.

-Allan
__________________

Something Witty This Way Comes...
IAmAllanShore is offline  
Old 11-27-2004, 09:13 PM   #3 (permalink)
NamePros Regular
Join Date: Feb 2004
Posts: 720
Caveman has a spectacular aura aboutCaveman has a spectacular aura about
 



phpadsnew I think it's called. Should be in your hosting cpanel.
Caveman is offline  
Old 11-28-2004, 08:51 AM   #4 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,069
Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute
 


Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
your assuming he has cpanel Caveman this is not the only control panel people use
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Old 11-28-2004, 08:58 AM THREAD STARTER               #5 (permalink)
Account Closed
 
tony84's Avatar
Join Date: Oct 2004
Location: Manchester, UK
Posts: 624
tony84 is on a distinguished road
 



i do have cpanel but i dont like phpads new theres too many options on it and it gets very confusing - that might just be me being thick, ill PM you IAm
tony84 is offline  
Old 11-28-2004, 07:07 PM   #6 (permalink)
NamePros Expert
 
IAmAllanShore's Avatar
Join Date: Nov 2004
Location: Esse quam videri
Posts: 8,332
IAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond reputeIAmAllanShore has a reputation beyond repute
 

Member of the Month
January 2005Member of the Month
February 2007
Ethan Allen Fund Child Abuse Child Abuse Child Abuse Child Abuse Save The Children Save The Children Child Abuse Child Abuse Child Abuse Child Abuse VA Tech Memorial Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse Child Abuse
Originally Posted by tony84
i do have cpanel but i dont like phpads new theres too many options on it and it gets very confusing - that might just be me being thick, ill PM you IAm

Many an option for cPanel.

-Allan
__________________

Something Witty This Way Comes...
IAmAllanShore is offline  
Old 11-29-2004, 02:59 AM   #7 (permalink)
NamePros Expert
 
redhippo's Avatar
Join Date: Oct 2003
Location: ANForum
Posts: 5,218
redhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to behold
 



Originally Posted by Caveman
phpadsnew I think it's called. Should be in your hosting cpanel.
this is a good one!
__________________
|www.vb-skins.com|- Quality Premade Vbulletin skins for Your VB forum makeover |www.Banjir.com|-Free image hosting?[B]For Sale!|AlphaScripts|Money Generating Scripts
FREE VB Skins
redhippo is offline  
Old 11-29-2004, 07:46 AM THREAD STARTER               #8 (permalink)
Account Closed
 
tony84's Avatar
Join Date: Oct 2004
Location: Manchester, UK
Posts: 624
tony84 is on a distinguished road
 



ive got a script now
Code:
 <!--
Created by Paul Janaway
Site: http://maddogsplace.co.uk
-->

<?php

///////////
// SETUP //
///////////

// State how many ads there are in total (max: 3)
$total_ads = 1;

// No need to edit
$rand_ban = rand(1,$total_ads);

// Banner size
$banner_width = 468;
$banner_height = 60;

// Decide on if you want it to create a new window or not when
// the ad is clicked.
// 1 = new window
// 2 = same window
$window = 1;

// Ad details, goes by: image url, site url, site description.
// If you have 1 ad, then fill in ad_1 only, if you have 2 ads
// then fill in ad_1 and ad_2 etc.
$ad_1 = array("http://maddogsplace.co.uk/includes/images/mdp_468x60.png",
              "http://maddogsplace.co.uk",
              "maddogsplace.co.uk | Home Is Where The Heart Is");
$ad_2 = array("image url here",
              "site url here",
              "site description here");
$ad_3 = array("image url here",
              "site url here",
              "site description here");

///////////////////////////////////////////////
// DO NOT EDIT BELOW UNLESS YOU KNOW HOW TOO //
///////////////////////////////////////////////

if($rand_ban == 1) {
    $show_ad_image_url = $ad_1[0];
    $show_ad_url = $ad_1[1];
    $show_ad_description = $ad_1[2];
} elseif($rand_ban == 2) {
    $show_ad_image_url = $ad_2[0];
    $show_ad_url = $ad_2[1];
    $show_ad_description = $ad_2[2];
} elseif($rand_ban == 3) {
    $show_ad_image_url = $ad_3[0];
    $show_ad_url = $ad_3[1];
    $show_ad_description = $ad_3[2];
}

if($window == 1) {
    echo "<a href=\"" . $show_ad_url . "\" target=\"_blank\">";
    echo "<img src=\"" . $show_ad_image_url . "\" width=\"";
    echo $banner_width . "\" height=\"" . $banner_height . "\" ";
    echo "border=\"0\" alt=\"" . $show_ad_description ."\"></a>";
} else {
    echo "<a href=\"" . $show_ad_url . "\"><img src=\"";
    echo $show_ad_image_url . "\" width=\"" . $banner_width . "\" ";
    echo "height=\"" . $banner_height . "\" border=\"0\" alt=\"";
    echo $show_ad_description ."\"></a>";
}
someone from here sent me another code but it kinda confused me, the 1 above is great even i can understand it, it doesnt do anything advanced but it does what i need
tony84 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 05:02 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger