View Full Version : Adding rotating ad blocks to the left column?

01-24-2009, 02:58 PM
I have THIS (http://www.vbulletin.org/forum/showthread.php?t=91888) installed which is just a basic left column template on my forum with ads listed one after the other below each other. What I would like to do is rotate say 5 ads in each block so to maximum the amount of ads I can display as I'm running out of space! Can this be done with GAB, I would like to know before I purchase as it is quite an important part of my site and keeping it running! Thanks in advance :)

01-24-2009, 03:07 PM
Not familiar with that add-on, but $GAB_ads is set at the global_start hook. Guessing here, but you'd need to either set the execution order on the GAB global_start plugin so that it runs before the global_start plugin of that add-on, if there is one, or look through the add-on's code and see if you need to global the $GAB_ads variable, using global $GAB_ads; inside the add-on's function(s) because of scope (http://www.php.net/variables.scope).