Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Quick PHPAdsNew Question
Old 08-10-2003, 11:33 AM Quick PHPAdsNew Question
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Trades: 0
Just wondering if anyone can help me with this. On a site I am developing I am going to have an advertising area where I either want to display:
A 120x600 skyscraper
OR
2 or more smaller side adverts (buttons/boxes etc.)

Now, I know that in PHPAdsNew, I can create the skyscraper zone, and if nothing is available from that I can display a zone which shows a smaller advert. I also know that I can create a single zone with variable height and have both skyscrapers and smaller ads in it.

The problem with both these situations is that it will only display one smaller ad if the skyscraper is not shown, not 2 or 3.

The only solution I have come up with so far is to set up a small PHP script to alternate/randomly go between two different methods of calling the ad:

1. Display the skyscraper zone (which is set to have the smaller ad zone as its 'backup') and put up with the occasional single smaller ad appearing
2. Display the smaller ad code twice or three times

Obviously, this isn't a brilliant solution as it takes away a lot of control from PHPAdsNew and I may end up with skyscrapers not showing enough.

Any ideas?
__________________

Please login or register to view this content. Registration is FREE
- Everything a webmaster needs - for free

Please login or register to view this content. Registration is FREE
- Free web hosts reviewed and rated

Please login or register to view this content. Registration is FREE
- Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-10-2003, 03:14 PM
Criper2000's Avatar
Mod

Posts: 2,002
Location: California
Trades: 0
i think, if you put the smaller ones, in the same zone, as the one that keeps showing up, they will rotate
__________________

Please login or register to view this content. Registration is FREE
Criper2000 is offline
Reply With Quote
View Public Profile
 
Old 08-12-2003, 08:38 PM
nakulgoyal's Avatar
#1Search Engine Optimizer

Posts: 376
Location: Chandigarh, India
Trades: 0
Yes. There are other good scripts that allow these. Have a look at Hotscripts !!
__________________
Nakul Goyal
M.Sc (Information Technology), MCP, Brainbench 'MVP', BCIP, CIW Associate

*
Please login or register to view this content. Registration is FREE
*
Please login or register to view this content. Registration is FREE
nakulgoyal is offline
Reply With Quote
View Public Profile Visit nakulgoyal's homepage!
 
Old 08-12-2003, 10:29 PM
Cagez's Avatar
Skilled Talker

Posts: 62
Trades: 0
How bout

PHP Code:
list($usec$sec) = explode(' 'microtime());
mt_srand((float) $sec + ((float) $usec 100000));

$randval mt_rand(1,20);

if(
$randval <= 10)
{
    
// skyscraper ads
}

else
{
    
// the 2 or 3 mini ads

Giving the skyscraper if more or less depending on how much you want it to show.
Cagez is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Quick PHPAdsNew Question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13234 seconds with 12 queries