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
Share on other sites

  • 3 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.