View Full Version : Header removing  
redndahead
15th of April 2005 (Fri), 14:55
When I am trying to insert my own heading in Misc Settings the form removes all after submission. It will show up right, but if I don't fix this everytime I hit submit on that form it will remove it and really mess up my page.
Just thought I would give you some bug info.
Adam
Pekka
15th of April 2005 (Fri), 15:57
I verified the bug. Thanks for reporting. To fix this, in fetchsettings.php replace lines
function ee_html_conversion ($html) {
$html = @htmlspecialchars($html);
$html = @str_replace("&","&",$html);
return $html;
}
with
function ee_html_conversion ($html) {
$html = @htmlspecialchars($html);
$html = @str_replace("<","<",$html);
$html = @str_replace(">",">",$html);
$html = @str_replace(""","\"",$html);
return $html;
}
Also, in EDITOR_settings.php replace line (933)
<td><?php print $s_multilingual; ?><br><textarea cols="60" rows="8" name="indexpage_text" style="background-color: <?php print $s_multilingual_color; ?>;" <?php ee_popuphelp("indexpage_text"); ?>><?php print ee_stripslashes($s_indexpage_text); ?></textarea><br>
with
<td><?php print $s_multilingual; ?><br><textarea cols="60" rows="8" name="indexpage_text" style="background-color: <?php print $s_multilingual_color; ?>;" <?php ee_popuphelp("indexpage_text"); ?>><?php print ee_html_conversion(ee_stripslashes($s_indexpage_te xt)); ?></textarea><br>
Let me know if it worked.
redndahead
16th of April 2005 (Sat), 01:09
I got an error when going to misc settings.
Parse error: parse error, unexpected T_STRING in /home/User/public_html/gallery/input/EDITOR_settings.php on line 933
redndahead
16th of April 2005 (Sat), 01:12
I noticed that there was an errant space in text in your post. I fixed that, but it still parses incorrectly removing the
Pekka
16th of April 2005 (Sat), 05:49
That's pretty odd that it does not work in your EE - I tested that and it fixed the problem (it's on my gallery now, I spaced Welcome on front page with non breaking spaces http://photography-on-the.net/gallery/index.php ).
Are you running some other EE than 1.5 RC4?
redndahead
16th of April 2005 (Sat), 13:17
It creates a space, but when you go back and look at the code in misc settings the part is removed. so when you save it again the space dissappears.
I am running 1.5 RC4
Adam
MichaelChristopher
27th of April 2005 (Wed), 14:53
I think the mystery of the disappearing nbsp may be solved. I use nbsp for formatting my PayPal stuff in the photo freetext field at www.alliej.com (http://www.alliej.com). This worked just fine until I had to move EE to a different ISP, which uses an older version of mysql. When I restored to the new (older version) database, it stripped about half of the nbsp's, and, substituted hash for some of the others, and inserted regular spaces for still others. It could be that Pekka's fix works fine in one db but not in another???
In any case, look out for nbsp wierdness when converting your EE db between mysql versions.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.