Coinbase

Author Topic: having a hard time centering my ad  (Read 2252 times)

0 Members and 1 Guest are viewing this topic.

Offline cru

  • Newbie
  • *
  • Posts: 4
having a hard time centering my ad
« on: November 10, 2007, 05:23:58 pm »
hi, i have installed this mod successfully on my Silent wave theme. here's my url www.mydoggy.net
 i can't center the ad below the main menu (when using firefox).

i tried this
Code: [Select]
<div align="center">google code</div>
also this
Code: [Select]
<center>google code</center>
and even in my index.template.php, i did this
Code: [Select]
//Below the menu ads

if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
echo '<div align="center">';
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
       echo '</div>';

i did this edit one by one, it centered the ad when im using IE, but still aligned to the left when i use Firefox.

any idea how i can fix this browser issue?

EDIT: Sometimes i see its centered. sometimes its not..
« Last Edit: November 10, 2007, 08:27:39 pm by cru »

Offline Gangrel

  • Newbie
  • *
  • Posts: 2
Re: having a hard time centering my ad
« Reply #1 on: November 15, 2007, 04:30:04 am »
Quote
try this for centering:


Code:
<div align=center>ad code</div>[

Hi Cru,

I have the same problem on the Bleen theme. I did a search and noticed someone else had this prob and Bigguy advised the above. I notice it is the same as what you wrote but minus the speech marks. I dont know if that makes any diff as I am a complete newbie.

What is the name of the file that I should be editing to put the line <div align=center>ad code</div>[[/
into?? And whereabouts should it go??


Offline cru

  • Newbie
  • *
  • Posts: 4
Re: having a hard time centering my ad
« Reply #2 on: November 15, 2007, 04:59:20 am »
you don't have to edit any file, just go to admin>ad management> add ads

then paste

Code: [Select]
<div align="center">your google code here</div>
on the space marked as "content"


SMF Ads Support Forum

Re: having a hard time centering my ad
« Reply #2 on: November 15, 2007, 04:59:20 am »
.

 

.