Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Using an Include Statement inside an Array?


Goanna

Recommended Posts

Posted

I have my index.php file set up so that TEXT_MAIN is displayed inside of an Infobox. It looks like this.

 

  <?php
 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
                              'text' => tep_customer_greeting());
 $info_box_contents[] = array('align' => 'left',
                              'text' => TEXT_MAIN);

 new infoBox($info_box_contents);
?>

 

Now, I would like to use the define mainpage contributions, which tells you to use this line.

 

<?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE); ?>

 

How would I go about combining the two? I want to keep the infobox area, but I would also like to use the define mainpage contribution. Any help is greatly appreciated. Thank you.

Posted

Anyone know how to do this? Its been bugging me for quite some time now. I bet its pretty simple to do also.

Posted

Not what I am using. I am using the one that was included in the WYSIWYG editor package, not the standalone one. I guess ill download the regular one now though to see how the statement is formatted. Thanks.

Posted

Okay, well, I looked at a couple other versions of define mainpage, and they all use the same statement in index.php, and the statement does not make them show up in an infobox. If you dont mind, can you show me a copy of your index.php file if you have define mainpage installed, and it shows up in an infobox? Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...