Custom skin problem

netmotiv8

Verified User
Joined
Sep 26, 2003
Messages
234
Location
UK
Hi,

I am generating a custom DA skin for our clients however I have hit upon a snag. I have designed the skin so that the full menu appears down the left hand side no matter what section you are in.

The problem only seems to occur when I use file manager. When navigating around the skin other than file manager the menu links are looking fine e.g.:
http://www.domain.com:2222/CMD_FILE_MANAGER?domain=domain.com
http://www.domain.com:2222/CMD_DB?domain=domain.com

etc etc. However once I entered file manager and then go back and try a navigate through the links, the links now are like this:
http://www.domain.com:2222/CMD_FILE_MANAGER?domain=none
http://www.domain.com:2222/CMD_DB?domain=none

And then when you try and click on those links, say for example MySQl Management I get this error:

#####
Could not excute your request

Details

You do not own that domain
#####

I have noticed this occurs when the domain=none appears in the links and if I hit the back button in the browser having used file manager. If I hit the home button to come out of file manager the links in the menu seem to remain intact.

This is my first attempt at designing a custom skin (removing tables and using div/css instead etc).

I have attached a part screenshot of the skin i am working on.


Any clues?


Cheers

Neil.
 

Attachments

  • dacustomskin.gif
    dacustomskin.gif
    20.6 KB · Views: 325
Hello,

The CMD_FILE_MANAGER is in a chroot jail *before* the skins are processed. This means that if you're trying to run php on any of the tokens, you'll be out of luck as they do not yet exist.

You can run any script you want, but you have to have all the data that will be used before anything is actually run. Skins are all pre-loaded and pre-parsed before the actually command being run is executed.

The above may...or may not relate to your actual question.. but the follow might apply more:

As for the domain=none .. if you're browsing through the filemanager, and you forget to pass the domain variable or set it in the tokens, then it's lost... thus you get "none". The filemanager isn't really associated with any domain.. it's just a directory tree.. so the domain variable won't really exist if you go back up to the main domain page .. by clicking deeper into the filemanager.... unless you ensure that you've passed the domain variable all over the place. In our skins, I think the only real way back up would be to go to the "home" or click the back button on your browser...both of which will either remember what the domain was, or you just start over again to pick the domain.

Hope that clarifies it a bit.

John
 
Back
Top