Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

TextMaster


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

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
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.

Link to comment
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

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
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 ======>>>>>.

Link to comment
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

Link to comment
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:

Link to comment
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

Link to comment
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 ======>>>>>.

Link to comment
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
Link to comment
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

Link to comment
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

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
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 ======>>>>>.

Link to comment
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 ======>>>>>.

Link to comment
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 ======>>>>>.

Link to comment
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

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
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.

Link to comment
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

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
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>

Link to comment
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

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
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.

Link to comment
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

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...