Jump to content
MakeWebGames

Random Banners


Cyanide

Recommended Posts

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:

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...