1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help me with php code please

Discussion in 'PHP' started by dylantt, Jul 16, 2009.

  1. #1
    Hi i have a website filekeepers.net its a free file shareing site well i got adbrite full page ads and see my website host is coded in php if someone will please add them please....


    <?
    	include_once("header.php");
        include_once("m_menu.php");  
    
    /*	
    Copyright Notice                 
    Web Site URL:  http://www.ezonelink.co.uk                   
    Script Owner eMail: webmaster@ezonelink.co.uk    
    Date: April, 2006        
    Script Name: eZonelink Image Hosting Script
    Copyright Details: This is not a free Script.  You must pay cost of this script and then use it.  Do not Remove this Copy Right notice.  	
    */
    	if (isset($_SESSION["member_sid"]) && $_SESSION["member_sid"] != "")
    	{
    		$template->set_filenames(array("index" => "index.html"));     
    		
    		$template->assign_vars(array(
    			'ERROR' => $error != ""?"<tr><td class='txt_red'>".$error."</td></tr>":"",
                'INTRO' => $intro,
    			'USERNAME'=> $_POST['username']
    		));
    		
    		$template->pparse("index");
    	}
    	else
    	{
    		$template->set_filenames(array("login" => "login.html"));     
    		
    		$template->assign_vars(array(
    			'ERROR' => $error != ""?"<tr><td class='txt_red'>".$error."</td></tr>":"",
                'INTRO' => $intro,
    			'USERNAME'=> $_POST['username']
    		));
    		
    		$template->pparse("login");
    	}
    
    	include_once ("right.php");    
    	include_once ("footer.php");    
    
    ?>
    Code (markup):
    thats my index.html
    SEMrush
    now my ad code

    <!-- Begin: AdBrite, Generated: 2009-07-16 10:27:00  -->
    <script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=1261893&br=1"></script>
    <!-- End: AdBrite -->
    Code (markup):

    if this is wong place please move i need help asap thanks if i can rep i will :D
     
    dylantt, Jul 16, 2009 IP
    SEMrush
  2. TecBrat

    TecBrat Member

    Messages:
    31
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    48
    #2
    I'm kind of guessing because I don't know anything about your template system, or adbright, but I'd figure you need to open your footer.php file, and put that code after the last php closing tag at the very end of the file.
     
    TecBrat, Jul 16, 2009 IP
  3. Martinoes

    Martinoes Peon

    Messages:
    110
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Create file adbrite.php with content:
    <!-- Begin: AdBrite, Generated: 2009-07-16 10:27:00  -->
    <script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=1261893&br=1"></script>
    <!-- End: AdBrite -->
    PHP:

    include this file everywhere you want.

    <?
    	include_once("header.php");
        include_once("m_menu.php");  
    
    /*	
    Copyright Notice                 
    Web Site URL:  http://www.ezonelink.co.uk                   
    Script Owner eMail: webmaster@ezonelink.co.uk    
    Date: April, 2006        
    Script Name: eZonelink Image Hosting Script
    Copyright Details: This is not a free Script.  You must pay cost of this script and then use it.  Do not Remove this Copy Right notice.  	
    */
    	if (isset($_SESSION["member_sid"]) && $_SESSION["member_sid"] != "")
    	{
    		$template->set_filenames(array("index" => "index.html"));     
    		
    		$template->assign_vars(array(
    			'ERROR' => $error != ""?"<tr><td class='txt_red'>".$error."</td></tr>":"",
                'INTRO' => $intro,
    			'USERNAME'=> $_POST['username']
    		));
    		
    		$template->pparse("index");
    	}
    	else
    	{
    		$template->set_filenames(array("login" => "login.html"));     
    		
    		$template->assign_vars(array(
    			'ERROR' => $error != ""?"<tr><td class='txt_red'>".$error."</td></tr>":"",
                'INTRO' => $intro,
    			'USERNAME'=> $_POST['username']
    		));
    		
    		$template->pparse("login");
    	}
    
            include_once("adbrite.php"); 
    
    	include_once ("right.php");    
    	include_once ("footer.php");    
    
    ?>
    PHP:
     
    Martinoes, Jul 21, 2009 IP