Page 1 of 1

Another nav_table_column bug?

Posted: Wed 5. May 2004, 14:51
by henk
hi,
our nav_table_column menu works without background colors, only hover will change. was fine with phpwcms rc1. we've just updated and now RC4 is installed. as you can see on http://annefrank.de/index.php?ausst the background color of the left menu is changed by hover - but it doesn't turn back when you leave the link, it just stays grey (tested with opera7 and ie6). am I too stupid, is it another or a known bug and how can i fix it? below you can see the part of conf.template_default.inc.php.

thanks in advance,
hendryk
-

Code: Select all

// navigation table defaults
$template_default["nav_table_struct"]["table_border"]			= "0";
$template_default["nav_table_struct"]["table_width"]			= "100%";
$template_default["nav_table_struct"]["table_height"]			= "";
$template_default["nav_table_struct"]["table_bgcolor"]			= "";
$template_default["nav_table_struct"]["table_bgimage"]			= "";
$template_default["nav_table_struct"]["table_class"]			= "";
$template_default["nav_table_struct"]["table_cspace"]			= "0";
$template_default["nav_table_struct"]["table_cpad"]				= "0";
//
$template_default["nav_table_struct"]["space_width"]			= 10;
$template_default["nav_table_struct"]["space_left"]				= 0;
$template_default["nav_table_struct"]["space_right"]			= 10;
$template_default["nav_table_struct"]["space_celltop"]			= 0;
$template_default["nav_table_struct"]["space_cellbottom"]		= 5;
//
$template_default["nav_table_struct"]["cell_width"]				= "100%";
$template_default["nav_table_struct"]["cell_height"]			= "15";
$template_default["nav_table_struct"]["cell_bgcolor"]			= "";
$template_default["nav_table_struct"]["cell_bgimage"]			= "";
$template_default["nav_table_struct"]["cell_class"]				= "nav_table";
//
$template_default["nav_table_struct"]["cell_active_width"]		= "100%";
$template_default["nav_table_struct"]["cell_active_height"]		= "15";
$template_default["nav_table_struct"]["cell_active_bgcolor"]	= "";
$template_default["nav_table_struct"]["cell_active_bgimage"]	= "img/article/nav_link_0.gif";
$template_default["nav_table_struct"]["cell_active_class"]		= "nav_table_active";
//
$template_default["nav_table_struct"]["js_over_effects"]		= 1;
//	
$template_default["nav_table_struct"]["linkimage_norm"]			= "img/article/nav_link_0.gif";
$template_default["nav_table_struct"]["linkimage_over"]			= "img/article/nav_link_1.gif";
$template_default["nav_table_struct"]["linkimage_active"]		= "img/article/nav_link_1.gif";
//
$template_default["nav_table_struct"]["row_norm_bgcolor"]		= "";
$template_default["nav_table_struct"]["row_norm_bgimage"]		= "";
$template_default["nav_table_struct"]["row_norm_class"]			= "";
//	
$template_default["nav_table_struct"]["row_over_bgcolor"]		= "#AAB7C1";
$template_default["nav_table_struct"]["row_active_bgcolor"]		= "#FFFFFF";
$template_default["nav_table_struct"]["row_active_bgimage"]		= "";
$template_default["nav_table_struct"]["row_active_class"]		= "";
//
$template_default["nav_table_struct"]["row_space"]				= 0;
$template_default["nav_table_struct"]["row_space_bgcolor"]		= "#4A5966";

Posted: Wed 5. May 2004, 16:42
by Paradroid
Hi,

have you tried to set

Code: Select all

$template_default["nav_table_struct"]["row_norm_bgcolor"]      = "#FFFFFF";
?

cu

Achim

Posted: Wed 5. May 2004, 16:50
by henk
hmm, the (normal) background must not be white.

thanks indeed,
h.

Posted: Wed 5. May 2004, 17:02
by Paradroid
Ah,

now I see the Problem ...
You want the Buttons to be transparent.

Posted: Wed 5. May 2004, 17:32
by hendryk
exactly. it also won't work with a blank image defined in ["row_norm_bgimage"], by the way.

Posted: Wed 5. May 2004, 21:02
by Jan212

Code: Select all

$template_default["nav_table_struct"]["row_norm_bgimage"]		= "<img src=\"img/my_trans_img.gif\" width=\"1\" height=\"4\" alt=\"\" />";
or disable the java rollover

Code: Select all

$template_default["nav_table_struct"]["js_over_effects"]		= 1;
to

Code: Select all

$template_default["nav_table_struct"]["js_over_effects"]		= 0;

Posted: Thu 6. May 2004, 02:03
by snobba
Henk,

Is it really a phpwcms site?? I can't seem to find any phpwcms copyright in your code. But still you want help from its community...

Hmmm, is that not a bit strange?...Or am I to hard?

/ Martin

(just to make it clear for some :wink: - I am AGAINST disrespecting GNU, the PHPWCMS-project and ofcourse our dear O.)

Posted: Thu 6. May 2004, 03:54
by DeXXus
What's ~WORSE~ is over -=HERE=-

http://annefrank.de/login.php

Posted: Thu 6. May 2004, 15:02
by Jan212
that isn't ok - you aren't allowed to remove the copyright. i will check it...

Having similar issues

Posted: Thu 27. May 2004, 04:55
by jsw_nz
I want to put a white vertical keyline on the far left against an orange background. By default, I inserted this code in the inc_conf/conf.template_default.php:

Code: Select all

$template_default["nav_table_struct"]["row_norm_bgimage"]= "img/article/fnl_background_left.gif";
I then declare:

Code: Select all

$template_default["nav_table_struct"]["row_over_bgcolor"]= "#FFFFFF";
This gives a white rollover, but on rollout the row does not return to normal. so I tried to be more explicit by declaring the normal background color:

Code: Select all

$template_default["nav_table_struct"]["row_norm_bgcolor"]= "#FAB700"
The row returns to normal, but as a result the normal background image gets over-ruled, no keyline is shown. I am working with RC-4,, and from what I can gather there is no onboard support for an additional l(hypothetical) line of code that might fix this problem. (Might not be supported)

Code: Select all

$template_default["nav_table_struct"]["row_over_bgimage"]
I know Oliver is pretty busy, I do not want to bother him. Just though more experienced php programmers might offer a workaround.

Here is a screenshot of the issue:

Image

The white vertical keyline is what I want to display. It displays fine on the left, but the after the rollover (to white) it does not return to normal. The right image shows the 'row_norm_bgcolor' over-riding the row_norm_bgimage. Spent a considerable amount of time on this, a brain-teaser....thinking that the additional line of code might fix, but not clear where it fits into Oliver's code generation scheme, or whether swappin out bgimage is even possible...

Cheers,
jsw

Posted: Thu 27. May 2004, 06:47
by jsw_nz
UPDATE:

Got a workaround, which nudges the navigation table over 1 pixel, allowing the keyline to show up on the far left. The nesting of tables likely produced this situation:

Page Layout: width left=166;
Page Template: Table in which nav column is nested: width="165" align="right"

cheers...