- March 9, 2013 at 3:23 pm #5803
Inserting Ads (Adsense, Inmobi, Admob or Buzzcity) To SMF Forum?-You first need to generate and copy out the php code for the advert and paste it to a text file. If you’re using Adsense for mobile, be sure you selected ads for both low and high end phones and copy out the codes in php format.-Save the text file as ads.php (be sure the extension is php)-Upload the php file to your domain root (public_html)-Find Wireless.template.php (./public_html/Themes/default/Wireless.template.php)-If you want the advert to appear at the top just above the header, find this code:Code:
‘, site_logo(), ‘
-Right below it, paste this code:Code:include(‘ads.php’);
-If you wish the advert to appear below, right before the footer, find this code:Code:global $context, $settings, $txt, $options, $boardurl, $scripturl;
-Right below this, paste this code:Code:include(‘ads.php’);
You can as well add the ads to any other location depending on whether you have a clear idea on php coding. Inserting the advert at a wrong place might render your template useless.
You must be logged in to reply to this topic.