Coinbase

Author Topic: ads at center  (Read 4332 times)

0 Members and 1 Guest are viewing this topic.

Offline crazypal24x7

  • Jr. Member
  • **
  • Posts: 17
    • Email
ads at center
« on: July 20, 2007, 03:46:51 am »
well I jus installed ad mod 2.3 on smf 1.1.3 I used  center tag to get the ads at the center but still it does not appear at the center

any other way to bring ads at the center.

Offline babjusi

  • Jr. Member
  • **
  • Posts: 28
Re: ads at center
« Reply #1 on: July 20, 2007, 07:57:00 pm »
Are u sure that you pot the ad code between the right center codes? <center> </center>

Offline crazypal24x7

  • Jr. Member
  • **
  • Posts: 17
    • Email
Re: ads at center
« Reply #2 on: July 20, 2007, 10:24:11 pm »
yup I m sure,well bottom ad is at center but the below menu ad is displayed at right side.

Offline Dick Seacup

  • Newbie
  • *
  • Posts: 3
Re: ads at center
« Reply #3 on: July 23, 2007, 06:43:24 pm »
I followed the instructions on the edits for the Babylon theme and I have ads working where I want them.  Everything is left-aligned, though, and I think center would look better.  I'm not a PHP guru by any means, so, could someone give me an example of what needs to be done to get the ads to center themselves? 

TIA!

Offline crazypal24x7

  • Jr. Member
  • **
  • Posts: 17
    • Email
Re: ads at center
« Reply #4 on: July 24, 2007, 05:42:06 am »
mate jus put ur code between <center> YOUR CODE HERE </center>

Offline Dick Seacup

  • Newbie
  • *
  • Posts: 3
Re: ads at center
« Reply #5 on: July 24, 2007, 06:50:04 pm »
mate jus put ur code between <center> YOUR CODE HERE </center>

OK, but how do I do that when the ad code block is in a function?  For instance:

Code: [Select]
//Display ads on the board index
$ads = show_boardAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
echo '

Not to sound daft, but where in there do I put the <center></center> tags?  I tried wrapping the whole block with them, but then I get a template parse error.

Offline babjusi

  • Jr. Member
  • **
  • Posts: 28
Re: ads at center
« Reply #6 on: July 25, 2007, 01:26:49 am »
You should put the html code of the google ads or whatever ads code you have between the center tags

Offline Dick Seacup

  • Newbie
  • *
  • Posts: 3
Re: ads at center
« Reply #7 on: July 25, 2007, 02:18:52 pm »
You should put the html code of the google ads or whatever ads code you have between the center tags

Jeebuz, I can be dense.  Talk about trying to pound penny nails with a 20# sledgehammer.  Thanks for the shove in the right direction.   :-[

Offline babjusi

  • Jr. Member
  • **
  • Posts: 28
Re: ads at center
« Reply #8 on: August 03, 2007, 04:02:58 pm »
You should put the html code of the google ads or whatever ads code you have between the center tags

Jeebuz, I can be dense.  Talk about trying to pound penny nails with a 20# sledgehammer.  Thanks for the shove in the right direction.   :-[

No problem, glad I could help

SMF Ads Support Forum

Re: ads at center
« Reply #8 on: August 03, 2007, 04:02:58 pm »
.

 

.