PDA

View Full Version : Showing banner in Ultimate Side Columns


Collectors
01-20-2009, 09:00 PM
I'm using the vBulletin add-on Ultimate Side Columns 2.2 (http://www.vbulletin.org/forum/showthread.php?t=175181). When I put the GAB code ($GAB_ads[0]) in one of the usc blocks my banner doesn't show up. How can I display banners using GAB in the Ultimate Side Columns add-on or is this not possible?

Morgan
01-21-2009, 03:51 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).

Collectors
01-25-2009, 08:18 PM
I've decided that I'm not going to use this mod. Thanks Morgan!