zenBB-iframe...

Locked
Results 1 to 5 of 5
This thread is locked. New replies are disabled.
13 Aug 2006, 20:09
#1
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
0

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.

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...

<?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?
13 Aug 2006, 20:11
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

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
13 Aug 2006, 20:45
#3
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
0

Re: zenBB-iframe...

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)?
13 Aug 2006, 21:07
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: zenBB-iframe...

Change:[PHP]<?php require(DIR_WS_MODULES . 'header.php'); ?>
[/PHP]to:[PHP]<?php
/**
* prepares and displays header output
*
*/
require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
[/PHP]
13 Aug 2006, 21:10
#5
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
0

Re: zenBB-iframe...

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