Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Apr 2007
    Posts
    13
    Plugin Contributions
    0

    help question About Us Page not working

    Hey guys,

    I've been trying to fix this stupid things for a few hours now.

    If you go to http://www.myflash.co.za/ you'll see under the "Information" drop-down box a link/button with "About Us" on it.

    It's not working.

    I've added the following to information.php

    if (DEFINE_ABOUT_US <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>';
    }

    and the following to english.php

    define('BOX_INFORMATION_ABOUT_US','About Us');

    I've also uploaded "define_about_us.php" to "html_includes". I can see that the file needs to be referenced somwhere. I just don't know where.

    The thing is, the "About Us" text in the Information drop-down was there before I added it to information.php and english.php. (Got it in the template files)

    And that's as far as I've gotten but just hacking around.
    Last edited by tertius; 4 Apr 2007 at 02:07 PM. Reason: Found "about us" in template. But not solved problem yet.

  2. #2
    Join Date
    Apr 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: About Us Page not working

    Anyone have any ideas?

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,541
    Plugin Contributions
    127

    Default Re: About Us Page not working

    Get rid of

    if (DEFINE_ABOUT_US <= 1) {

    Your information.php addition of the about us should not be conditional. BTW, I
    assume you mean

    includes/modules/sideboxes/custom/information.php

    Right?
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Apr 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: About Us Page not working

    I don't have a custom directory there, only a classic one.

    And it's this one "includes/modules/sideboxes/information.php"

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,541
    Plugin Contributions
    127

    Default Re: About Us Page not working

    "custom" is the directory you create. Follow the directions for adding a custom template.

    http://www.zen-cart.com/forum/faq.ph...late_customize

    If you don't do this, you'll lose your work in the next upgrade.

    Then follow the directions in about_us. When the readme says "MY_TEMPLATE,"
    think "custom."

    Scott
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Apr 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: About Us Page not working

    Why is it so complicated?

    I installed a normal template. And it doesn't work out of the box, I don't want to make my own.

    And the 'readme' in about_us? I don't understand what that means.

    But i'll try it out, and you let you know where I have trouble :)

    Thanks for the pointer.

  7. #7
    Join Date
    Apr 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: About Us Page not working

    Quickly, if I use "custom" will this override the template that I'm using at the moment? Or do I need to put my modifications in the directory that my current template is using? (And create the same name in other place, like with the sideboxes where there isn't a directory with that name?)

  8. #8
    Join Date
    Apr 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: About Us Page not working

    Trail and error is awesome, thanks, i've learned so much! :)

  9. #9
    Join Date
    Apr 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: About Us Page not working

    Ok I'm stuck, I've made a file in "/includes/extra_datafiles" and now it just shows up at the top of my page? (about_us_filenames.php) I don't really get how I need to get the information.php file to find this file.

    I had the define_about_us.php in "/includes/languages/english/html_includes" and moved this to "/includes/languages/english/html_includes/apple_zen" but this didn't solve my problem, it's still referencing "FILENAME_ABOUT_US" which I don't see where it can get a reference from to point to that page that i put there.


  10. #10
    Join Date
    Apr 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: About Us Page not working

    Ok I saw the following.

    Example: You create a custom page, about_us and need to call the filename.

    Rather than putting a new define in /includes/filenames.php, you should call the filename from the existing directory,

    /includes/extra_datafiles.

    Create a new filename, about_us_filenames.php and place this file in /includes/extra_datafiles.

    In this file, you would have the code:

    This file will be called automatically, as would any other file in this directory, thereby telling the system what your custom filenames are.

    Try and keep the same format for other new files you make...example, calling a file named blah would be named

    blah_filenames.php



    I can now see where the files are referenced, but putting a file in "extra_datafiles" doesn't get it referenced. There is a bit that worries me "In this file you would have the code:" and there's nothing there. That might help?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How Did you hear about us Add on not working
    By irishshopper in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 22 May 2011, 02:09 PM
  2. Hear about us addon not working for me
    By Halollet in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 1 Mar 2011, 04:52 AM
  3. How Did You Hear About Us - Not working!
    By cushietushies in forum All Other Contributions/Addons
    Replies: 10
    Last Post: 21 Jul 2008, 02:13 PM
  4. About Us Page and extras not working
    By Catrinau in forum Basic Configuration
    Replies: 9
    Last Post: 13 Jan 2008, 05:14 PM
  5. Tell a friend about us not working
    By douglerner in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Apr 2007, 07:29 AM

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