SMF Ads Support Forum

Themes/Language => Theme Support => Topic started by: Fragenstein on April 12, 2009, 02:14:38 AM

Title: pdx-dk-09i Theme (TP version)
Post by: Fragenstein on April 12, 2009, 02:14:38 AM
I have toyed around with the templates for hours and am not having any luck getting the ads to display.
Any help appreciated...

TinyPortal v1.0 beta 3
SMF 1.1.8
Title: Re: pdx-dk-09i Theme (TP version)
Post by: ccbtimewiz on April 12, 2009, 09:58:25 AM
Well, from what I can see so far;

Open index.template.php, find:

</head>
<body>


Replace with:
</head>
<body>';

// ad code

echo '
Title: Re: pdx-dk-09i Theme (TP version)
Post by: Fragenstein on April 12, 2009, 08:40:43 PM
Thanks for the reply. I changed the code like this:
</head>
<body>';

//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

echo '


It does work at the top of the page now.  :) Should I continue with the other template edits so they will show in other placements?
Title: Re: pdx-dk-09i Theme (TP version)
Post by: Fragenstein on April 12, 2009, 11:50:39 PM
I proceeded with all the edits, and the ads are now working 100%. Thanks for getting Me off on the right track  :)
Title: Re: pdx-dk-09i Theme (TP version)
Post by: ccbtimewiz on April 13, 2009, 01:41:31 PM
Now, if only the other 90% of people that use this mod could do that.

Glad to see I helped you get it. :)