Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Display content of sidebox to a mainpage?

Display content of sidebox to a mainpage?

Locked

Views: 1,663

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
8 Sep 2006, 4:12 PM
#1
inksale avatar

inksale

Zen Follower

Join Date:
Jan 2005
Location:
Gold Country CA
Posts:
265
Plugin Contributions:
0

Display content of sidebox to a mainpage?

How would this be done?

More specifically I am running a contest for my launch and want to drive people directly to a page that contains my Newsletter Subscription form. I would like to have it in a page contained within zen rather then only on the sidebox where its hard to find.

8 Sep 2006, 7:21 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,616
Plugin Contributions:
0

Re: Display content of sidebox to a mainpage?

<?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_THE_MODULE_YOU_WANT)); ?>

Should work :)

8 Sep 2006, 9:34 PM
#3
inksale avatar

inksale

Zen Follower

Join Date:
Jan 2005
Location:
Gold Country CA
Posts:
265
Plugin Contributions:
0

Re: Display content of sidebox to a mainpage?

I pasted this into an ez-page with no result

<?php include(DIR_WS_MODULES . zen_get_module_directory(subscribe)); ?>

subscribe.php is located in includes/modules/sideboxes/NightFall/subscribe.php (1.3.2)

Thanks for helping me Again, and again, and again.......
Your like the Energizer bunny :)

8 Sep 2006, 11:44 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,616
Plugin Contributions:
0

Re: Display content of sidebox to a mainpage?

Ah... forgot you can not use php in ez-pages. Are you using all of your define pages? also may need to use subscribe.php

9 Sep 2006, 12:02 AM
#5
inksale avatar

inksale

Zen Follower

Join Date:
Jan 2005
Location:
Gold Country CA
Posts:
265
Plugin Contributions:
0

Re: Display content of sidebox to a mainpage?

Here is the error(s) I get using define page

Warning: main(includes/modules/subscribephp.php): failed to open stream: No such file or directory in /usr/home/teamfast/public_html/includes/languages/english/html_includes/define_page_2.php on line 1

Warning: main(includes/modules/subscribephp.php): failed to open stream: No such file or directory in /usr/home/teamfast/public_html/includes/languages/english/html_includes/define_page_2.php on line 1

Warning: main(): Failed opening 'includes/modules/subscribephp.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/home/teamfast/public_html/includes/languages/english/html_includes/define_page_2.php on line 1

9 Sep 2006, 12:05 AM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,616
Plugin Contributions:
0

Re: Display content of sidebox to a mainpage?

subscribephp.php Is this the correct filename?

9 Sep 2006, 12:09 AM
#7
inksale avatar

inksale

Zen Follower

Join Date:
Jan 2005
Location:
Gold Country CA
Posts:
265
Plugin Contributions:
0

Re: Display content of sidebox to a mainpage?

Kim:

subscribephp.php Is this the correct filename?

Sorry I messed around and tryed to use subscribe.php rather then just subscribe and didnt change it back before posting the error.

The result was the same jusr a different name.

here is the proper error using subscribe.

Warning: main(includes/modules/subscribe.php): failed to open stream: No such file or directory in /usr/home/teamfast/public_html/includes/languages/english/html_includes/define_page_2.php on line 1

Warning: main(includes/modules/subscribe.php): failed to open stream: No such file or directory in /usr/home/teamfast/public_html/includes/languages/english/html_includes/define_page_2.php on line 1

Warning: main(): Failed opening 'includes/modules/subscribe.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/home/teamfast/public_html/includes/languages/english/html_includes/define_page_2.php on line 1

9 Sep 2006, 12:31 AM
#8
inksale avatar

inksale

Zen Follower

Join Date:
Jan 2005
Location:
Gold Country CA
Posts:
265
Plugin Contributions:
0

Re: Display content of sidebox to a mainpage?

Working it from the other side of the bridge, I got it.
Used Dr. Bytes Show sidebox contribution inside define pages and removed the first line of code.

require('includes/application_top.php');

Thank both of you for your great work on this Cart.
Your dedication shows itself 10 fold.