Coinbase

Author Topic: For coders  (Read 1809 times)

0 Members and 1 Guest are viewing this topic.

Offline xewax

  • Newbie
  • *
  • Posts: 2
For coders
« on: March 12, 2008, 02:14:33 am »
Can anyone tell me where to paste html (adsense) code in index.template.php file? I need exact explanation cause several ways i found on this forum is not working for me because of (coding) errors.

Offline xewax

  • Newbie
  • *
  • Posts: 2
Re: For coders
« Reply #1 on: March 12, 2008, 03:14:01 am »
I solved my problem myself: I wanted an ad on top below menu so thats the coding...i use non default theme and smf 1.4 (ad management not working in non default theme). In index.template.php find template_menu and then after this line the next word div and follow with the code below.

Code: [Select]
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
</div>
<div align="center">
<!-- Begin BidVertiser code -->
<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=97880&bid=294441" type="text/javascript"></SCRIPT>
<noscript><a href="http://www.bidvertiser.com">pay per click advertising</a></noscript>
<!-- End BidVertiser code -->
</div>';



// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';


SMF Ads Support Forum

Re: For coders
« Reply #1 on: March 12, 2008, 03:14:01 am »
.

 

.