Page 5 of 5 FirstFirst ... 345
Results 41 to 43 of 43
  1. #41
    Join Date
    Nov 2010
    Posts
    21
    Plugin Contributions
    0

    Default Re: Mod gone bad - fonts somehow screwed up

    Quote Originally Posted by bunyip View Post
    Doug,
    Achieving what you want is really quite simple - it's obvious that the company you hired doesn't have a good understanding of Zen Cart's architecture.

    Five simple steps for what you want to do:
    1. For the content you want at the top of your main page, just use the existing define main page system, with no changes - just edit the define_main_page in admin as normal.
    2. For the content that you want to show at the bottom of your main page, create a new file includes/languages/english/html_includes/define_main_page_lower.php - you'll be able to edit the content of that from the Define Pages Editor in Admin.
    3. Create a new file includes/extra_datafiles/main_page_definitions.php with this content:
    Code:
    <?php 
    define('FILENAME_DEFINE_MAIN_PAGE_LOWER', 'define_main_page_lower');
    ?>
    4. Edit includes/modules/pages/index/header_php.php and add this line of code:
    Code:
    $define_main_page_lower = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_MAIN_PAGE_LOWER, 'false');
    immediately below this line:
    Code:
    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_MAIN_PAGE, 'false');
    5. Make an override copy of includes/templates/template_default/templates/tpl_index_default.php and add this line of code immediately before the closing /div tag at the end of the file:
    Code:
    <div id="indexDefaultLowerContent" class="content"><?php require($define_main_page_lower); ?></div>
    Can you please explain how the "Documents" function works in 139h? What doe it mean when you create a Category or a Product as a General Document?

    Thanks,

  2. #42
    Join Date
    Mar 2009
    Posts
    414
    Plugin Contributions
    0

    Default Re: Mod gone bad? - fonts somehow screwed up

    Information on putting a document general in a sidebox is here: http://https://www.zen-cart.com/tuto...php?article=34. Hope that information helps a bit.

  3. #43
    Join Date
    Jan 2007
    Posts
    66
    Plugin Contributions
    0

    Default Re: Mod gone bad - fonts somehow screwed up

    After completling these steps it did not work and now my main page is named Untitled Document. Any idea how i can get it back>

 

 
Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. So screwed up the Admin page somehow...
    By Serious in forum Basic Configuration
    Replies: 5
    Last Post: 18 Feb 2011, 05:53 AM
  2. SSU gone bad!
    By NBordeau in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 1 Jun 2010, 05:05 AM
  3. Replies: 8
    Last Post: 6 Dec 2008, 01:18 AM
  4. Screwed up my admin somehow??
    By Baloo in forum General Questions
    Replies: 14
    Last Post: 7 Jul 2008, 01:37 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