Bug in JavaScript RollOver Menu

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
Florian
Posts: 119
Joined: Wed 19. Nov 2003, 16:50
Location: Hamburg
Contact:

Bug in JavaScript RollOver Menu

Post 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
Florian
Posts: 119
Joined: Wed 19. Nov 2003, 16:50
Location: Hamburg
Contact:

BUG SOLVED

Post 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
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Locked