News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

problem loading the /Themes.......

Started by PSB, March 20, 2012, 05:21:22 PM

Previous topic - Next topic

PSB

Have tried refreshing several times and no background yet, so close but yet so far : )  I will be sure to click on the resolved tab, and thanks again for the help, everyone!

kat

When you're done, remember my sig, woncha? ;)

PSB

Will do, but need to learn how to do that also....  but thats a MUST thanks again!

(Still no backgound yet, wonder if the Core theme has it over written.)

Kays

Do a "View Page Source" (ight click context menu) to see if it's there.

For when you get the time. :)
How do I backup my SMF forum?
How do I backup my database?

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

PSB


PSB

Seems to be there but still no background, getting close now : )

--------------------------------



// The main sub template above the content.
function template_html_above()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

   // Show right to left and the character set for ease of translating.
   echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"';, $context['right_to_left'] ? ' dir="rtl"' : '', '><head>';

   // The ?fin20 part of this link is just here to make sure browsers don't cache it wrongly.
   echo '
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?fin20" />';

   // Some browsers need an extra stylesheet due to bugs/compatibility issues.
   foreach (array('ie7', 'ie6', 'webkit') as $cssfix)
      if ($context['browser']['is_' . $cssfix])
         echo '
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/', $cssfix, '.css" />';

   // RTL languages require an additional stylesheet.
   if ($context['right_to_left'])
      echo '
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/rtl.css" />';

   // Here comes the JavaScript bits!
   echo '
   <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?fin20"></script>
   <script type="text/javascript" src="', $settings['theme_url'], '/scripts/theme.js?fin20"></script>
   <script type="text/javascript"><!-- // --><![CDATA[
      var smf_theme_url = "', $settings['theme_url'], '";
      var smf_default_theme_url = "', $settings['default_theme_url'], '";
      var smf_images_url = "', $settings['images_url'], '";
      var smf_scripturl = "', $scripturl, '";
      var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
      var smf_charset = "', $context['character_set'], '";', $context['show_pm_popup'] ? '
      var fPmPopup = function ()
      {
         if (confirm("' . $txt['show_personal_messages'] . '"))
            window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");
      }
      addLoadEvent(fPmPopup);' : '', '
      var ajax_notification_text = "', $txt['ajax_in_progress'], '";
      var ajax_notification_cancel_text = "', $txt['modify_cancel'], '";
   // ]]></script>';

   echo '
   <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
   <meta name="description" content="', $context['page_title_html_safe'], '" />', !empty($context['meta_keywords']) ? '
   <meta name="keywords" content="' . $context['meta_keywords'] . '" />' : '', '
   <title>', $context['page_title_html_safe'], '</title>';

   // Please don't index these Mr Robot.
   if (!empty($context['robot_no_index']))
      echo '
   <meta name="robots" content="noindex" />';

   // Present a canonical url for search engines to prevent duplicate content in their indices.
   if (!empty($context['canonical_url']))
      echo '
   <link rel="canonical" href="', $context['canonical_url'], '" />';

   // Show all the relative links, such as help, search, contents, and the like.
   echo '
   <link rel="help" href="', $scripturl, '?action=help" />
   <link rel="search" href="' . $scripturl . '?action=search" />
   <link rel="contents" href="', $scripturl, '" />';

   // If RSS feeds are enabled, advertise the presence of one.
   if (!empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']))
      echo '
   <link rel="alternate" type="application/rss+xml" title="', $context['forum_name_html_safe'], ' - ', $txt['rss'], '" href="', $scripturl, '?type=rss;action=.xml" />';

   // If we're viewing a topic, these should be the previous and next topics, respectively.
   if (!empty($context['current_topic']))
      echo '
   <link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
   <link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';

   // If we're in a board, or a topic for that matter, the index will be the board's index.
   if (!empty($context['current_board']))
      echo '
   <link rel="index" href="', $scripturl, '?board=', $context['current_board'], '.0" />';

   // We'll have to use the cookie to remember the header...
   if ($context['user']['is_guest'])
   {
      $options['collapse_header'] = !empty($_COOKIE['upshrink']);
      $options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
   }

   // Output any remaining HTML headers. (from mods, maybe?)
   echo $context['html_headers'];

   echo '
</head>
<body background=http://www.ssec.wisc.edu/data/east/latest_eastvis.gif>';
}


--------------------------------------------

Thanks for any help, let me know if now in the wrong area, or if better to start a new post as topic now changed , again BIG thanks. I thought I would be belittled for asking but I am very happy to be proven wrong, great product!

Kays

Open index.css in the css folder in the core theme and look for the following:


body
{
background: #e5e5e8;
font: 95%/90% Verdana, Helvetica, sans-serif;
margin: 0;
padding: 12px 0 4px 0;
}


And remove the first line with the background attribute.  After that use Crtl + F5 to refresh the page and to clear the browser's cache.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

PSB

Do I leave the word background:

Or remove the full line...

Guess I can try both one at a time : )

Kays

The whole line since that's what overriding your image.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

PSB

I just had to remove the attributes and BANG!

THANK YOU!

Its almost the way it was now before the hack about a month ago. And the great thing about this background is it gets dark at night and light during the day....

Thanks again!

Kays


If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Advertisement: