Page 1 of 1

Bug in JavaScript RollOver Menu

Posted: Wed 1. Dec 2004, 15:21
by Florian
Hey Folks,

maybe it's not a bug. But I'm quite sure that it is.

After upgrading to 27-08-2004_A my GRAPHICS / ICONS which should be shown at the {NAV_TABLE_COLUMN:X} Tag aren't there. However there's just the path for "MMswapRestore" shown, BUT NOT THE SWAP IMAGE. Did anyone else have this problem?

I couldn't find out a workaround at the affected code within phpwcms. Can anyone help me quickly? It makes me going ... :? I don't want to restore the webfolder and switch back to the backup...

Many thanks in advance.

Cheers,
Florian

EXAMPLE OF THE BUG: http://www.inokoo.de/motivation.phtml

BUG SOLVED

Posted: Wed 1. Dec 2004, 18:47
by Florian
Hello,

this fu**ing bug takes nearly the whole afternoon to solve it, because I'm not very introduced into the code which is building the new tree array.

The Bug is in ./include/inc_front/front.func.inc.php on Line 933, 938 and 974

The lines which are placed into the file showing you at the affected lines the following:

Code: Select all

$temp_menu .= "<td valign=\"top\">".str_replace('#', $link_name_id, $nav_table_struct["linkimage_active"])."</td>\n";
REPLACE them with

Code: Select all

$temp_menu .= "<td valign=\"top\"><img src=\"".str_replace('#', $link_name_id, $nav_table_struct["linkimage_active"])."\" border = \"0\"></td>\n";

The <img> Tag is missing in the lines so only the location of the icons is shown (printed out).


Cheers,
Florian

Posted: Wed 1. Dec 2004, 19:52
by Oliver Georgi
no bug - this was renamed long time ago. Check conf.template_default.inc.php. No real <img...> tag is used there.

So do NOT change source code of phpwcms.

Oliver