Details
-
Improvement
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Invalid
-
3.0.10
-
None
Description
Reference post: http://www.phpbb.com/community/viewtopic.php?p=13162495#p13162495
It seems editor.js (the file responsible for the color palette) does not take into account MODs that may add their own posting files NOT in the phpBB root directory. I have a MOD that has a posting file inside a directory in the phpBB root directory. The phpbb_root_path variable was set correctly, however I ran into an issue where the color palette would stretch the screen in FireFox and distort the palette in IE. After much testing (and hair pulling ), I decided to look in editor.js and see what I could dig up.
document.write('<a href="#" onclick="bbfontstyle(\'color=#' + color + '\', \'[/color]\'); return false;"><img src="images/spacer.gif" width="' + width + '" height="' + height + '" alt="#' + color + '" title="#' + color + '" /></a>');
As you can see, the img src does not check for the phpbb_root_path variable. Since this is not a bug (because it doesn't affect any phpBB functionality), I'm requesting an improvement to the code to check for such a variable.