Jack_mcs Posted May 4, 2008 Share Posted May 4, 2008 (edited) This contribution allows the shop owner to edit the text on any page in his shop which is located beneath the root directory. Unlike other text editor contributions, it doesn't require any code changes to be made to the root files, which makes it more flexible and compatible with other contributions. Jack Edited May 4, 2008 by Jack_mcs Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
scorp Posted May 4, 2008 Share Posted May 4, 2008 Hi Ive just installed this addon and im receiving an error when i update a test file. Error reads : Warning: mkdir(/catalog/admin/backups_textmaster/includes) [function.mkdir]: No such file or directory in /home/sites/my_domain.co.uk/public_html/catalog/admin/includes/functions/textmaster.php on line 69 Ive set the admin/backups_textmaster folder to 777 the same as images folder as instructed in readme. I did notice that in textmaster at the top the Enable HTML Editor is unticked but Restore from Backup: is marked and faded out unclickable this doesnt change when editing any field. Any help in this area much apprieated. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 4, 2008 Author Share Posted May 4, 2008 I just uploaded an updated version. I had forgot to include a last minute change. I don't know that it will fix your problem, but it is needed for proper operation. So please downlaod the new versions and upload the admin/textmaster.php and admin/includes/functions/textmaster.php files to your server and try it again. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted May 4, 2008 Share Posted May 4, 2008 Thanks, just what I was looking for. Easy to install and it works a treat. Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
scorp Posted May 4, 2008 Share Posted May 4, 2008 Made no change with updated files. Looks like im having problems making the files for the backup. Error after edit now reads: Warning: mkdir(/catalog/admin/backups_textmaster/includes) [function.mkdir]: No such file or directory in /home/sites/my_domain.co.uk/public_html/catalog/admin/includes/functions/textmaster.php on line 88 Failed to create the backup directory(s): /home/sites/my_domain.co.uk/public_html/catalog/includes/languages/english/testpage.php Quote Link to comment Share on other sites More sharing options...
scorp Posted May 4, 2008 Share Posted May 4, 2008 Made no change with updated files.Looks like im having problems making the files for the backup. Error after edit now reads: Warning: mkdir(/catalog/admin/backups_textmaster/includes) [function.mkdir]: No such file or directory in /home/sites/my_domain.co.uk/public_html/catalog/admin/includes/functions/textmaster.php on line 88 Failed to create the backup directory(s): /home/sites/my_domain.co.uk/public_html/catalog/includes/languages/english/testpage.php All sorted now it was a miss configured configure.php in admin causing my problem works great now, well done to all involved. :thumbsup: Quote Link to comment Share on other sites More sharing options...
azer Posted May 5, 2008 Share Posted May 5, 2008 hi could yo ushow a screenshot of the feature of this contrib it s hard to understand how you edit text and what you mean by file to the root files... Quote MS2 Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted May 5, 2008 Share Posted May 5, 2008 Don't be so lazy :-), it is 6 step install and takes less than 10 minutes. Try it and see. By file to the root files... I suspect you are refering to it doesn't require any code changes to be made to the root files By this I believe Jack is emphasising how few files need to be updated to get this to work, therefore how easy it is to install. Is a total of 4 lines in 3 different files. Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
scorp Posted May 5, 2008 Share Posted May 5, 2008 (edited) Don't be so lazy :-), it is 6 step install and takes less than 10 minutes. Try it and see. It is an easy install i just had a misconfigued config file in my admin. I dont think you realy need a screenshot it only take 10mins to install. Edited May 5, 2008 by scorp Quote Link to comment Share on other sites More sharing options...
jeremiah11 Posted May 7, 2008 Share Posted May 7, 2008 this contribution does not work with "text information" boxes, only headers and titles and other text fields. For some reason the check box for enable html editor cannot be checked and im not sure if this is a bug or not. Hopefully someone can fix the bugs or explain to me why this is happening. Jeremy Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 7, 2008 Author Share Posted May 7, 2008 this contribution does not work with "text information" boxes, only headers and titles and other text fields. For some reason the check box for enable html editor cannot be checked and im not sure if this is a bug or not. Hopefully someone can fix the bugs or explain to me why this is happening. Jeremy The ability to edit files in the includes directories was added as an afterthought when I ran across a site that had a lot of text files there for includes. I never even tried editing an infobox, which I should have. In that directory, the code forces the use of the editor since there aren't, or shouldn't be, any defines. When an infobox is viewed, it should be viewed without the html editor but that isn't currently possible due to that forcing. In looking at this, I see that there is also a problem with the code when trying to save files in that directory. I will work on an update for both problems. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted May 7, 2008 Share Posted May 7, 2008 On a local copy using xampp I tried to edit the privacy.php file that contains <span style="font-weight: bold;">PRIVACY STATEMENT FOR ' . STORE_NAME . ' WEBSITE<br></span><br><span style="font-weight: bold;">GENERAL</span><br>This privacy statement sets out how ' . STORE_NAME . ' complies with European Union data protection requirements. This applies to the entire website. Any changes to these policies will be posted on this website.<br> You can also access this privacy statement via our homepage.<br> ' . STORE_NAME . ' Limited and its subsidiaries are committed to respecting your privacy. We have structured our website so that, in general, you can visit ' . STORE_NAME . ' Limited on the web without identifying yourself or revealing any personal information. Once you choose to provide us with any information by which you can be identified, then you can be assured that it will only be used in accordance with this privacy statement.<br> For your protection, we are registered under the Data Protection Act 1998 and have given all appropriate notifications to the Information Commissioner.<br><br><span style="font-weight: bold;">WHAT WE COLLECT</span> ............................ The text was changed to this <span style=\"font-weight: bold;\">PRIVACY STATEMENT FOR \' . STORE_NAME . \' WEBSITE<br></span><br><span style=\"font-weight: bold;\">GENERAL</span><br>This privacy statement sets out how \' . STORE_NAME . \' complies with European Union data protection requirements. This applies to the entire website. Any changes to these policies will be posted on this website.<br> You can also access this privacy statement via our homepage.<br> \' . STORE_NAME . \' Limited and its subsidiaries are committed to respecting your privacy. We have structured our website so that, in general, you can visit \' . STORE_NAME . \' Limited on the web without identifying yourself or revealing any personal information. Once you choose to provide us with any information by which you can be identified, then you can be assured that it will only be used in accordance with this privacy statement.<br> For your protection, we are registered under the Data Protection Act 1998 and have given all appropriate notifications to the Information Commissioner.<br><br><span style=\"font-weight: bold;\">WHAT WE COLLECT</span> I restored the backup, which worked fine. Removed the \\ as per the documentation and repeated the exercise. And it did not add the \s so looks like it works fine. The php Settings are as follows local Master magic_quotes_gpc On On magic_quotes_runtime Off Off magic_quotes_sybase Off Off If I edit a file and put in the words 6 o'clock I get this error message Parse error: syntax error, unexpected T_STRING in C:\Program Files\xampp\htdocs\rc2a\includes\languages\english\faq.php on line 15 I am looking at htmlentities but no luck so far. Any thoughts on how to resolve this? Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 7, 2008 Author Share Posted May 7, 2008 Are you using at least version 3 of TinyMCE? The version I have here is 3.0.3 but I think there are a few after that. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted May 7, 2008 Share Posted May 7, 2008 Using version 3.0.8 which was the latest as at 4 May. But I am not editing in html, pure text. G Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted May 8, 2008 Share Posted May 8, 2008 If I edit a file in the /includes/languages/english directory the backup is created and the edit works. Now tried a file in /includes/languages/english/modules/shipping directory and got Error Failed to create a backup of: /home/httpd/vhosts/xxxxxxxx.com/includes/languages/english/modules/shipping/flat.php So I create the 2 directories in backup, admin/backups_textmaster/includes/languages/english/modules/shipping/ and it works (I did set them to 777 as well) Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 8, 2008 Author Share Posted May 8, 2008 A new version has been uploaded. It contains the following fixes: - Changed code to allow editing of includes/boxes files - Changed code to properly save backup files - Changed code to add/remove escape character for apostrophes Only the admin/textmaster.php and admin/includes/function/textmaster.php files were changed. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
kbking Posted May 8, 2008 Share Posted May 8, 2008 Hi, I would like to say Thank You for this contribution, very, very useful indeed and I can imagine all the hard work behind it! I had an old page which I tried to edit, but I got a parse error, probably the contribution has been intentionally coded this way, I just want to mention it. This is a code snippet within this page which is shown prior to the edit with TextMaster: <TD CLASS="main" colspan="2"><img src="images/bullet_black.png" alt="" border="0"> <strong>BMG</strong><a href="java script:void(0)" onclick="toggleInfo(\'shippingaddressinfo\')"><img src="images/icon_tm.gif" border="0" alt="BMG Trademark" title=" BMG Trademark " width="13" height="16"></a></TD> and after the edit it throw this Parse error: syntax error, unexpected T_STRING. And the code snippet now has been changed by the TextMaster and looks like this: <td class=\"main\" colspan=\"2\"><img src=\"images/bullet_black.png\" border=\"0\" /> <strong>BMG</strong><a href=\"java script:void(0)\" onclick=\"toggleInfo(\\'shippingaddressinfo\\')\"><img src=\"images/icon_tm.gif\" border=\"0\" alt=\"BMG Trademark\" title=\" BMG Trademark \" width=\"13\" height=\"16\" /></a></td> I can understand that it may very well be impossible to cover everything, but I would appreciate an explanation about what has happened. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 8, 2008 Author Share Posted May 8, 2008 I can understand that it may very well be impossible to cover everything, but I would appreciate an explanation about what has happened.Did you try uncommenting the line in the code as mentioned in the documentation? Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
kbking Posted May 8, 2008 Share Posted May 8, 2008 Did you try uncommenting the line in the code as mentioned in the documentation? Jack No, sorry about that! But now I have, and that part is now working. Instead I noticed that a few images disappeared! The original code: <td rowspan="2">' . tep_image(DIR_WS_IMAGES . 'faq/' . 'faq_bmg_international.gif', 'BMG International.', '200', '234') .'</td> and after the edit: <td rowspan="2">\' . tep_image(DIR_WS_IMAGES . \'faq/\' . \'faq_bmg_international.gif\', \'BMG International.\', \'200\', \'234\') .\'</td> Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 9, 2008 Author Share Posted May 9, 2008 Please post the full contents of the english file that has that code so I can use it to test with. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
kbking Posted May 9, 2008 Share Posted May 9, 2008 Please post the full contents of the english file that has that code so I can use it to test with. Jack I've sent you a PM. Quote Link to comment Share on other sites More sharing options...
bkellum Posted May 10, 2008 Share Posted May 10, 2008 Well done once again Jack! You amaze me at how much you contribute to this project. :thumbsup: :thumbsup: :thumbsup: Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 10, 2008 Author Share Posted May 10, 2008 Well done once again Jack! You amaze me at how much you contribute to this project. :thumbsup: :thumbsup: :thumbsup:Thank you. I appreciate that. :) Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Guest Posted May 10, 2008 Share Posted May 10, 2008 Hello Jack Thankyou for such an amazingly simple to install yet powerful tool. We need to direct newbies to this contribution. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 10, 2008 Author Share Posted May 10, 2008 Hello Jack Thankyou for such an amazingly simple to install yet powerful tool. We need to direct newbies to this contribution. With so many posts asking how to change text, I thought it would useful. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons 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.