Jump to content

Recommended Posts

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 by Jack_mcs

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Thanks, just what I was looking for.

 

Easy to install and it works a treat.


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 ======>>>>>.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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:

Share this post


Link to post
Share on other sites

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...


MS2

Share this post


Link to post
Share on other sites

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.


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 ======>>>>>.

Share this post


Link to post
Share on other sites
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 by scorp

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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?


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 ======>>>>>.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Using version 3.0.8 which was the latest as at 4 May.

 

But I am not editing in html, pure text.

 

G


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 ======>>>>>.

Share this post


Link to post
Share on other sites

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)


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 ======>>>>>.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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>

Share this post


Link to post
Share on other sites

Please post the full contents of the english file that has that code so I can use it to test with.

 

Jack

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Hello Jack

 

Thankyou for such an amazingly simple to install yet powerful tool. We need to direct newbies to this contribution.


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×