• Welcome to Simple Machines Community Forum. Please login or sign up.

Admin Menu not displaying right in new theme

Started by Noctys, April 16, 2008, 02:26:48 PM

Previous topic - Next topic

Noctys

April 16, 2008, 02:26:48 PM Last Edit: April 22, 2008, 12:34:37 PM by Noctys
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???

shadow82x

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.
Colin B
Former Spammer, Customize, & Support Team Member

Noctys

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.

shadow82x

It would be something in the css files. Its probaly not a cache issue either. 
Colin B
Former Spammer, Customize, & Support Team Member

metallica48423

Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you   
Search
Settings Repair Tool
     

niko

You need to copy dropmenu.css from css directory in default theme otherwise it will use dropmenu_default.css which is different.

Noctys

Sweet... Thanks Niko; I will try that later today!!!

Noctys

Sorry it took me so long to get back to the forums. That worked.  Thanks.

kmbarr

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?].

Advertisement: