URL to your eFiction: http://www.jonasbrothersfanfictionarchive.com
Version of eFiction: 3.5
Have you bridged eFiction, if so with what?: SMF
Version of PHP: 5
Version of MySQL: Dunno anymore
Have you searched for your problem: yes
If so, what terms did you try: TinyMCE, story text, configuration, apostrophe, /
State the nature of your problem:
Essentially, tinyMCE is inserting / before apostrophes. This happens to many users, whether they are copying from Word, Notepad, just typing in... It was working fine on Dreamhost, but now that we've switched to our own dedicated server it's a little wacky. I've tried updating to the most recent version of tinyMCE, but that didn't help.
I swear there's a thread on this somewhere, but I couldn't get it to come up in a search.
Do you have a test account for us? testuser/banana13
Skins made by Kali are no longer supported!
I did a little research and it seems to be a server problem with "magic_quotes".
Magic Quotes is a process that automagically escapes incoming data to the PHP script. It's preferred to code with magic quotes off and to instead escape the data at runtime, as needed.
I know that in coding you have to 'escape' apostrophes so that they will display properly.
Since you're on a dedicated server you should be able to do a custom configuration I'm guessing with php.ini or have support change it for you. That's my only suggestion π
EDIT: Maybe you might also want to try taking a look at this on disabling magic quotes, as I mentioned through php.ini, but also there seems to be another method you could try perhaps at every header?
In the interest of writing portable code (code that works in any environment), like if setting at the server level is not possible, here's an example to disable magic_quotes_gpc at runtime. This method is inefficient so it's preferred to instead set the appropriate directives elsewhere.
Example #2 Disabling magic quotes at runtime
<?php
if (get_magic_quotes_gpc()) {
function stripslashes_deep($value)
{
$value = is_array($value) ?
array_map('stripslashes_deep', $value) :
stripslashes($value);
return $value;
}
$_POST = array_map('stripslashes_deep', $_POST);
$_GET = array_map('stripslashes_deep', $_GET);
$_COOKIE = array_map('stripslashes_deep', $_COOKIE);
$_REQUEST = array_map('stripslashes_deep', $_REQUEST);
}
?>
This is already in header.php I believe.
The relevent code in the header.php is
if(
(function_exists("get_magic_quotes_gpc") && get_magic_quotes_gpc()) ||
(ini_get('magic_quotes_sybase') && ( strtolower(ini_get('magic_quotes_sybase')) != "off"))
){
foreach($_POST as $var => $val) {
$_POST[$var] = is_array( $val ) ? array_map( 'stripslashes', $val ) : stripslashes( $val );
}
foreach($_GET as $var => $val) {
$_GET[$var] = is_array( $val ) ? array_map( 'stripslashes', $val ) : stripslashes( $val );
}
}
Skins made by Kali are no longer supported!
