Jump to content

Basic syntax help needed


thewesman

Recommended Posts

Hey guys, I have one image at the left side of my upper most table. Now I want to invoke my OpenAds banners to the right of that same table..

The syntax should be straight forward to do this, but for some reason I just keep coughing up errors. Perhaps it's the openads code that is giving me a problem?

 

Here's the code right now, that works but is not correct because I want the advertisement banners all the way to the right.

// TinyPortal start

// TinyPortal start
     if($context['TPortal']['fixed_width']!=0)
             echo '<table align="center" width="'.$context['TPortal']['fixed_width'].'" cellpadding="0" cellspacing="0" border="0"><tr><td>';
// TinyPortal end


//The Banner and crap at the top
echo '
   <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
      <td width="100%" align="left" valign="top" style="padding:0 30px 0 30px;">
      <a href="index.php"><img src="', $settings['images_url'], '/MOCClogofinal.png" border="0"></a>';


// The MAX_PATH below should point to the base of your Openads installation
  define('MAX_PATH', '/home/moccfo2/public_html/openads');
  if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
    if (!isset($phpAds_context)) {
      $phpAds_context = array();
    }
    $phpAds_raw = view_local('', 0, 1, 0, '', '', '0', $phpAds_context);
    echo $phpAds_raw['html'];
}



   echo '
   <div class="body-border">
   <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>';

 

My site for you to see it is www.moccforums.com

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/77990-basic-syntax-help-needed/
Share on other sites

  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.