TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 25, 2024, 07:54:57 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,280
  • Total Topics: 21,227
  • Online today: 190
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 167
  • Total: 167

News fader removal

Started by dkharp, October 02, 2009, 06:18:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dkharp

hello,

I know that this may not be related over here. But I want to try.  On the SMF default theme. Above the tabs and below the logo. You can see the search bar and news fader. It sits on a off color. How can I remove that hole part out of the header?

To give you can idea. http://www.texasteamplayers.com/

This is what mine looks like. http://www.36thid.info

http://www.simplemachines.org/community/index.php?topic=339836.0

I am running smf 1.1.0 and tp. TinyPortal v1.0 beta 4 Ã,© Bloc

can anyone please help with this?

IchBin

Very nice site dkharp. You have a big board. Do you have access to the big boards section at SMF? Anyone with 500k posts or more is given special access to that board at SMF.

Anyway, on your site I do not see the bar that you are talking about. It is likely because you have to be logged in to see that part. Can you attach your index.templat.php file so I can take a look?

dkharp

Hey Bloc!

Man I messed up. I entered their website twice. I have edited it and added my site. That is. www.36thid.info  My bad...lol

Per your request I have added my index.template.




dkharp

Don't ask me how I figured it out being I am a noob... but I did

So others will now how.

Remove this.

Quote// Show the news fader?  (assuming there are things to show...)
  if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
  {
     echo '
  <table border="0" width="100%" class="tborder" cellspacing="' , ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' : '0' , '" cellpadding="4" style="margin-bottom: 2ex;">
     <tr>
        <td class="catbg"> &nbsp;', $txt[102], '</td>
     </tr>
     <tr>
        <td valign="middle" align="center" height="60">';

     // Prepare all the javascript settings.
     echo '
           <div id="smfFadeScroller" style="width: 90%; padding: 2px;">', $context['news_lines'][0], '</div>
           <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
              // The fading delay (in ms.)
              var smfFadeDelay = ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';
              // Fade from... what text color? To which background color?
              var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
              // Surround each item with... anything special?
              var smfFadeBefore = "", smfFadeAfter = "";

              var foreColor, backEl, backColor;

              if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
              {
                 foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                 smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                 backEl = document.getElementById(\'smfFadeScroller\');
                 while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
                    backEl = backEl.parentNode;

                 backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                 smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
              }
              else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
              {
                 foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
                 smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                 backEl = document.getElementById(\'smfFadeScroller\');
                 while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
                    backEl = backEl.parentNode;

                 backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
                 smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
              }

              // List all the lines of the news for display.
              var smfFadeContent = new Array(
                 "', implode('",
                 "', $context['fader_news_lines']), '"
              );
           // ]]></script>
           <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
        </td>
     </tr>
  </table>';
  }

IchBin

Well I'm not Bloc, but I'll take that as a compliment. :P
Glad you got it figured out. See what happens when you try! :)