Adding AdBrite 1.8 elgg

how is it possible to run Adbrite code 

 

<!-- Begin: adBrite, Generated: 2011-11-19 16:57:20  -->

<script type="text/javascript">

var AdBrite_Title_Color = '0000FF';

var AdBrite_Text_Color = '000000';

var AdBrite_Background_Color = 'FFFFFF';

var AdBrite_Border_Color = 'CCCCCC';

var AdBrite_URL_Color = '008000';

try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}

</script>

<script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=2049772&zs=3330305f323530&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>

<div><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=2049772&afsid=1" style="font-weight:bold;font-family:Arial;font-size:13px;">Your Ad Here</a></div>

<!-- End: adBrite -->

 

on my elgg site www.tagzme.com ?  running elgg 1.8

on purity_theme 

  • in public_html/mod/purity_theme/views/default/page/layouts

    I found custom_index.php

     

    <?php
    if (elgg_get_config('allow_registration') != false) {
    	$friend_guid = (int) get_input('friend_guid', 0);
    	$invitecode = get_input('invitecode');
    	$register_url = elgg_get_site_url() . 'action/register';
    	if (elgg_get_config('https_login')) {
    		$register_url = str_replace("http:", "https:", $register_url);
    	}
    	$form_params = array(
    		'action' => $register_url,
    		'class' => 'elgg-form-account float',
    	);
    	$body_params = array(
    		'friend_guid' => $friend_guid,
    		'invitecode' => $invitecode
    	);
    	$content = elgg_view_form('register', $form_params, $body_params);
    	$content .= elgg_view('help/register');
    } else {
    	$content = '';
    }
    ?>
    
    <div class="custom-index elgg-main elgg-grid clearfix">
    	<div class="elgg-col elgg-col-1of2">
    		<div class="elgg-inner pvm phm prl">
    			<div class="front_left">
    				<?php echo elgg_view('purity_theme/leftside'); ?>
    				<?php if (!elgg_is_logged_in()) echo $content;?>
    			</div>
    		</div>
    	</div>
    	<div class="elgg-col elgg-col-1of2">
    		<div class="elgg-inner pvm">
    			<div class="front_right">
    				<?php echo elgg_view('purity_theme/rightside'); ?>
    			</div>
    		</div>
    	</div>
    </div>
     
     
     
    is this it? if so where should i place the AdBrite code?
  • sorry for the messy code... my Adbrite code can be Viewed HERE http://pastebin.com/Tpqk11Ws