Results 1 to 2 of 2
  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

    I then added this to the filenames.php

    define('FILENAME_DEFINE_ADVERTISING', 'define_advertising');
    define('FILENAME_ADVERTISING', 'advertising');

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

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,691
    Plugin Contributions
    9

    Default Re: Adding More Information Sidebox Link

    you have a number of things going on here. let's start with the first, and that is to get the page working!

    i think you are missing something like:

    includes/modules/pages/advertising/header_php.php

    create that directory and that file; within the file you can add code something like this:

    Code:
    <?php
      
    require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
    // include template specific file name defines
    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_ADVERTISING, 'false');
    $breadcrumb->add(BOX_INFORMATION_ADVERTISING);
    after that is done, you can check if this page works (or at least not giving you a 404):

    https://www.dvdua.com/index.php?main_page=advertising

    the next problem i see is your code here:

    Code:
    if (DEFINE_ADVERTISING_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_ADVERTISING) . '">' . BOX_INFORMATION_ADVERTISING . '</a>';
    }
    you are saying that when you hover over it, you get the following link:

    https://www.dvdua.com/index.php?main...ne_advertising

    i do not understand that. your new code is creating a link to FILENAME_ADVERTISING and yet the link is going to define_advertising. so you have missed something. if you create a link using the zen_href_link function, it should create that link to the filename you provide it. clearly not the case here.

    did you define FILENAME_ADVERTISING somewhere else? as the created link seems to be pointing to FILENAME_DEFINE_ADVERTISING - which is different.

    i would first get the page working to your satisfaction, and then we can work on the creation of the link.

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 

Similar Threads

  1. Adding More Information Sidebox Link
    By jmberman in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Feb 2018, 01:04 AM
  2. 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
  3. 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
  4. More Information Sidebox Add A Link
    By snarfy in forum Basic Configuration
    Replies: 1
    Last Post: 14 Feb 2010, 02:50 AM
  5. 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

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