News:

Wondering if this will always be free?  See why free is better.

Main Menu

Admin Menu not displaying right in new theme

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

Previous topic - Next topic

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.
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

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: