MySQL menu using screenposition offset

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
slackbladder
Super Advanced
Super Advanced
Posts: 72
Joined: Fri Jul 01, 2005 3:04 pm

MySQL menu using screenposition offset

Post by slackbladder »

Hi,

I have a problem with the MySQL solution.

http://support.milonic.com/datamenu/

Everything is fine but I can not use:

screenposition = "center"; left="offset=-200";

I get:

screenposition = ""center"; left="offset=-200"";

or

screenposition = "center; left=offset=-200";

neither work.

I guess "mm_phpmenu.php" needs amending?

Any ideas?

Thx
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

It works for me, I've added a field called "screenposition" to the mm_menus and declared center for the main menu.

Note that you must not include quotes inside the field.

Hope this helps,
Andy
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Oh and another thing, make sure it's a varchar, probalby about 40 chars long will do.

-- Andy
slackbladder
Super Advanced
Super Advanced
Posts: 72
Joined: Fri Jul 01, 2005 3:04 pm

Post by slackbladder »

Hi Andy,

Yep already added screenposition to main and adjusted field value but it's the additional 'offset' variable that doesn't work for me.

screenposition = center (works fine)

screenposition = center;offset=left=-200 (doesn't)

Thx
slackbladder
Super Advanced
Super Advanced
Posts: 72
Joined: Fri Jul 01, 2005 3:04 pm

Post by slackbladder »

Sorry to bump this.

Andy if you can point me in the right direction in editting mm_phpmenu.php I will have a go myself. I'm guessing some sort of check to see if screenposition is used then placing the quotes differently?

screenposition = "center"; left="offset=-200";

instead of:

screenposition = ""center"; left="offset=-200"";

Thx
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

The syntax: screenposition = "center"; left="offset=-200"; is incorrect.

Offsets need to be placed inside the left parameter.

So, leave screenposition as center and add a left value of offset=-200.

Note that you may need to change the left database field from an Integer to a varchar to accomodate the text.

The output should be like this:

screenposition="center";
left="offset=-200";

Hope this helps,
Andy
slackbladder
Super Advanced
Super Advanced
Posts: 72
Joined: Fri Jul 01, 2005 3:04 pm

Post by slackbladder »

Nice one fella! :D

Works a treat! I thought the left statement had to be part of the screenposition statement - I just created another field in mm_menus (MySQL) left - set the offset and YAY! spot on.

Thx for the help - this one is SOLVED! :D
Post Reply