Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

info_box_content / info_box size?


Guest

Recommended Posts

Posted

How are the boxes / info_box_content size dictated by??

 

i have been searching all over, and i just cant see where this is done - i ask, because i am writing a subdirectory (see question about arrays) and atm, i can link to my subdirectory box and it open, but it spans the fill center console.

I want to limit its size horizontally to 150px for example.

 

Do i place the info_box_content/php/array tag within a table and give it, its dimensional size? is this a good way of writing code??

Posted
How are the boxes / info_box_content size dictated by??

 

i have been searching all over, and i just cant see where this is done - i ask, because i am writing a subdirectory (see question about arrays) and atm, i can link to my subdirectory box and it open, but it spans the fill center console.

I want to limit its size horizontally to 150px for example.

 

Do i place the info_box_content/php/array tag within a table and give it, its dimensional size? is this a good way of writing code??

 

catalog/includes/application_top.php

find

// customization for the design layout
 define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

 

change 125 to 150

Posted
catalog/includes/application_top.php

find

// customization for the design layout
 define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

 

change 125 to 150

oh no steve-o - your very right thank you!

 

good evening sir,

 

http://www.ilike-centre.com/ernst00.php u'll see that this has happened, and what i want to do. so your very right and i am about to implement that on making them smallso thank you, but it doesnt apply to center console - i think.

The iframe beneath it, is to bit to sit along side, but internal subdirectory box shouldnt run arcoss no?

Posted

if using an info box outside a column its something like:

 

$info_box_contents[$row][$col] = array('align' => 'center',
									   'params' => ' width="150px" valign="top"',
									   'text' => $content );

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted
if using an info box outside a column its something like:

 

$info_box_contents[$row][$col] = array('align' => 'center',
									   'params' => ' width="150px" valign="top"',
									   'text' => $content );

you've nailed it sam.

 

ok, sam i have punched in all that information and it hasnt worked.

 

this is the bastardised php code i started to use. - what i dont understand is how all of a sudden the ethicalstore advert has popped in this main frame. - i will say i did bastardise the paypal box ;-). just not sure whats calling it up. and why i cant removed all the FILENAME_ stuff without the php spitting back and error.

 

any plain and simple advise where i am going wrong and whats happening so i can work it out will be great Sam.

 

here is my rubbish code.

 

and thank again for that jem!

 

<?php
$info_box_contents[$row][$col] = array('align' => 'left',
									   'params' => ' width="150px" valign="top"',
									   'text' => $content );
 $info_box_contents = array();
 $info_box_contents[] = array('text' => 'Products' );

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('text' =>
 '<a href="http://www.ilike-centre.com/amazon04.php">Books</a><br>' .
 '<a href="http://www.ilike-centre.com/amazon01.php">Dvds</a><br>' .
 '<a href="http://www.ilike-centre.com/amazon02.php">Electronics</a><br>' .
  '<a href="http://www.ilike-centre.com/expedia00.php">Holidays</a><br>' .
/* '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW) . '">' . BOX_INFORMATION_PRODUCTS_NEW . '</a><br>' .*/
 '<a href="http://www.ilike-centre.com/ernst00.php">Necklaces</a><br>' .
/* '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW) . '">' . BOX_INFORMATION_PRODUCTS_NEW . '</a><br>' .*/
'<a href="http://www.ilike-centre.com/amazon03.php">Watches</a><br>' .

'<a href="' . tep_href_link(FILENAME_SPECIALS) . '">' . BOX_INFORMATION_SPECIALS . '</a><br>' . 
'<a href="' . tep_href_link(FILENAME_ALLPRODS, '', 'NONSSL') . '">' . BOX_INFORMATION_ALLPRODS . '</a><br>' . 
'<a href="' . tep_href_link(FILENAME_LINKS, '', 'NONSSL') . '">' . BOX_INFORMATION_LINKS . '</a><br>' . 
'<a href="' . tep_href_link(FILENAME_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_HOW . '</a>'); 


new infoBox($info_box_contents);
?>

 

oooo one more question, what the difficulty or whats intailed in write a new_box_code - to start afresh.? BTW my website is www.ilike-centre.com

Posted

try:

 

<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => 'Products' );

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
									   'params' => ' width="150px" valign="top"','text' =>
 '<a href="http://www.ilike-centre.com/amazon04.php">Books</a><br>' .
 '<a href="http://www.ilike-centre.com/amazon01.php">Dvds</a><br>' .
 '<a href="http://www.ilike-centre.com/amazon02.php">Electronics</a><br>' .
  '<a href="http://www.ilike-centre.com/expedia00.php">Holidays</a><br>' .
/* '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW) . '">' . BOX_INFORMATION_PRODUCTS_NEW . '</a><br>' .*/
 '<a href="http://www.ilike-centre.com/ernst00.php">Necklaces</a><br>' .
/* '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW) . '">' . BOX_INFORMATION_PRODUCTS_NEW . '</a><br>' .*/
'<a href="http://www.ilike-centre.com/amazon03.php">Watches</a><br>' .

'<a href="' . tep_href_link(FILENAME_SPECIALS) . '">' . BOX_INFORMATION_SPECIALS . '</a><br>' . 
'<a href="' . tep_href_link(FILENAME_ALLPRODS, '', 'NONSSL') . '">' . BOX_INFORMATION_ALLPRODS . '</a><br>' . 
'<a href="' . tep_href_link(FILENAME_LINKS, '', 'NONSSL') . '">' . BOX_INFORMATION_LINKS . '</a><br>' . 
'<a href="' . tep_href_link(FILENAME_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_HOW . '</a>'); 


new infoBox($info_box_contents);
?>

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Archived

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

×
×
  • Create New...