Results 1 to 10 of 137

Hybrid View

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

  2. #2
    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!!!

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

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

    Default Re: Define Pages Generator - Support

    Quote Originally Posted by yellow1912 View Post
    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.
    Thanks for letting me know all of this, Yellow. I'm still learning how ZC is put together and what you have just said helps me a lot. I hope that I haven't sounded like I was getting down on the author of the mod. I certainly don't want to do that. I'm just trying to wrap my head around how all this works. BWJ has done a great job with the mod and I don't want to take anything away from him for sure.

    The only reason I was "giving up" was that I thought I was making an *ss out of myself for asking so many questions. I thought that maybe I was making too much of this and not getting it straight. I appreciate your help and BWJ's help. You have both helped me to understand some things that would have taken me a while to get.

    A big thank you to both of you... you both have been great trying to help me out! I will take the information that you gave me and see if I can try to get it working again.

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

    Default Re: Define Pages Generator - Support

    You are welcome. It took me a while to get a hold of ZC as well.

    BTW, I made a typo in the post above, should be:
    includes/modules/pages/page_name/header_php.php
    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

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

    Default Re: Define Pages Generator - Support

    @crabdance <- don't feel like you are being an *ss for asking questions, none of my friends can program and when I try to explain it to them they don't understand. I wouldn't even like to think about how long I have spent learning programing languages. I spent a solid year learning virtually every nuance of C++ on government money and since then I can pick up a new language pretty quickly (although I still get very frustrated with CSS). Programing is hard, my philosphy is that anyone who is willing to give it a go deserves a little patience.

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

    Default Re: Define Pages Generator - Support

    Quote Originally Posted by banswidthjunkie View Post
    @crabdance <- don't feel like you are being an *ss for asking questions, none of my friends can program and when I try to explain it to them they don't understand. I wouldn't even like to think about how long I have spent learning programing languages. I spent a solid year learning virtually every nuance of C++ on government money and since then I can pick up a new language pretty quickly (although I still get very frustrated with CSS). Programing is hard, my philosphy is that anyone who is willing to give it a go deserves a little patience.
    Hi Banswidthjunkie... thanks for making me feel better about the many questions. I understand about how much time you can put into learning programming languages. I have certainly spent a lot of time myself. I don't do it much anymore (by choice lol). Once I understand ZC (or at least enough of it), I hope that I can make contributions too.

    If you don't mind... let me try at asking my question again. I understand that I can put: echo '<a href="' . $link_to_my_page . '">Link Text</a>'; in the
    includes/templates/template_default/common/tpl_header.php file in the navMain ID section.

    Now I just need to know where I should put:
    $link_to_my_page = zen_href_link( FILENAME_MY_PAGE, '' );
    There must be a standard place where you put this. If you were going to put a link in the nav bar to your page, where would you put this code?

    Once again... thanks for the patience and kindness.

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

    Default Re: Define Pages Generator - Support

    Oh... I love CSS. Almost all of my site was done with the CSS stylesheet. I still don't understand it really well but I think that it is cool how it works. Here's wishing you better times with the CSS files!
    Last edited by crabdance; 21 Dec 2007 at 04:11 AM. Reason: typo:

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

    Default Re: Define Pages Generator - Support

    personally, I would put
    $link_to_my_page = zen_href_link( FILENAME_MY_PAGE, '' );
    on the line above the line where i wrote
    echo '<a href="' . $link_to_my_page . '">Link Text</a>';

    You should think of php as a printer. Unlike C++, php is a lazyboy easy language. If you step even an inch out of line with C++ it puts you in your place and lets you know who's boss. But php lets you do what you want.

    "echo" means print, everything other than echo is stuff you need to do to print.

    By the way don't bother watchong Flock with Richard Gere, it's rubbish.

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

    Default Re: Define Pages Generator - Support

    I suppose it it sort of like speaking japanese: if you speak it, it is the most natural thing in the world, if not it sounds like someone repeatedlay saying "desu" very quickly.

    There is not much either Yellow or I can say to solve this, it is just a matter of hitting your head against a brick wall until nihongo wo hanashimasu (you can speak japanese). I find drinking lots of Stella helps :)

 

 

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