If you have installed GotBanners and if it displays only one columns of banners, here is your solution. I started getting a lot of mails asking me how to do it. So, here is the answer. Its fairly simple.
It purely depends on the space you have. You need to have atleast 290px width to accommodate 2 rows of 125×125 banners. Because, GotBanners automatically adds 5px margin to each banner. If you have lesser space, alter this line in gotbanners.php :
echo "<style>.gotbanners { text-align: center; } .gotbanners img { margin: 5px; } </style>";
Change the 5px to something lesser. If you just have 250px, you’ll have to change it to 0px.
Hope its clear for everyone. If you have any other questions, feel free to contact me.







Well since GotBanners plugin supports HTML what do you say about simply adding br at the end of each banner
That is not at all required. Because, GotBanners automatically aligns the banners into different lines.
By the way, i think you have not understood the topic of this post. This post is about how to make 2 columns and not 2 rows…
I’m still confused?. What part of the code above is telling gotbanners to split into 2 columns? All that seems to be doing to me is making the column spacing less than 5px? Are you sayoing that gotbanners looks at the TD width first to determine if it will go 1 column or two automatically?
Sorry if I appear stupid
Basically, GotBanners displays all the banners as such. It just adds a 5px margin andthe displays as banner1, banner 2 etc… If you do it normally, they will not be aligned. So, i used a <center> tag so that the banners will be aligned properly irrespective of the number of columns. Now, a banner goes to the next line only if it has insufficient space in the first line. So, if we reduce the margin, we give the next banner more space…
I hope that is clear :D
I just wanted to take a moment to thank you for GotBanners. I’m running it in a test blog to display two rows with 3 buttons each and it works great!
Thanks I was looking for something like this and your plugin works great.
Hi admin!
My blog has error when i setup your plugin , my blog is WordPress 2.3.1 , how to do i must now ? pls help me , thank you
Haven’t tested it on 2.3+. So, i might not work.
Never mind about that. My next project is about to be launched. Does all what GotBanners does and also has many extra features : Rotatee
Tested this and it is working great.
I wanted to make it to show just 2 ads though. In the current configuration, the script only displays ALL of the ads in a random order.
To fix this:
edit gotbanners.php around line 80 to this
”
for($j=0; $j
Hey Jim,
As i’ve been saying, my new project Rotatee.com has a solutiong for this too. You can display any number of banners at a time…
I am working getting two columns, but it isn’t working. I have exactly 250px of space, and have modified the code per your instructions an nothing. I have even removed the center tag, but no luck. Any ideas?
Hey jason,
Are you talking about http://finance.jasoncrews.name/ ? If so, i see that GotBanners is working well on that site.
By the way, i suggest that you try Rotatee.com : http://gotchance.com/2008/02/01/rotateecom-launches/
Happy to say that GotBanners is working very well with my site’s new theme. And I’ve seen no issues running under the 2.3.x.
many thanks for the plugin.
btw, i like your bubble comment style :-)
oh ! thanks,
I like the way gotbanners work, but i would like to only show two banners and to rotate them. I got about 12 banners in total, but would like to show only 2 at a time. Is there any chance to do so? I realize Rotatee does just that, but since its in private beta, can’t really access it.
You can use the “gotchance” invite code to sign up !
Useful…
Thanks!
great plugin, so why not also install an option to make 2 or even more ads possible?
hi cool plugin workin fine with wp 2.5.1
thanks for the plugin
friend I want to put the module on the opposite side where I have my menu I hope we can help contact my website is gamesenred.com.
Having 2 columns is really great.
Happy to say that GotBanners is working very well with my site’s new theme. love your Blog