![]() |
Mist's Random Banner Hack
Mist's Random Banner Hack
What does this hack do? This allows you to have a random banner in your header. Latest Version: 1.0 +++++++++++++++++++++++++++++++++++++++++++ If you install this hack then please click the INSTALL button. +++++++++++++++++++++++++++++++++++++++++++ Regards - miSt |
Where's the file? :p
|
Hehe this happens everytime i post a hack.
I don't attach the file straight away because i like to add the thread link and install link to the attachment :p It's in there now :) - miSt |
screen shot?
|
Why do you need to a see a screenshot ^ :)
All this does is generate a random banner :) - miSt |
Still...
A screenshot would be good;):) Satan |
I don't see why - all it would be is the the images changing :p
- miSt |
Just post a screenshot will ya! So we know where it goes and how it looks etc...
|
[high]* Link14716 runs to help out Mist.
[/high] Hard to make a screenshot, when it'd just show images of your choosing, and a screenshot won't change everytime you click it, so :p. ;) I might install this one :) |
how about demo, instead of screenshot?
|
Hmmm well if someone installs this can they link me and i'll put it in their post (obviously with their permission :p)
- miSt |
I would install this, but the fact that it is manually edited (to change banners and stuff) that is the con in my view of this hack, the rest looks good.
|
PPN made an advert manager .. isn't this the same?
|
Hello, I'd like to ask where I can put the url for the banners?
I know I can put more banners creating my own variable, they are just images but the url for them? thx |
nice one Mist!
Mist! I would just forget about global.php, why not just insert this code to the phpinclude, it will be easy to mod if you need to add a new banner. Also why list them as $banner[1]="banner1.gif"; $banner[2]="newthread.gif"; Why not make an Array. $banners=array('banner1', 'banner2'); Here is a simple way to do it, only takes 3 lines PHP Code:
DEMO: http://artwork.hololith.com/sigs.php - random http://artwork.hololith.com/sigs.php?show=draco v1 - static http://artwork.hololith.com/sigs.php?show=magal v1 - static http://artwork.hololith.com/sigs.php?show=kinght v1 - static This generates random signature, same way it would a banner ad, but its more advanced when it comes to code, about 13 lines. -------------------------- EDIT - Addon I am geting PMs from people that want diffrent urls to diffrent banners, here is the code This was tested and it works. PHP Code:
|
Your joking?
Just put this in <a href=\"http://url\"><img src=...........></a> And theres your code... Quote:
|
Quote:
Also PPN's hack doesn't currently work :p - miSt |
Quote:
- miSt |
Will this only work in the header?
|
No you can put the $banner variable in any template you wish :)
- miSt |
Excellent! Will install!
|
Thankyou :)
- miSt |
I am geting PMs from people that want diffrent urls to diffrent banners, here is the code
This was tested and it works. PHP Code:
|
Instructions on how to add more more banners is outlined in my instructions...
- miSt |
Quote:
|
it dose rotate, I just checked it, click refresh few times.
|
Quote:
I set $banner and ofcourse in your code it is $adbanner :) FIXED :P hehe. |
Quote:
I used your script and it worked great. I have about 8 or 9 banner ads running now, and after a few modifications to the header template, I was able to get my header to look just right. Thanks. If anyone wants to see a sample, you can take a look at http://forums.cultfree.org. Thanks again! Scott |
Hey nano i just realised what you did. The original intention of this hack was to just rotate images but i'll change the text file to allow url's :)
Regards - miSt |
PPN's hack may not work, but mine does;):p
Perhaps you could try and make a size limiter bit to the image;) Satan |
That quite easy just another variable but i plan to have this admin cp intigrated once i reach the mysql part of my book :)
- miSt |
Hey all,
First of all, thanks for this hack. I have it installed and it's working fine. I am however wondering, would there be a way to change it so that it rotates the banners after a set time as opposed to each time the page is refreshed. It seems that the randomness keeps pulling up the same banners time after time and it's not an even enough mix...... Thanks in advance... Scott |
Sorry buddy. My php isn't advanced enough for that. This is the best randomness that i can do :)
- miSt |
could you make it do that its not on forumhome?
|
This does it in the header and not forumhome...
Just insert the $banner variable in any template to call the random banner :) - miSt |
Quote:
thanks Mist :) |
Hey All,
My PHP is pretty much nonexistant, but I was wondering if the following is possible: I'd like to have one banner in the header, and one in the footer. I've done this by putting the "$adbanner" variable in the spot where I want them. My problem is that they are both showing the same banner and I would like to have them showing different banners. If I were to add the following line to the end of this hack: PHP Code:
Sorry for the newbie question.... Scott |
Simple just duplicate the code like so and use this instead:
PHP Code:
Regards - miSt |
alright I got the code for the flash banners....but when I put the code for the flash banner, like this
Code:
$bannerh[2]="<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" ID=popup_06 WIDTH=250 HEIGHT=250> someone please help :( |
Any double quotes in php have to have a " \ " before them...
- miSt |
All times are GMT. The time now is 04:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|