SMF Ads Support Forum

Themes/Language => Theme Support => Topic started by: crazypal24x7 on July 20, 2007, 04:46:51 AM

Title: ads at center
Post by: crazypal24x7 on July 20, 2007, 04: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.
Title: Re: ads at center
Post by: babjusi on July 20, 2007, 08:57:00 PM
Are u sure that you pot the ad code between the right center codes? <center> </center>
Title: Re: ads at center
Post by: crazypal24x7 on July 20, 2007, 11:24:11 PM
yup I m sure,well bottom ad is at center but the below menu ad is displayed at right side.
Title: Re: ads at center
Post by: Dick Seacup on July 23, 2007, 07: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!
Title: Re: ads at center
Post by: crazypal24x7 on July 24, 2007, 06:42:06 AM
mate jus put ur code between <center> YOUR CODE HERE </center>
Title: Re: ads at center
Post by: Dick Seacup on July 24, 2007, 07:50:04 PM
Quote from: crazypal24x7 on July 24, 2007, 06:42:06 AM
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:

//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.
Title: Re: ads at center
Post by: babjusi on July 25, 2007, 02:26:49 AM
You should put the html code of the google ads or whatever ads code you have between the center tags
Title: Re: ads at center
Post by: Dick Seacup on July 25, 2007, 03:18:52 PM
Quote from: babjusi on July 25, 2007, 02:26:49 AM
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.   :-[
Title: Re: ads at center
Post by: babjusi on August 03, 2007, 05:02:58 PM
Quote from: Dick Seacup on July 25, 2007, 03:18:52 PM
Quote from: babjusi on July 25, 2007, 02:26:49 AM
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