Why not install this banner mod instead? Its much easier to place your banners anywhere you want in the templates and you do not have a total headache of dealing with trying to parse PHP code correctly in the side bar.
https://vborg.vbsupport.ru/showthrea...ghlight=banner That one best I've found and all you have to do is add the proper code in the area you want banners to be placed and then add the banners via your vb admincp.