A site I work on currently has an advertising block which displays one of the clients adverts randomly.
We have all the adverts in one folder, and they are all hosted locally.
We have new clients wanting to advertise, but a lot of our new clients want to be able to see their advert on every page load.
What I am looking at doing, is having a block that will display display all our banners in a column, which are all clickable, but re order them on every page load which should eliminate any "I want to be at the top" arguments.
I understand all the usual, maximum exposure for single ads, pushing the length of the page down and so on, but our sponsors are putting pressure on us to display adverts in this way.
Question is, can a nuke block re order a load of images and keep the hyper links intact?
If so, does anyone know of a block? Or would anyone create one or aid me in doing so?
Joined: Aug 27, 2002 Posts: 15049 Location: Kansas
Posted:
Tue May 13, 2008 6:22 am
Just to be clear, are you saying that you need a block like my Recommended Sites block on my home page but you simply need to randomly change the order?
If it makes things any easier on this, I don't need the block to fetch all the images from a specific folder.
I have written a crude block to display all the images with hyperlinks, and I dont have a problem in adding in more to the code as and when they sponsor the site.
It;s just the random bit thats beyond me
Code:
<?php
if (eregi('block-adverts.php', $_SERVER['PHP_SELF'])) {
Header('Location: index.php');
die();
}
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum