Ultimate Web Site Drop Down Menu Forum

Ultimate Web Site Drop Down Menu Forum (http://www.udm4.com/forum/index.php)
-   Troubleshooting (http://www.udm4.com/forum/forumdisplay.php?f=12)
-   -   Cambridge Blue won't open (http://www.udm4.com/forum/showthread.php?t=914)

Khodr 02-05-2008 02:13 PM

Cambridge Blue won't open
 
Hello

I installed the Cambridge Blue menu with the sliding menu extension but I can't get the menus to slide and show the sub-menus either in PHP or Javascript.
My main file contains the following (php):

<link rel="stylesheet" type="text/css" href="resources/udm-style.php?config=/var/www/cambridge/style-blue.ini" media="screen, projection" />

in the head section, and:

<!-- PHP generated menu script [must come *before* any other modules or extensions] -->
<script type="text/javascript" src="resources/udm-dom.php?config=/var/www/cambridge/style-blue.ini"></script>

<!-- keyboard navigation module -->
<!-- <script type="text/javascript" src="resources/udm-mod-keyboard.js"></script> -->

<!-- sliding menus extension -->
<script type="text/javascript" src="resources/udm-x-sliding.js"></script>

In the body section (I have renamed my resources folder)

I changed the variable $cmatch to style-blue.ini in udm-dom.php and udm-style.php and back to no avail.

The menus appear blue and at the right position but no small arrows and nothing opens.

When I add the initial forward slash to the paths (before resources), even the blue menus are lost and the page shows without any CSS.

And I validated the page and no errors.

I have tried the main demo (with udm-custom.ini) on the same server without any changes to its files and it works.

Please help

Thank you in advance

Khodr

vinyl-junkie 02-06-2008 03:17 AM

If you're going to rename the folder structure for UDM4, you'll need to find a statement in the udm-custom file that looks something like this:

Code:

//path to images folder
um.baseSRC = "/udm-resources/";

and change it to this:

Code:

//path to images folder
um.baseSRC = "/resources/";

If that doesn't fix it, put it back the way it was and change your UDM directory structure to match the example code. One of these two things should work for you. If not, post a link to your site so we can have a closer look at the problem.

Khodr 02-06-2008 12:44 PM

I did this in style-blue.ini. I didn't imagine we need udm-custom.ini.
Anyway, I changed back the resources folder name to udm-resources and I put syle-blue.ini instead of udm-custom.ini in $config in udm-style.php and udm-dom.php (of course I removed it from the URLs in sytle-blie.php) and now it is working. So I don't know now, if it is the change of the folder name or a wrong path in the links in style-blue.php that was the problem.

Thanks a lot

Khodr

vinyl-junkie 02-07-2008 01:01 AM

I'm glad you got it working. :) One thing you might file away for future reference is to change one thing at a time if you want to narrow down the offending bit of code. It's tedious but it works.

Khodr 02-08-2008 08:55 AM

Hi

I did what you suggested and the problem wasn't the folder name but a wrong path.

Thank again

Khodr


All times are GMT. The time now is 07:41 PM.

Powered by vBulletin® Version 3.0.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.