Support > Bugs

SMF Ads 2.3.4 and SMF 2.0 beta 4 Welcome area Issues

(1/3) > >>

Please see 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

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...
      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>
               <input type="submit" value="', $txt['login'], '" /><br />
               ', $txt['quick_login_dec'];

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

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

   echo '
                     echo '<div class="windowbg2 clearfix" align="right">';
                     //Welcome Ads
                     if (function_exists("show_welcomeAds"))
                        $ads = show_welcomeAds();
                           echo '<td class="windowbg2">';
                              echo $ads['content'];
                     echo '</div>';
               echo '

      <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 '
--- 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.

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

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

Anyone ?

I'll look at it in a few moments.


[0] Message Index

[#] Next page

Go to full version