News:

Follow us on Bluesky!

Main Menu

Putting Ads

Started by istaylsugbo, February 28, 2008, 03:28:50 AM

Previous topic - Next topic

istaylsugbo

Where do u put ads that would be displayed in:

a. The main board
b. create a topic
c. view topics
d. send a message to friends
e. reply to a topic

thanks

lordtron


VainSoftGames.com - New Design To Gaming

istaylsugbo

I have used it before, but i want to edit it manually. Can anyone atleast teach me how to manually put ads on my forum?

istaylsugbo

By the way, thanks for the reply

lordtron

Here are the steps to show Ads just below the header section.

First of all, locate the file index.template.php.

Now goto the following section:

QUOTE
<body>';

// The logo, user information, news, and menu.
echo '
......

Note the HTML just below that:

QUOTE
<table cellspacing="0" cellpadding="0" border="0" align="center" width="95%" class="tborder">


It is a table to show logo, user information and menu.
Now find following line:
QUOTE
<br />', $context['current_time'], '
</td>
</tr>


Finally, insert a new table row and paste Adsense Code there.
CODE
<tr>
            <td colspan="2" valign="middle" align="center" class="tborder" style="border-width: 1px 0 0 0; font-size: smaller;">
                <script type="text/javascript"><!--
                google_ad_client = "YOUR PUBLISHER ACCOUNT ID";
                google_ad_width = 728;
                google_ad_height = 90;
                google_ad_format = "728x90_as";
                google_ad_type = "text_image";
                google_ad_channel ="3949701292";
                google_color_border = "336699";
                google_color_bg = "FFFFFF";
                google_color_link = "0066CC";
                google_color_url = "006699";
                google_color_text = "000000";
                //--></script>
                <script type="text/javascript"
                  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script>
            </td>
       </tr>


This will show Adsense Ads just below the header section.

To show Adsense Ads at the bottom of the webpages (above the footer section):
Locate the following lines in the same file i.e. index.template.php


QUOTE
</table>';
// Don't show a login box, just a break.
else
echo '
<br />';


Below that line Type the following code:

CODE

echo '
   <table cellspacing="0" cellpadding="3" border="0" align="center" width="95%" class="tborder">
    <tr>
            <td align="center">
                <script type="text/javascript"><!--
                google_ad_client = "YOUR PUBLISHER ACCOUNT ID";
                google_ad_width = 728;
                google_ad_height = 90;
                google_ad_format = "728x90_as";
                google_ad_type = "text_image";
                google_ad_channel ="3949701292";
                google_color_border = "336699";
                google_color_bg = "FFFFFF";
                google_color_link = "0066CC";
                google_color_url = "006699";
                google_color_text = "000000";
                //--></script>
                <script type="text/javascript"
                  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script>
          </td>
      </tr>
      </table>';

Now the Ads will be displayed both below the header and above the footer section of the webpages.

Just replace what the <script>.....</script> to your ad code

VainSoftGames.com - New Design To Gaming

istaylsugbo


lordtron

your welcome and I know that works cause I use it myself.

VainSoftGames.com - New Design To Gaming

Advertisement: