Results 1 to 10 of 137

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Define Pages Generator - Support

    Dont worry, I guess it's the same for most of us. I had a hard time trying to get ZC structure and the way it does things, but then now if you say the problem I can tell where should you look into.
    Quote Originally Posted by crabdance View Post
    Just so you won't think I'm a complete idiot, I'm a retired software developer. I developed in c++ and VB. However, I'm not that great at PHP. I'm learning a few things as time goes by though. Thanks for the info on the navbar image.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  2. #2
    Join Date
    Sep 2007
    Posts
    329
    Plugin Contributions
    0

    Default Re: Define Pages Generator - Support

    Thanks for getting back with me on this. What I needed was to know the exact filenames to make the changes to. You said make the changes in "the" php file but did not say which one. The generator creates multiple files and I just need to know which ones to change

    If you can just give me the filenames, I'm sure I can take it from there.

    Quote Originally Posted by yellow1912 View Post
    Dont worry, I guess it's the same for most of us. I had a hard time trying to get ZC structure and the way it does things, but then now if you say the problem I can tell where should you look into.

  3. #3
    Join Date
    Sep 2007
    Posts
    329
    Plugin Contributions
    0

    Default Re: Define Pages Generator - Support

    I just realized that maybe I'm not being clear about this. I know that the filenames will be different depending on what name you select when you first use the program. I guess what I really need is the path to the filename ie:

    includes/extra_datafiles/my_filename.php

    or something like that. Is that making more sense now? Hope so. As always thanks for any help.

  4. #4
    Join Date
    Nov 2007
    Posts
    195
    Plugin Contributions
    2

    Default Re: Define Pages Generator - Support

    The (basic) rule is that if your file name is "bAdLy-nameD page" then you capitalise it: "BADLY-NAMED PAGE" and replace non-alphanumeric characters with "_": "BADLY_NAMED_PAGE", then prefix it with the word "FILENAME": "FILENAME_BADLY_NAMED_PAGE"

    The next version which i am just putting the finishing tuoches to makes this clear.

    The basic trick when dealing with any php website is if you want to edit a bit of generated code:
    1) find the id of the closest tag with an id to the bit of code that you want to edit.
    2) Search through the entire source code for this string (most text editors and dreamweaver can do this) hopefully the place you find this string will be near to the code you want to modify.

    In your case try searching for "navMain" ;)

  5. #5
    Join Date
    Sep 2007
    Posts
    329
    Plugin Contributions
    0

    Default Re: Define Pages Generator - Support

    Quote Originally Posted by banswidthjunkie View Post
    The (basic) rule is that if your file name is "bAdLy-nameD page" then you capitalise it: "BADLY-NAMED PAGE" and replace non-alphanumeric characters with "_": "BADLY_NAMED_PAGE", then prefix it with the word "FILENAME": "FILENAME_BADLY_NAMED_PAGE"

    The next version which i am just putting the finishing tuoches to makes this clear.

    The basic trick when dealing with any php website is if you want to edit a bit of generated code:
    1) find the id of the closest tag with an id to the bit of code that you want to edit.
    2) Search through the entire source code for this string (most text editors and dreamweaver can do this) hopefully the place you find this string will be near to the code you want to modify.

    In your case try searching for "navMain" ;)
    I'm getting closer to understanding this I was able to find the filename with the navMain ID in it. There is some logic there to check and see if the person is logged in or not and what to put on the nav page for either condition.

    That leaves me with just one more file to find and edit. What is the path to the filename where I put this in?
    $link_to_my_page = zen_href_link( FILENAME_MY_PAGE, '' );

    If I know that, I think I can get everything to work. Thanks again for your patience with me on this.

  6. #6
    Join Date
    Nov 2007
    Posts
    195
    Plugin Contributions
    2

    Default Re: Define Pages Generator - Support

    basically that depends where you want the link to go exactly, if you want it in the bar at the top of the page, then you probably want to put it in the file you found, if not it might be another file.

    You sort of have to follow your nose with this stuff.

  7. #7
    Join Date
    Sep 2007
    Posts
    329
    Plugin Contributions
    0

    Default Re: Define Pages Generator - Support

    Quote Originally Posted by banswidthjunkie View Post
    basically that depends where you want the link to go exactly, if you want it in the bar at the top of the page, then you probably want to put it in the file you found, if not it might be another file.

    You sort of have to follow your nose with this stuff.
    Sorry bwj... I'm just not getting it lol... guess I will wait until you come out with the new version and see if I can understand that one better. I don't want to wear out my welcome where your help is concerned. Thanks a bunch for your help. I DO appreciate it. Maybe after the new version comes out I can bug you some more j/k... Thanks and have a great holiday season!!!

  8. #8
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Define Pages Generator - Support

    crabdance, a "page" of ZC contains many files in many folders:
    + The language file in language folder usually define header, title, etc.
    + The modules/pages/header_php.php contains all the functions or any code needed to be run before loading the template.
    + and the template file.

    Basically, when you want to create a page in zencart, which you can access using the link index.php?main_page=page_name, you have to create all those files. This mod simply helps you to create that set of file much faster, and that's it. Even with the new version of this mod or not, this is how things are done on ZC, not because the author of the mod wants to make it that way.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

 

 

Similar Threads

  1. Define Pages Generator on 1.39h ?
    By pizza392 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 28 Mar 2011, 06:47 AM
  2. Define Define Pages / Information pages Manager needed
    By thunderesl in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 Jun 2010, 02:42 PM
  3. ePier Bulk File Generator Support Thread
    By numinix in forum All Other Contributions/Addons
    Replies: 14
    Last Post: 28 Jul 2009, 08:16 PM
  4. How do I change navbar titles in Pages made using define pages generator?
    By lifebot in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 3 Mar 2008, 06:13 PM
  5. index_default & define pages(4+ define pages on frontpage?)
    By mrmarcus66 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 May 2006, 07:38 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