Thread: zenBB-iframe...

Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default zenBB-iframe...

    I've just installed verson 1.0 of this contribution and it works... well... almost.

    Due to the template/file structure changes in ZenCart 1.3 (i think) I am receiving the following error message when attempting to launch my forums.

    Code:
    Warning: main(includes/modules/header.php) [function.main]: failed to open stream: No such file or directory in D:\server\xampp\htdocs\mysite\includes\templates\custom\phpBBindex\tpl_main_page.php on line 51
    
    Fatal error: main() [function.require]: Failed opening required 'includes/modules/header.php' (include_path='.;D:\server\xampp\php\pear\') in D:\server\xampp\htdocs\mysite\includes\templates\custom\phpBBindex\tpl_main_page.php on line 51
    Now, I can comment out the follow line in one of the zenBB-iframe files...

    Code:
    <?php require(DIR_WS_MODULES . 'header.php'); ?>
    ...and my forums can now be accessed.

    However, my sites header is not displayed (when viewing the forums).

    Anyone know how to solve this?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: zenBB-iframe...

    in v1.3, the call to the modules/header.php was removed and replaced with direct coding in tpl_main_page.php and tpl_header.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: zenBB-iframe...

    Quote Originally Posted by DrByte
    in v1.3, the call to the modules/header.php was removed and replaced with direct coding in tpl_main_page.php and tpl_header.php
    Ok, that makes sense. How would I add the header back to this file then (so the header is displayed with my forums)?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: zenBB-iframe...

    Change:
    PHP Code:
    <?php require(DIR_WS_MODULES 'header.php'); ?>
    to:
    PHP Code:
    <?php
     
    /**
      * prepares and displays header output
      *
      */
      
    require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE$current_page_base,'common'). '/tpl_header.php');?>
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: zenBB-iframe...

    Again the doc has the cure! Thanks for the help.

 

 

Similar Threads

  1. Iframe
    By leest35 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 14 Jun 2010, 04:07 PM
  2. Autosize iframe
    By dealbyethan.com in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Jun 2006, 12:30 PM
  3. Zenbb-iframe
    By rjwboys in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 23 May 2006, 03:04 PM

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