Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add text in infobox


Guest

Recommended Posts

Posted

I've searched through many many topics, but couldn't find the solution to this, though I know for sure it's there. So, maybe someone might help. I need to add some text in a Infobox, here:

 

<?php

/*

$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- information //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_GALERIE);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_GALLERY) . '">' . BOX_INFORMATION_GALLERY . '</a><br> ');

 

 

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

 

just under BOX_INFORMATION_GALLERY. I know it's something like BOX_NEW_TEXT and define it in mylanguage,php, but I just can't get it right.

 

Thank you for you help!

Posted
just under BOX_INFORMATION_GALLERY. I know it's something like BOX_NEW_TEXT and define it in mylanguage,php, but I just can't get it right.

 

You want a whole new box? Or just write some information under BOX_INFORMATION_GALLERY?

 

If you want a whole new box, you need to edit this file to print out your BOX_NEW_TEXT, save it as a unique name in includes/boxes. (say, info.php)

 

The open includes/column_left.php (or _right, if it's the right column) and add the following under your gallery entry:

 

require(DIR_WS_BOXES . 'info.php');

Contributions

 

Discount Coupon Codes

Donations

Posted
I've searched through many many topics, but couldn't find the solution to this, though I know for sure it's there. So, maybe someone might help. I need to add some text in a Infobox, here:

 

<?php

/*

$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- information //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_GALERIE);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_GALLERY) . '">' . BOX_INFORMATION_GALLERY . '</a><br> ');

 

 

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

 

just under BOX_INFORMATION_GALLERY. I know it's something like BOX_NEW_TEXT and define it in mylanguage,php, but I just can't get it right.

 

Thank you for you help!

 

you can change it to some thing like this with text.

 

<?php

/*

$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- information //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_GALERIE);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center', 'text' =>'<a href=""><b><u><font color="#FF00FF">All About Wombats</FONT></U></b></a><BR><br>' .

'<a href="' . tep_href_link(FILENAME_GALLERY) . '">' . BOX_INFORMATION_GALLERY . '</a><br> ');

 

 

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

 

//////////////////////////////////////////////////////////////////

 

 

Or You can add something like this with a temp link

<?php

/*

$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- information //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center', 'text' => BOX_HEADING_GALERIE);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center', 'text' =>''<a href=" /wombats/"target=\"_blank\">All about Wombats</a><BR>' . '<a href="' . tep_href_link(FILENAME_GALLERY) . '">' . BOX_INFORMATION_GALLERY . '</a><br> ');

 

 

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Posted

Thank you very very much! I'll try it tonight and tell you if it's ok.

Archived

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

×
×
  • Create New...