FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


SMF and Adsense





FreeBay
Does anyone know how to add adsense ads within SMF forums? I can get them at the very top and very bottom of the page but I would like them below the navigation bar or after the 1st post.

My website is www.freebaymarkets.com (still under construction)

Thanks
The Conspirator
Go to the index.template.php files of your theses, add them there.
Code:
function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
                           add here to have an add at the bottom but above the footer
      </td></tr>
   </table>';

Code:
   echo '
   </table>

   <br />
   <table cellspacing="0" cellpadding="10" border="0" align="center" width="95%" class="tborder">
      <tr><td valign="top" style="background-color: #ffffff;">
                           add here to have an add at the bottom but above the head';
}

function template_main_below()
FreeBay
thanks. ill try them

do you know how to add adsense after the first post?
The Conspirator
Code:
      // Show the member's signature?
      if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
         echo '
                     <hr width="100%" size="1" class="hrcolor" />
                     <div class="signature">', $message['member']['signature'], '</div>';

      echo '
                  </td>
               </tr>
            </table>
         </td></tr>
      </table>';
i++;
if($i == 1)
      echo ' adds here';
echo '
   </td></tr>';
bosunjohnson
how can i place this in all post? and where is the right place to place my google search box
maaji
HMMM nice trick thx buddy Very Happy
Related topics
More forum types.
SMF help
Yahoo! publisher, an alternative to Google AdSense
Installing a SMF based forum
help on smf
Google Adsense - *OFFICIAL THREAD*
You a adsense member?
Adsense
Adsense in India ??
Which Platform is better?SMF or PHPBB2
[RESOLVED] SMF tools?
Templates with comun design Mambo/SMF/coppermine
[RESOLVED] Invision Power board...
How To Change Smf's "News" Headline To Adsense?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.