Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Noctys on April 16, 2008, 02:26:48 PM

Title: Admin Menu not displaying right in new theme
Post by: Noctys on April 16, 2008, 02:26:48 PM
The admin sub menu is not displaying right in a copy of the default theme.  I have even tried putting all the files back to the originals and still not luck. I cleared my browsers cach & SMFs cach.

See the attachment for what I am talking about...

Any ideas???
Title: Re: Admin Menu not displaying right in new theme
Post by: shadow82x on April 16, 2008, 03:09:41 PM
Thats probaly more an issue with the theme. I tried installing SMF1.1 themes and noticed the menu maybe a little out of alignment but its usually not too bad.
Title: Re: Admin Menu not displaying right in new theme
Post by: Noctys on April 16, 2008, 03:22:43 PM
It's a direct copy of the Default Theme.  It worked for awhile, then went bad. I think it was when I copied over index.template.php or BoardIndex.template.php... But even copying over the originals or deleting these files (and clearing both caches) yields the same results.
Title: Re: Admin Menu not displaying right in new theme
Post by: shadow82x on April 16, 2008, 03:24:33 PM
It would be something in the css files. Its probaly not a cache issue either. 
Title: Re: Admin Menu not displaying right in new theme
Post by: metallica48423 on April 17, 2008, 08:21:47 PM
definitely a theme issue
Title: Re: Admin Menu not displaying right in new theme
Post by: niko on April 18, 2008, 10:27:18 AM
You need to copy dropmenu.css from css directory in default theme otherwise it will use dropmenu_default.css which is different.
Title: Re: Admin Menu not displaying right in new theme
Post by: Noctys on April 18, 2008, 10:56:06 AM
Sweet... Thanks Niko; I will try that later today!!!
Title: Re: Admin Menu not displaying right in new theme
Post by: Noctys on April 22, 2008, 12:34:25 PM
Sorry it took me so long to get back to the forums. That worked.  Thanks.
Title: Re: Admin Menu not displaying right in new theme
Post by: kmbarr on October 15, 2008, 01:26:56 PM
Is this a bug? Shouldn't this point to default/.../dropmenu.css when the file is missing rather than default/.../dropmenu_default.css?

The code in question is in Sources/Subs-Menu.php, around line 234:

if (file_exists($settings['theme_dir']. '/css/dropmenu.css'))
     $context['html_headers'] .=
          '<link rel="stylesheet" type="text/css" href="' .
          $settings['theme_url'] . '/css/dropmenu.css" />';
else
     $context['html_headers'] .=
          '<link rel="stylesheet" type="text/css" href="' .
          $settings['default_theme_url'] . '/css/dropmenu_default.css" />';


Changing the latter reference from dropmenu_default.css to dropmenu.css seems to resolve the problem without copying the file [but maybe breaks something else?].