Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2187 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Business and Website Management     Advertising, SEO and Social Marketing :

What script better fits this?

Thread title: What script better fits this?
Closed Thread    
    Thread tools Search this thread Display Modes  
04-01-2006, 07:33 PM
#1
Zoomrix is offline Zoomrix
Status: Member
Join date: Sep 2005
Location:
Expertise:
Software:
 
Posts: 122
iTrader: 0 / 0%
 

Zoomrix is on a distinguished road

Send a message via AIM to Zoomrix Send a message via MSN to Zoomrix

  Old  What script better fits this?

Hello members of TF.
I'm posting this in request to find the best fitting program for my needs.
I've been searching on google, on hostcripts.com and many other random php script resource sites but couldn't find anything usefull enough for me.

I'm running a descent portfolio site and decided to implement a 468x60 ads system but can't find the right program. I just need a script that will let me upload (and/or link directly) an image that will be used with other's to rotate at random.

I have found programs similar to this but most of the once I install come out either something really too complex or very featureless.

Thanks in advance, all the help greatly appreciated.

04-01-2006, 07:40 PM
#2
Garyrae is offline Garyrae
Status: Request a custom title
Join date: Dec 2005
Location: Colchester, UK
Expertise:
Software:
 
Posts: 4,625
iTrader: 16 / 100%
 

Garyrae is on a distinguished road

Send a message via MSN to Garyrae Send a message via Skype™ to Garyrae

  Old

I'm not sure if this is any use to you, but I use this code on one of my sites.
Just add/remove the applicable info:

Code:
<script language="JavaScript">
<!-- Begin
rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};

function rand(number) {
	var result = Math.ceil(rnd()*number);
	if (!result)result++;
        return result
};
var ad_cnt1 = 4;
var ad1 = rand(ad_cnt1);
var link1;
var adBanner1;
var width1
var height1
if (ad1==1) {
link1="LINK-URL";
adBanner1="LINK-TO-BANNER-IMAGE";
width1="468";
height1="60";
alt1="ALT-TEXT";
}
if (ad1==2) {
link1="LINK-URL";
adBanner1="LINK-TO-BANNER-IMAGE";
width1="468";
height1="60";
alt1="ALT-TEXT";
}
if (ad1==3) {
link1="LINK-URL";
adBanner1="LINK-TO-BANNER-IMAGE";
width1="468";
height1="60";
alt1="ALT-TEXT";
}
if (ad1==4) {
link1="LINK-URL";
adBanner1="LINK-TO-BANNER-IMAGE";
width1="468";
height1="60";
alt1="ALT-TEXT";
}
document.write('<center><a href="' + link1 + '" target="_top">');
document.write('<img src="' + adBanner1 + '" width=' + width1 + ' height=' + height1 + ' border=0 alt="' + alt1 + '"></a>');
document.write('</center>');
// End -->
</SCRIPT>

04-01-2006, 09:28 PM
#3
Zoomrix is offline Zoomrix
Status: Member
Join date: Sep 2005
Location:
Expertise:
Software:
 
Posts: 122
iTrader: 0 / 0%
 

Zoomrix is on a distinguished road

Send a message via AIM to Zoomrix Send a message via MSN to Zoomrix

  Old

Hm, thanks! I'll try it out.

04-01-2006, 10:16 PM
#4
freedom is offline freedom
freedom's Avatar
Status: Request a custom title
Join date: Dec 2005
Location: LIC (NYC), NY
Expertise:
Software:
 
Posts: 1,026
iTrader: 0 / 0%
 

freedom is on a distinguished road

  Old

I would reccomend phpAdsNew.

04-01-2006, 10:43 PM
#5
.Mike is offline .Mike
Status: Junior Member
Join date: Mar 2006
Location:
Expertise:
Software:
 
Posts: 28
iTrader: 0 / 0%
 

.Mike is on a distinguished road

  Old

i have used phpadsnew before.i most say is pretty good script.

04-01-2006, 11:13 PM
#6
Fangled is offline Fangled
Fangled's Avatar
Status: I love this place
Join date: Aug 2005
Location: England
Expertise:
Software:
 
Posts: 538
iTrader: 4 / 100%
 

Fangled is on a distinguished road

  Old

I use this simple script
PHP Code:
    <?php
    
/*
    Notes: shows a random banner on the webpage, using weighting system.
    */
    ## Configure this acc. to your needs ##

    
$Ad[0] = '';
    
$Ad[1] = '';
    
$Ad[2] = '';
    
$Ad[3] = '';
    
$Ad[5] = '';

    
$Weight[0]=3;
    
$Weight[1]=5;
    
$Weight[2]=1;
    
$Weight[3]=1;
    
$Weight[4]=1;
    
$Weight[5]=3;
    
$sum =0;
    for(
$i=0;$i<count($Weight);$i++)
        
$sum+=$Weight[$i];
    
$ShowAd rand(0$sum 1);
    for(
$i=0;$i<count($Weight);$i++)
    {
        if(
$ShowAd<=$Weight[$i])
        {
            
$ShowAd=$i;
            break;
        }
        else
            
$ShowAd-=$Weight[$i];
    }
    echo 
$Ad[$ShowAd];
    
?>
You can add each code for each banner into AD01 ect, and if you want more than 5 just add 6 onto it.

Dont know if this will be any help to you.

04-02-2006, 10:12 PM
#7
Zoomrix is offline Zoomrix
Status: Member
Join date: Sep 2005
Location:
Expertise:
Software:
 
Posts: 122
iTrader: 0 / 0%
 

Zoomrix is on a distinguished road

Send a message via AIM to Zoomrix Send a message via MSN to Zoomrix

  Old

Thanks Fangled. I'll try that one out as well. And I think I've tired phpAdsNew before. Don't even remember. :P I'll try it out anyway.

Thanks for all the help guys.

04-02-2006, 10:33 PM
#8
achtentachtig is offline achtentachtig
achtentachtig's Avatar
Status: Member
Join date: Mar 2006
Location: Netherlands
Expertise:
Software:
 
Posts: 164
iTrader: 0 / 0%
 

achtentachtig is on a distinguished road

Send a message via MSN to achtentachtig

  Old

phpAdsNew is great, but has so much functions that it's too much for a simple portfolio website I think. Better use one of the scripts above or let someone make something for you.

Closed Thread    


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

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed