Results 1 to 4 of 4
  1. #1
    Join Date
    May 2016
    Location
    Ohio
    Posts
    410
    Plugin Contributions
    0

    Default Adding More Information Sidebox Link

    In information.php I added:

    if (DEFINE_ADVERTISING_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_ADVERTISING) . '">' . BOX_INFORMATION_ADVERTISING . '</a>';
    }

    In english.php I added:

    define('BOX_INFORMATION_ADVERTISING', 'Advertising Opportunities');

    And I created a file called define_advertising.php and uploaded it to:
    includes/languages/english/html_includes/define_advertising.php

    When I go into Define Pages Editor I see the file loaded in the editor, but when I hover over the link on the main page I see:
    https://www.dvdua.com/index.php?main...ne_advertising

    Which looks fine, but when I click it it takes me to a 404 page not found?

  2. #2
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Re: Adding More Information Sidebox Link

    Hey Jmberman,
    It looks like you want to add a new page to your information sidebox... these are the files you need.

    includes/languages/english/html_includes/YOUR_TEMPLATE/define_advertising_opportunities.php - this displays the info on your live site

    includes/languages/english/YOUR_TEMPLATE/advertising.php
    define('NAVBAR_TITLE', 'Advertising Opportunities');
    define('HEADING_TITLE', 'Advertising Opportunities');

    define('TEXT_INFORMATION', 'Advertising Opportunities information goes here.');

    includes/languages/YOUR_TEMPLATE/english.php
    define('BOX_INFORMATION_ADVERTISING_OPPORTUNITIES', 'Advertising Opportunities');

    includes/modules/pages/advertising_opportunities/header_php.php
    require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
    $breadcrumb->add(NAVBAR_TITLE);

    // include template specific file name defines
    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_ADVERTISING_OPPORTUNITIES, 'false');
    ?>

    If you wanted to add another sidebox entirely, there are other files to consider.
    Hope this points you in the right direction.

  3. #3
    Join Date
    May 2016
    Location
    Ohio
    Posts
    410
    Plugin Contributions
    0

    Default Re: Adding More Information Sidebox Link

    Thank you, I'll have to look this over carefully.

  4. #4
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Re: Adding More Information Sidebox Link

    Have you included your new files n the 'default' template also?
    I have found that if you don't add the files here they don't point to your template files.

 

 

Similar Threads

  1. About us link not showing in More Information sidebox
    By Pike Promo in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Dec 2011, 10:47 PM
  2. Page 2 link in More Information Sidebox
    By lisleuse in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Mar 2010, 02:04 PM
  3. More Information Sidebox Add A Link
    By snarfy in forum Basic Configuration
    Replies: 1
    Last Post: 14 Feb 2010, 02:50 AM
  4. Multi lingual ez-pages link to more information sidebox.
    By juza123 in forum Basic Configuration
    Replies: 0
    Last Post: 12 Mar 2007, 03:57 PM
  5. Adding a new page 5 in 'more information sidebox?
    By pilot in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 14 Aug 2006, 08:43 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR