Thread: Snaf

Page 16 of 30 FirstFirst ... 6141516171826 ... LastLast
Results 151 to 160 of 298
  1. #151
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Snaf

    Quote Originally Posted by niccol View Post
    Great:-) Well done, Melissa.

    This is where I am meant to say ' Oh, I can't look at other mods - not my problem' . But I have never been so good at that. I'll try and have a look at that mod when I get a moment. But yes it sounds like you just have to merge the product_listing.php file.

    Hmmm, just had a look. I am guessing that you might have fun with that! This is no criticism of Glenn who writes nice code but it is not necessarily easy to merge unless you know that file intimately. And that particular file is probably one of the more complex in Zen.

    Give it a go but I think that I might need to do it :-)

    In his version
    I would suggest that the 1st step for Melissa might be to compare the product_listing.php with the default version that comes with Zen Cart to clearly identify all the places that the gallery mod modifies the product_listing.php file.. Plus given that the gallery module was last updated in 2007, it wouldn't hurt to make sure that any changes from the latest version of the product_listing.php file with the gallery changes is being used.. Once she has an updated product_listing.php file, then she can merge that file with the one that comes with SNAF (using Winmerge or Beyond Compare)..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #152
    Join Date
    Jun 2012
    Posts
    26
    Plugin Contributions
    0

    Default Re: Snaf

    Quote Originally Posted by DivaVocals View Post
    I would suggest that the 1st step for Melissa might be to compare the product_listing.php with the default version that comes with Zen Cart to clearly identify all the places that the gallery mod modifies the product_listing.php file.. Plus given that the gallery module was last updated in 2007, it wouldn't hurt to make sure that any changes from the latest version of the product_listing.php file with the gallery changes is being used.. Once she has an updated product_listing.php file, then she can merge that file with the one that comes with SNAF (using Winmerge or Beyond Compare)..
    Thanks, Nick! You're right, it's definitely not your problem! I appreciate you taking the time to read my posts and answer anyway :-) I am bound and determined to get this right.

    I just tried going over the two files in Dreamweaver and merging them there by putting Glen's code into the SNAF file, because he marked up all the places he modified the code (I think) and it seems like it should be an easy merge, but I tried it and it isn't quite working-it messed up the SNAF code a bit.

    Diva: Thanks for the suggestion on the file comparison programs, I didn't know about those! I'm checking out Winmerge right now.

    Melissa

  3. #153
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Snaf

    Quote Originally Posted by grakowsky View Post
    Thanks, Nick! You're right, it's definitely not your problem! I appreciate you taking the time to read my posts and answer anyway :-) I am bound and determined to get this right.

    I just tried going over the two files in Dreamweaver and merging them there by putting Glen's code into the SNAF file, because he marked up all the places he modified the code (I think) and it seems like it should be an easy merge, but I tried it and it isn't quite working-it messed up the SNAF code a bit.

    Diva: Thanks for the suggestion on the file comparison programs, I didn't know about those! I'm checking out Winmerge right now.

    Melissa
    DROP Dreamweaver as an FTP or file merging tool.. I use Dreamweaver occasionally for HTML markup ONLY.. Their file merging tools are WOEFULLY lacking.. Personally i prefer the commercial Beyond Compare over the free Winmerge tool. It's a pretty inexpensive program and well worth the cost.. I may even upgrade to the Pro version so I can get three way merging capabilities..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  4. #154
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Snaf

    @Melissa
    Yes, that is the correct way of doing it. Glenn's changes are relatively minor and SNAF makes some more major changes so you want to merge his changes into SNAF. What you can do in this situation, although not always, is do one little block of modifications at a time. And check each time that the file is still running all right.

    So, for instance, copy this lot into the file and check it works.

    Code:
    //gallery category test
    $gallery_skips = 0; //flag for reducing # of columns
    $not_gallery = 1;
    if (ereg("(^23$|^23_)",$cPath)) { //this is a gallery category (replace 23 with your cat id)
      $not_gallery = 0;
    } // /gallery category test
    So, you can kind of go step-by-step.

    @Diva
    You poor benighted windows users! You don't have Meld, do you? http://meldmerge.org/ Free, like all linux stuff, and very very powerful :-) Three way comparisons. Directory comparisons. Version control. Mmmmmmm :-)

  5. #155
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Snaf

    Quote Originally Posted by niccol View Post
    @Diva
    You poor benighted windows users! You don't have Meld, do you? http://meldmerge.org/ Free, like all linux stuff, and very very powerful :-) Three way comparisons. Directory comparisons. Version control. Mmmmmmm :-)
    **LOL** the late great Conor Kerr recommended Beyond Compare and I haven't looked back since.. I found most free tools (esp Winmerge) useless.. but you being you means I will have to checkout Meld..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #156
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Snaf

    I think Meld can run on windows but it is probably more grief than it is worth :-) Beyond Compare is good too!

  7. #157
    Join Date
    Jun 2012
    Posts
    26
    Plugin Contributions
    0

    Default Re: Snaf

    Quote Originally Posted by niccol View Post
    @Melissa
    Yes, that is the correct way of doing it. Glenn's changes are relatively minor and SNAF makes some more major changes so you want to merge his changes into SNAF. What you can do in this situation, although not always, is do one little block of modifications at a time. And check each time that the file is still running all right.

    So, for instance, copy this lot into the file and check it works.

    Code:
    //gallery category test
    $gallery_skips = 0; //flag for reducing # of columns
    $not_gallery = 1;
    if (ereg("(^23$|^23_)",$cPath)) { //this is a gallery category (replace 23 with your cat id)
      $not_gallery = 0;
    } // /gallery category test
    So, you can kind of go step-by-step.

    @Diva
    You poor benighted windows users! You don't have Meld, do you? http://meldmerge.org/ Free, like all linux stuff, and very very powerful :-) Three way comparisons. Directory comparisons. Version control. Mmmmmmm :-)
    Thanks, Nick. That's a great idea to do it step-by-step. I tried winmerge and blindly merged all the changes to the SNAF file to see if it would work (with my fingers crossed) and it did not, so next I'll try going through it systematically.

    Diva-I don't use Dreamweaver to merge the files or to do FTP, just to look at the files because it shows the different call-outs in different colors, so it's a lot easier for me to see the syntax than just reading black text in notepad. I have heard how bad Dreamweaver is for this stuff!

    Nick I use Windows just because I've been using it since windows 3.1!!! I tried Ubuntu Linux for a while but felt the learning curve as far as installing and managing files was too steep for me to spend all that time learning it!

    Melissa

  8. #158
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Snaf

    Quote Originally Posted by grakowsky View Post
    I tried winmerge and blindly merged all the changes to the SNAF file to see if it would work (with my fingers crossed) and it did not, so next I'll try going through it systematically.
    and this is probably why you had issues.. you really need to do this one step at a time one block at a time.. Take your time and you will get it all merged together..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  9. #159
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Snaf

    Well, give it a go a step at a time. And if you still have issues then let me know.

    Off Topic:

    Not a fan of dreamweaver for coding work. It tends to add all kinds of extra stuff into the code.

    Yes, syntax highlighting is very useful. Just recently for small stuff that has no security issues I have been experimenting with various online editors/IDEs. ShiftEdit is one that seems quite practical and might be suitable for you, Melissa. It has syntax highlighting but it also has syntax checking which might be even more use to you :-) It is to me!

    Or you can have a look at this: http://net.tutsplus.com/articles/web...s-for-windows/.

  10. #160
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Snaf

    Quote Originally Posted by niccol View Post
    Not a fan of dreamweaver for coding work. It tends to add all kinds of extra stuff into the code.
    Actually the latest and greatest versions don't do this anymore. When I occasionally need WYSIWYG capabilities (for readme files and EZ/Define pages), Dreamweaver is my go to tool.. Otherwise I like Developers Notepad or Notepad++
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 
Page 16 of 30 FirstFirst ... 6141516171826 ... LastLast

Similar Threads

  1. SNAF and Set number dropdown not working
    By DeeL in forum General Questions
    Replies: 0
    Last Post: 2 Apr 2013, 02:03 AM
  2. styling the row layout while using snaf
    By bn17311 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Dec 2012, 07:44 PM
  3. SNAF not working with aBagon red template??
    By Johnnycopilot in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 3 Apr 2012, 08:15 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