Hi How would I put adsense in my forums?
Thanks,
Rob
ned help for the same topic i use 1.1.13 version
can any1 suggest a suitable mod or manual procedure to do the same!
Search the mod site for "Ad Management". :)
Hi I did most of the updates for the Ad Management tool. The items below are in the ./Themes/default/index.template.php and I was not sure where they go. How do I run the install.php file. I tried to get into www.smfads.com but for some reason it will not let me register. Any help would be greatly appreciated.
Thanks
Find: [Select]
<body>';
Add After: [Select]
//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);
}
Find: [Select]
</td>
Add After: [Select]
';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '
You should:
1.) use package manager to try to install the mod
2.) make note of errors it finds before it installs (do not install it though)
3.) Make manual edits to the failed files
4.) use package manager to install, ignoring the errors
5.) Replace failed files with the manually edited ones.
Some edits like the one for the body might be a bit different in other themes. It could be:
<body>
<body onload>
body
Or some other variation.
For the <td> You really have to install it on the default theme and compare where the ad mod puts the code and then search for the code around that area in your custom theme. Hope that made sense.
thanks, how do I run the package manager?
take a look at Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject)
Thanks so much for the help, all is good now. Sure I will have other questions while getting my forum and website up.
Glad you got it. :)