osCmax v2.5 User Manual
Results 1 to 2 of 2

HELP!! adding boxes

This is a discussion on HELP!! adding boxes within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; I tried following the tutorial.. but of course since I suck at PHP.. it didnt work.. heres all the info ...

      
  1. #1
    Lurker
    Join Date
    Jan 2005
    Posts
    4
    Rep Power
    0


    Default HELP!! adding boxes

    I tried following the tutorial.. but of course since I suck at PHP.. it didnt work.. heres all the info I got

    IM trying to make a new box named Support Forums(forums.php), which constains a page titled Support Forums(forumspage.php)

    Heres my various code..
    and the error im getting is this

    Parse error: parse error, unexpected T_IF in /home/gogenxco/public_html/includes/boxes/forums.php on line 24

    COLUMN_LEFT.PHP CODE
    }

    require(DIR_WS_BOXES . 'whats_new.php');
    require(DIR_WS_BOXES . 'search.php');
    require(DIR_WS_BOXES . 'affiliate.php');
    require(DIR_WS_BOXES . 'information.php');
    require(DIR_WS_BOXES . 'forums.php');


    FORUMS.PHP CODE (includes/boxes)

    $boxHeading = BOX_HEADING_FORUMS;
    $corner_left = 'square';
    $corner_right = 'square';
    $box_base_name = 'forums'; // for easy unique box template setup (added BTSv1.2)

    $box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2)

    $boxContent = ('<a href="' . tep_href_link (FILENAME_FORUMS, '', 'NONSSL') . '">' . BOX_FORUMSPAGE . '</a><br>' .


    // bof BTSv1.2
    if(file_exists(DIR_WS_BOX_TEMPLATES . $box_base_name . '.tpl.php')) {
    // if exists, load unique box template for this box from templates/boxes/
    require(DIR_WS_BOX_TEMPLATES . $box_base_name . '.tpl.php');
    }
    else {
    // load default box template: templates/boxes/box.tpl.php
    require(DIR_WS_BOX_TEMPLATES . TEMPLATENAME_BOX);
    }
    // eof BTSv1.2
    ?>

    FILENAMES.PHP CODE

    define('FILENAME_FORUMS', 'forums.php');
    define('FILENAME_FORUMSPAGE', 'forumspage.php');

    FORUMSPAGE.PHP CODE( in /catalog/)

    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FORUMSPAGE);

    $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FORUMSPAGE));

    $content = CONTENT_SHIPPING;
    $content_template = TEMPLATENAME_STATIC;

    require(DIR_WS_TEMPLATES . TEMPLATENAME_MAIN_PAGE);

    require(DIR_WS_INCLUDES . 'application_bottom.php');
    ?>

    ENGLISH.PHP CODE(includes/languages/)

    // information box text in includes/boxes/information.php
    define('BOX_HEADING_INFORMATION', 'Information');
    define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');
    define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');
    define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');
    define('BOX_INFORMATION_CONTACT', 'Contact Us');

    // forums box text in includes/boxes/forums.php
    define('BOX_HEADING_FORUMS', 'Support Forums');
    define('BOX_FORUMSPAGE', 'Support Forums');

    FORUMSPAGE.PHP(inclues/languages/english)

    */

    define('NAVBAR_TITLE', 'Support Forums);
    define('HEADING_TITLE', 'Online Support Forums');

    define('TEXT_INFORMATION', '<a href="http://www.gogenx.com/forums>Visit Our Support Forums</a>');
    ?>




    THIS IS A HUGE HELP IF ANYONE CAN HELP ME WITH MY PROBLEM

    sorry for the massive post

    Thanks
    Michael

  2. #2
    Member
    Join Date
    Jan 2004
    Location
    Netherlands
    Posts
    71
    Rep Power
    0


    Default

    FORUMS.PHP CODE (includes/boxes)
    Code:
    $boxHeading = BOX_HEADING_FORUMS;
    $corner_left = 'square';
    $corner_right = 'square';
    $box_base_name = 'forums'; // for easy unique box template setup (added BTSv1.2)
    
    $box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2)
    
    $boxContent = ('<a href="' . tep_href_link (FILENAME_FORUMS, '', 'NONSSL') . '">' . BOX_FORUMSPAGE . '</a><br>' .
    the last line here seems to be wrong
    I think you ment something like
    Code:
    $boxContent = '<a href="' . tep_href_link (FILENAME_FORUMS, '', 'NONSSL') . '">' . BOX_FORUMSPAGE . '</a><br>';
    removing the first "(" and replacing the last " ." by ";"

Similar Threads

  1. Adding Boxes
    By mrocket in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 04-27-2006, 11:13 AM
  2. Were is the tutorial on adding new boxes For version 2?
    By badadz in forum osCMax v2 Features Discussion
    Replies: 0
    Last Post: 10-18-2005, 12:09 AM
  3. Adding Boxes to pages OUTSIDE oscmax
    By rjavery in forum osCmax v2 Customization/Mods
    Replies: 4
    Last Post: 08-02-2005, 07:33 AM
  4. Adding outside links to info boxes
    By chardae in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 11-15-2002, 09:46 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
  •