[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 11-27-2004, 02:23 PM   #1 (permalink)
Account Closed
 
tony84's Avatar
 
Join Date: Oct 2004
Location: Manchester, UK
Posts: 624
46.35 NP$ (Donate)

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, 07:36 PM   #2 (permalink)
Forum Moderator

Forum Moderator

 
IAmAllanShore's Avatar
 
Join Date: Nov 2004
Location: Esse quam videri
Posts: 8,332
148.25 NP$ (Donate)

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

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
__________________
I resolve to try to be more noob-friendly.

BXV.us at $1 no reserve auction!
RegisterBetter.com - in BetaMode
Something Witty This Way Comes...
IAmAllanShore is offline  
Old 11-27-2004, 08:13 PM   #3 (permalink)
NamePros Regular
 
Join Date: Feb 2004
Posts: 723
584.15 NP$ (Donate)

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, 07:51 AM   #4 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

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, 07:58 AM   #5 (permalink)
Account Closed
 
tony84's Avatar
 
Join Date: Oct 2004
Location: Manchester, UK
Posts: 624
46.35 NP$ (Donate)

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, 06:07 PM   #6 (permalink)
Forum Moderator

Forum Moderator

 
IAmAllanShore's Avatar
 
Join Date: Nov 2004
Location: Esse quam videri
Posts: 8,332
148.25 NP$ (Donate)

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

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
Quote:
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
__________________
I resolve to try to be more noob-friendly.

BXV.us at $1 no reserve auction!
RegisterBetter.com - in BetaMode
Something Witty This Way Comes...
IAmAllanShore is offline  
Old 11-29-2004, 01:59 AM   #7 (permalink)
NamePros Expert
 
redhippo's Avatar
 
Join Date: Oct 2003
Location: ANForum
Posts: 5,244
3,630.35 NP$ (Donate)

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


Quote:
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, 06:46 AM   #8 (permalink)
Account Closed
 
tony84's Avatar
 
Join Date: Oct 2004
Location: Manchester, UK
Posts: 624
46.35 NP$ (Donate)

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 02:44 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85