Support > Bugs

SMF Ads 2.3.4 and SMF 2.0 beta 4 Welcome area Issues

(1/3) > >>

Jump1979man:
Please see http://www.omahasportbikes.com and check out the welcome area where it should be...

I currently dont have any ads placed in this area due to the space being messed up.  Something with the space is messed up and I cant seem to figure out what it is exactly...I think its just missing something to close off the code but for the life of me I cant seem to figure it out.

The welcome area should look like it does on this forum http://www.mwmotorcycles.com

Anyone have any ideas?

This is the code in question

--- Quote ---   // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   else
   {
      echo '
            <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
            <form class="windowbg" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
               ' , $txt['login_or_register'], '<br />
               <input type="text" name="user" size="10" />
               <input type="password" name="passwrd" size="10" />
               <select name="cookielength">
                  <option value="60">', $txt['one_hour'], '</option>
                  <option value="1440">', $txt['one_day'], '</option>
                  <option value="10080">', $txt['one_week'], '</option>
                  <option value="43200">', $txt['one_month'], '</option>
                  <option value="-1" selected="selected">', $txt['forever'], '</option>
               </select>
               <input type="submit" value="', $txt['login'], '" /><br />
               ', $txt['quick_login_dec'];

      if (!empty($modSettings['enableOpenID']))
         echo'
               <br />
               <input type="text" name="openid_url" id="openid_url" size="25" class="openid_login" />';

      echo '
               <input type="hidden" name="hash_passwrd" value="" />
            </form>';
   }

   echo '
         </div>
';
                     echo '<div class="windowbg2 clearfix" align="right">';
                     //Welcome Ads
                     if (function_exists("show_welcomeAds"))
                     {
                        $ads = show_welcomeAds();
                        if(!empty($ads))
                        {
                           echo '<td class="windowbg2">';
                           if($ads['type']==0)
                              echo $ads['content'];
                           else
                              eval($ads['content']);
                        }
                        unset($ads);
                     }
                     echo '</div>';
               echo '


</div>
      
      <div id="news_section" class="titlebg2 clearfix"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
         <form class="floatright" id="search_form" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
            <a href="', $scripturl, '?action=search;advanced" title="', $txt['search_advanced'], '"><img id="advsearch" src="'.$settings['images_url'].'/filter.gif" align="middle" alt="', $txt['search_advanced'], '" /></a>
            <input type="text" name="search" value="" style="width: 190px;" />&nbsp;
            <input type="submit" name="submit" value="', $txt['search'], '" style="width: 11ex;" />
            <input type="hidden" name="advanced" value="0" />';

   // Search within current topic?
--- End quote ---

In the install instructions it says to add the bold BEFORE this
--- Quote ---echo '
         </div>
--- End quote ---

however it adds it AFTER and when I tried to add it before the site errors out....

Please help.  Thanks.


btw, this is in the default theme index.template file.

ccbtimewiz:
This is confusing. Could you just attach your index.template.php file so I can fix it?

defiant:
I've had this problem since beta 4 came out.  I'm now on RC1 and still have the issue.  I've attached my file but you'll note I haven't even put any add's in it yet but it's still screwed my theme up

defiant:
Anyone ?

ccbtimewiz:
I'll look at it in a few moments.

Navigation

[0] Message Index

[#] Next page

Go to full version