Guest lonewolf55337 Posted September 15, 2005 Share Posted September 15, 2005 I am unable to use the rich text editor, in fact it doesn't even show up, the text boxes, where you would normally type, will not accept any text. the text area shows up as a white box with no scroll bar. I used the mod to turn off the RTE for editing product descriptions, but I still can change the text on the Homepage, About Us, Contact Us , Privacy Policy ,Terms & Conditions. Quote Link to comment Share on other sites More sharing options...
Guest lonewolf55337 Posted September 16, 2005 Share Posted September 16, 2005 Thanks to the post by goober999 http://www.cubecart.com/site/forums/index....28&hl=fckeditor I was able to figure out how to turn off FCKeditor for not only the product descriptions like he mentioned, but also teh Homepage, and the Site documents. and the offline store message. where before all I had was a solid white box and was unable to edit anything. in order for this to work you need to read the thread by goober999 that started it all. with out his ground work I would have never figured it out on my own. and this is also my first attempt at any kind of PHP debugging or programming. you should be seeing a pattern on how this works.... by the time you get to the end. To edit offline store message without FCKeditor Insert the following code into "store"/admin/settings/index.php at line# 485 <?php if ($config['use_fckeditor'] == TRUE) { ?> <tr> <td width="30%" valign="top" class="tdText"><strong><?php echo $lang['admin']['settings']['off_line_content'];?></strong></td> <td align="left"> <?php include("../includes/rte/fckeditor.php"); $oFCKeditor = new FCKeditor('config[offLineContent]'); $oFCKeditor->BasePath = $GLOBALS['rootRel'].'admin/includes/rte/'; $oFCKeditor->Value = stripslashes($config['offLineContent']); $oFCKeditor->Create(); ?> </td> </tr> <?php } else { ?> <tr> <td colspan="2" class="tdText"> <textarea name="offline content" type="text" class="text" cols="50" rows="5"><?php if(isset($results[0]['offlinecontent'])) echo $results[0]['offlinecontent']; ?></textarea> </td> </td> </tr> <?php } ?> To turn off FCKeditor in your "Site Documents" area. paste the following code into "store"/admin/docs/sitedocs.php at lines #119 <?php if ($config['use_fckeditor'] == TRUE) { ?> <tr> <td class="tdRichText"> <?php $oFCKeditor = new FCKeditor('doc_content') ; $oFCKeditor->BasePath = $GLOBALS['rootRel'].'admin/includes/rte/'; if(isset($results[0]['doc_content'])){ $oFCKeditor->Value = $results[0]['doc_content']; } else { $oFCKeditor->Value = ""; } $oFCKeditor->Create(); ?></td> </tr> <?php } else { ?> <tr> <td colspan="2" class="tdText"> <textarea name="Doc_content" type="text" class="text" cols="50" rows="5"><?php if(isset($results[0]['doc_content'])) echo $results[0]['doc_conten']; ?></textarea> </td> </td> </tr> <?php } ?> To disable FCKeditor for your "Homepage" paste this code into lines 124 of "store"/admin/docs/home.php <?php if ($config['use_fckeditor'] == TRUE) { ?> <tr> <td colspan="2" class="tdRichText"> <?php $oFCKeditor = new FCKeditor('copy'); $oFCKeditor->BasePath = $GLOBALS['rootRel'].'admin/includes/rte/'; $oFCKeditor->Value = stripslashes($home['copy']); $oFCKeditor->Create(); ?> </td> </tr> <?php } else { ?> <tr> <td colspan="2" class="tdText"> <textarea name="copy" type="text" class="text" cols="50" rows="5"><?php if(isset($results[0]['copy'])) echo $results[0]['copy']; ?></textarea> </td> </td> </tr> <?php } ?> Email to customers in "store"/admin/customers/email.php insert this code starting at lines 84 <?php if ($config['use_fckeditor'] == TRUE) { ?> <tr> <td colspan="2" class="tdRichText"><?php include("../includes/rte/fckeditor.php"); $oFCKeditor = new FCKeditor('message') ; $oFCKeditor->BasePath = $GLOBALS['rootRel'].'admin/includes/rte/'; if(isset($_POST['message'])){ $oFCKeditor->Value = base64_decode($_POST['message']); } else { $oFCKeditor->Value = ""; } $oFCKeditor->Create(); ?> </td> </tr> <tr> <?php } else { ?> <tr> <td colspan="2" class="tdText"> <textarea name="message" type="text" class="text" cols="50" rows="5"><?php if(isset($results[0]['message'])) echo $results[0]['message']; ?></textarea> </td> </td> </tr> <?php } ?> Quote Link to comment Share on other sites More sharing options...
Guest Tagg Posted March 1, 2006 Share Posted March 1, 2006 Works great! Tho, I had to resort to CHMOD 777 the tree to actually write a save. Dunno why, but I assumed that the file contents were stored in DB. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.