Cyanide Posted February 12, 2008 Posted February 12, 2008 Ok, I don't know if anyone has posted this, and I did not code this, it's pretty much open source on any coding website out there. First, open your images folder and create a new folder, name it "random". Ok, lets say you have 3 banners you want to be displayed on your game, name them 1.jpg, 2.jpg, and 3.jpg or .gif, or .png, whatever you want, just make sure they are all the same file type. Upload those 3 banners into the images/random directory. Open header.php and find a line of code similar to this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Should be line 42 in the basic v1.1 header.php Above that line add this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now find a line of code like this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Should be line 62 in the basic v1.1 header.php Replace that line of code with this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now, save the file, if you have an error, retrace your steps. This mod is incredibly simple and you shouldn't have a problem, but if you do, post it here and I'll help you fix it. Hope you all enjoy. :mrgreen: Quote
Gator Posted March 13, 2008 Posted March 13, 2008 Re: Random Banners thanx bud, had to change a lil to make it work in a V2, but works like a charm. :-D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.