Another nav_table_column bug?

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
henk
Posts: 2
Joined: Wed 5. May 2004, 14:45

Another nav_table_column bug?

Post 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";
User avatar
Paradroid
Posts: 176
Joined: Fri 19. Mar 2004, 13:14
Location: Wuppertal
Contact:

Post by Paradroid »

Hi,

have you tried to set

Code: Select all

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

cu

Achim
ParaDroid

knquadrat edv + marketing
http://www.knquadrat.de

phpWCMS Dokumentation | Deutsch | English
henk
Posts: 2
Joined: Wed 5. May 2004, 14:45

Post by henk »

hmm, the (normal) background must not be white.

thanks indeed,
h.
User avatar
Paradroid
Posts: 176
Joined: Fri 19. Mar 2004, 13:14
Location: Wuppertal
Contact:

Post by Paradroid »

Ah,

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

knquadrat edv + marketing
http://www.knquadrat.de

phpWCMS Dokumentation | Deutsch | English
hendryk
Posts: 3
Joined: Mon 16. Feb 2004, 14:45

Post by hendryk »

exactly. it also won't work with a blank image defined in ["row_norm_bgimage"], by the way.
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post 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;
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
snobba
Posts: 166
Joined: Sat 6. Mar 2004, 12:41
Location: Sweden
Contact:

Post 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.)
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

What's ~WORSE~ is over -=HERE=-

http://annefrank.de/login.php
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post by Jan212 »

that isn't ok - you aren't allowed to remove the copyright. i will check it...
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Having similar issues

Post 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
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post 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...
Locked