Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28
  1. #21
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    Default Re: Strip HTML and WORD formatting

    Quote Originally Posted by DrByte View Post
    Perhaps. I do see where you're coming from. And I don't disagree.

    Here's my personal perspective on it though:
    I never trust any Microsoft products to create reliable content for web pages. Been burned too many times. I just never use them, at least not for that.
    For better or worse, it means I have limited exposure to those problems, and have little insight on the technical mess behind it. I've never understood why people insist on using the wrong tool for the job.
    While sometimes the markup by CKEditor is less than perfect, it's a million times better than Word can do. It's designed for the web. Word was not.

    One of the things that influences what makes it into the Zen Cart core is "who's gonna maintain" the feature. So, given that I never use Word for web stuff, I'm certainly not the guy to become the subject-matter-expert who will maintain that feature of the software as things evolve. There's already enough things that need more maintenance that get missed either due to amount of time required ... or subject expertise required.
    That's why having people contribute plugins is helpful: those who are passionate about the feature and vested in keeping it current are the best contributors to such features.
    No I totally agree with you. I never use microsoft products to make web pages since I am a developer. I run my own business developing websites in Wordpress or Zen Cart, and that requires knowledge. I would never go anywhere near MS Word or any other MS Products, apart from Excel which has its uses as a 'go between', when developing websites. The majority of them are clunky and spit out totally unnecessary code. I am almost passionate about not going near them too. However, try telling that to a car salesman, or a carpet fitter, or a builder, or a cake maker. Do you see where I'm going?

    Many of them use MS Products and often make the mistake of copying and pasting content direct from Word, which in turn creates us developers a BIG problem when trying to format content in totally the same style throughout a whole website.

    I don't claim to be an expert either at MS Products, and wouldn't want to be. I despise MS Products if anything. I agree with you on CK Editor, all I was saying is that it would be nice to have a slightly better feature in Zen Cart. I could go on and start talking about how other CMS and Ecommerce Systems have developed, but I stick with Zen Cart for good reason. I believe it is probably the best ecommerce software out there. It just needs a few tweaks here and there to bring it bang up to date. I'm sure thats happening from what I have seen in other threads though, and I appreciate you guys are under pressure to give us on the outside the best you can do. So I'm not complaining, but I do worry sometimes that it gets a little left behind in some areas, unintentionally. That isn't a complaint though as I appreciate developing these things takes up time, and there's never enough of that!
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

  2. #22
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Strip HTML and WORD formatting

    Quote Originally Posted by Nick1973 View Post
    Do you see where I'm going?
    Yup. How'd the javascript work out?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #23
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    Default Re: Strip HTML and WORD formatting

    I'll come back to this thread Next week, as I ran out of time yesterday to get heavily into trying this out. Leave this with me for a few days.

    Oh and back to MS Products, I forgot to mention yesterday I'm on a Macbook Pro running Ei Capitan. The nearest I get to any MS Products now is Open Office, and for Database work I generally use Numbers if I need to work in a CSV. Up until last year I was on a slightly older Mac which did have MS Office installed, which I used, but rarely. It was mostly Excel if anything.
    Last edited by Nick1973; 16 Apr 2016 at 09:05 AM. Reason: Added stuff
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

  4. #24
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Strip HTML and WORD formatting

    Quote Originally Posted by Nick1973 View Post
    Not entirely sure what you mean, but I think probably your talking about a cleaner exported version of the data that could be imported back into the DB.
    Guess I didn't see this last part of the message upon initial read. Made it just to this sentence before being distracted. (*squirrel*!!!)

    What I meant was that EP4 which exports and imports data from and to the database (or vice versa) could be used to sanitize the description block data, if the javascript code provided either up front or later decided upon can be applied/rewritten for php use... The EP4 program has software hooks to inject code to perform desired action while processing the data from/to the database.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #25
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    Default Re: Strip HTML and WORD formatting

    Ok do you have any suggestions on how to go about this...as in coding?
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

  6. #26
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Strip HTML and WORD formatting

    Quote Originally Posted by Nick1973 View Post
    Ok do you have any suggestions on how to go about this...as in coding?
    So, I just took a look at what the code posted in the first post of this thread does (didn't follow the link yet), and it basically does a regex replace on the associated data. This is a relatively straight forward process in php. I'd have to go back into the EP4 code to identify the applicable locations for taking action during the export, but I would suggest this action during some form of the full data export. Some form meaning there is a single clickable option from the main EP4 window, as well as the ability to export by smaller groups through the dropdowns at the top of the screen.

    There is a branch off of EP4 that supports an additional product type called BookX that uses the notifiers in EP4 to accomplish the work designed by that programmer. There are some inefficiencies in that code, but the observer class (found in includes/classes/observers) shows examples of how to initiate the associated code at the related point in EP4. The code of EP4 has been structured to primarily have the necessary data in the global space, so variables needed to be modified can be brought into the applicable observer function, modified and upon exit will be equal to what was in the observer. Such variables are brought in by declaring global $var; where $var is the desired variable on which to operate.

    The latest EP4 code can be found at https://github.com/mc12345678/EasyPopulate-4.0
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #27
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    Default Re: Strip HTML and WORD formatting

    Quote Originally Posted by mc12345678 View Post
    So, I just took a look at what the code posted in the first post of this thread does (didn't follow the link yet), and it basically does a regex replace on the associated data.[/url]
    Yes that is correct, it does a regex replace. I'm not entirely sure what you are talking about with EP4. Do you think it can be done though?
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

  8. #28
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Strip HTML and WORD formatting

    Quote Originally Posted by Nick1973
    I'm not entirely sure what you are talking about with EP4. Do you think it can be done though?
    As EP4 uses a csv file (excel, or openoffice) and that app has search & replace functionality far above what phpmyadmin has it is definitely something to consider...

    I would install it either on your site or a test site locally or on a server.
    Follow the instructions and download a csv and open it in one of the recommended applications
    Try the search & replace being careful to to "find next" or "replace" as warranted
    It is not fully automatic but for a modest investment of time you can clean up your descriptions in your entire database

    Then in the future, only those additional entries will be suspect and need cleaning up

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Word HEADER_ bin the menu bar and after the word login
    By moro in forum Installing on a Windows Server
    Replies: 1
    Last Post: 18 Dec 2011, 03:14 PM
  2. html email formatting
    By ads112001 in forum General Questions
    Replies: 1
    Last Post: 23 Feb 2011, 07:15 PM
  3. SEO URLs - how to strip HTML tags from product names?
    By gregy1403 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 Sep 2010, 04:31 PM
  4. Product listing - Don't strip html!
    By Jazzperson in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 Nov 2007, 04:31 PM
  5. WYSIWYG downloads? Problem with ms word html and the HTMLarea
    By vandiermen in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 11 Sep 2007, 06:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg