chrometweaks.org

How can I install iPage and Wordpress? is it necessary to have a paid host?

Click Here To View All Answers...


My question is How can I install iPage and Wordpress? is it necessary to have a paid host? Hoping for any answer. Second question of mine... Im having a job finding how to change the width of the product listing page, as you can see it's far too narrow..

Any ideas please?.

Example Here..

Comments (50)

That's a good question. I'm not sure what is the right answer to your question. I'll do some poking around and get back to you if I bump into an answer. You should email the people at iPage as they probably could answer your iPage question..

Comment #1

Thanks Terry;.

Is the code on the product_listing.php page as I cannot see it for looking however I can see it when I view the source code of the page..

Comment #2

Can you post your product_listing.php file here so we can see it?.

Terry..

Comment #3

<?php.

/*.

$Id: product_listing.php,v 1.41 2003/02/12 23:55:58 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

?>.

<link href="stylesheet.css" rel="stylesheet" type="text/css">.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

<?php.

$listing_numrows_sql = $listing_sql;.

$listing_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $listing_sql, $listing_numrows);.

// fix counted products.

$listing_numrows = tep_db_query($listing_numrows_sql);.

$listing_numrows = tep_db_num_rows($listing_numrows);.

If ( ($listing_numrows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {.

?>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="smallText">&nbsp;<?php echo $listing_split->display_count($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?>&nbsp;</td>.

<td align="right" class="smallText">&nbsp;<?php echo TEXT_RESULT_PAGE; ?> <?php echo $listing_split->display_links($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?>&nbsp;</td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator(); ?></td>.

</tr>.

<?php.

}.

?>.

<tr>.

<td>.

<?php.

$list_box_contents = array();.

$list_box_contents[] = array('params' => 'class="productListing-heading"');.

$cur_row = sizeof($list_box_contents) - 1;.

For ($col=0, $n=sizeof($column_list); $col<$n; $col++) {.

Switch ($column_list[$col]) {.

Case 'PRODUCT_LIST_MODEL':.

$lc_text = TABLE_HEADING_MODEL;.

$lc_align = '';.

Break;.

Case 'PRODUCT_LIST_NAME':.

$lc_text = TABLE_HEADING_PRODUCTS;.

$lc_align = '';.

Break;.

Case 'PRODUCT_LIST_MANUFACTURER':.

$lc_text = TABLE_HEADING_MANUFACTURER;.

$lc_align = '';.

Break;.

Case 'PRODUCT_LIST_PRICE':.

$lc_text = TABLE_HEADING_PRICE;.

$lc_align = 'right';.

Break;.

Case 'PRODUCT_LIST_QUANTITY':.

$lc_text = TABLE_HEADING_QUANTITY;.

$lc_align = 'right';.

Break;.

Case 'PRODUCT_LIST_WEIGHT':.

$lc_text = TABLE_HEADING_WEIGHT;.

$lc_align = 'right';.

Break;.

Case 'PRODUCT_LIST_IMAGE':.

$lc_text = TABLE_HEADING_IMAGE;.

$lc_align = 'center';.

Break;.

Case 'PRODUCT_LIST_BUY_NOW':.

$lc_text = TABLE_HEADING_BUY_NOW;.

$lc_align = 'center';.

Break;.

}.

If ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_IMAGE_LISTING') ) {.

$lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text);.

}.

$list_box_contents[$cur_row][] = array('align' => $lc_align,.

'params' => 'class="productListing-heading"',.

'text' => '&nbsp;'$lc_text'&nbsp;');.

}.

If ($listing_numrows > 0) {.

$number_of_products = '0';.

$listing_query = tep_db_query($listing_sql);.

While ($listing = tep_db_fetch_array($listing_query)) {.

$number_of_products++;.

If (($number_of_products/2) == floor($number_of_products/2)) {.

$list_box_contents[] = array('params' => 'class="productListing-even"');.

} else {.

$list_box_contents[] = array('params' => 'class="productListing-odd"');.

}.

$cur_row = sizeof($list_box_contents) - 1;.

For ($col=0, $n=sizeof($column_list); $col<$n; $col++) {.

$lc_align = '';.

Switch ($column_list[$col]) {.

Case 'PRODUCT_LIST_MODEL':.

$lc_align = '';.

$lc_text = '&nbsp;'$listing['products_model']'&nbsp;';.

Break;.

Case 'PRODUCT_LIST_NAME':.

$lc_align = '';.

If (isset($HTTP_GET_VARS['manufacturers_id'])) {.

$lc_text = '<a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id='$HTTP_GET_VARS['manufacturers_id']'&products_id='$listing['products_id'])'">'$listing['products_name']'</a>';.

} else {.

$lc_text = '&nbsp;<a href="'tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath='$cPath'&' : '')'products_id='$listing['products_id'])'">'$listing['products_name']'</a>&nbsp;';.

}.

Break;.

Case 'PRODUCT_LIST_MANUFACTURER':.

$lc_align = '';.

$lc_text = '&nbsp;<a href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id='$listing['manufacturers_id'])'">'$listing['manufacturers_name']'</a>&nbsp;';.

Break;.

Case 'PRODUCT_LIST_PRICE':.

$lc_align = 'right';.

If (tep_not_null($listing['specials_new_products_price'])) {.

$lc_text = '&nbsp;<s>'$currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id']))'</s>&nbsp;&nbsp;<span class="productSpecialPrice">'$currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id']))'</span>&nbsp;';.

} else {.

$lc_text = '&nbsp;'$currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id']))'&nbsp;';.

}.

Break;.

Case 'PRODUCT_LIST_QUANTITY':.

$lc_align = 'right';.

$lc_text = '&nbsp;'$listing['products_quantity']'&nbsp;';.

Break;.

Case 'PRODUCT_LIST_WEIGHT':.

$lc_align = 'right';.

$lc_text = '&nbsp;'$listing['products_weight']'&nbsp;';.

Break;.

Case 'PRODUCT_LIST_IMAGE':.

$lc_align = 'center';.

If (isset($HTTP_GET_VARS['manufacturers_id'])) {.

$lc_text = '<a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id='$HTTP_GET_VARS['manufacturers_id']'&products_id='$listing['products_id'])'">'tep_image(DIR_WS_IMAGES$listing['products_image'], $listing['products_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT)'</a>';.

} else {.

$lc_text = '&nbsp;<a href="'tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath='$cPath'&' : '')'products_id='$listing['products_id'])'">'tep_image(DIR_WS_IMAGES$listing['products_image'], $listing['products_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT)'</a>&nbsp;';.

}.

Break;.

Case 'PRODUCT_LIST_BUY_NOW':.

$lc_align = 'center';.

$lc_text = '<a href="'tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action'))'action=buy_now&products_id='$listing['products_id'])'">'tep_image_button('button_buy_now.gif', TEXT_BUY$listing['products_name']TEXT_NOW)'</a>&nbsp;';.

Break;.

}.

$list_box_contents[$cur_row][] = array('align' => $lc_align,.

'params' => 'class="productListing-data"',.

'text' => $lc_text);.

}.

}.

New tableBox($list_box_contents, true);.

Echo ' </td>'"\n" ..

' </tr>'"\n";.

} else {.

?>.

<tr class="productListing-odd">.

<td class="smallText">&nbsp;<?php echo (isset($HTTP_GET_VARS['manufacturers_id']) ? TEXT_NO_PRODUCTS2 : TEXT_NO_PRODUCTS); ?>&nbsp;</td>.

</tr>.

<?php.

}.

?>.

<tr>.

<td><?php echo tep_draw_separator(); ?></td>.

</tr>.

<?php.

If ( ($listing_numrows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {.

?>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="smallText">&nbsp;<?php echo $listing_split->display_count($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?>&nbsp;</td>.

<td align="right" class="smallText">&nbsp;<?php echo TEXT_RESULT_PAGE; ?> <?php echo $listing_split->display_links($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?>&nbsp;</td>.

</tr>.

</table></td>.

</tr>.

<?php.

}.

?>.

</table>.

<p>&nbsp;</p>.

Cheers Terry!..

Comment #4

Okay, definitely not there..

Try searching your /catalog/includes/classes/boxes.php file for "165" and see if the width has been defined there. If it has, can you post the code from that page here? (Before telling you to change it, it would be worth seeing if it's also assigned to other classes so we don't muck up the rest of your site...).

Terry..

Comment #5

By the looks of it, it isnt there either:(.

<?php.

/*.

$Id: boxes.php,v 1.31 2003/02/11 00:04:48 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

Class tableBox {.

Var $table_border = '0';.

Var $table_width = '165';.

Var $table_cellspacing = '0';.

Var $table_cellpadding = '0';.

Var $table_parameters = '';.

Var $table_row_parameters = '';.

Var $table_data_parameters = '';.

// class constructor.

Function tableBox($contents, $direct_output = false) {.

$tableBox_string = '<table border="'$this->table_border'" width="'$this->table_width'" cellspacing="'$this->table_cellspacing'" cellpadding="'$this->table_cellpadding'"';.

If (tep_not_null($this->table_parameters)) $tableBox_string .= ' '$this->table_parameters;.

$tableBox_string .= '>'"\n";.

For ($i=0, $n=sizeof($contents); $i<$n; $i++) {.

If (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= $contents[$i]['form']"\n";.

$tableBox_string .= ' <tr';.

If (tep_not_null($this->table_row_parameters)) $tableBox_string .= ' '$this->table_row_parameters;.

If (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) $tableBox_string .= ' '$contents[$i]['params'];.

$tableBox_string .= '>'"\n";.

If (is_array($contents[$i][0])) {.

For ($x=0, $n2=sizeof($contents[$i]); $x<$n2; $x++) {.

If (isset($contents[$i][$x]['text']) && tep_not_null($contents[$i][$x]['text'])) {.

$tableBox_string .= ' <td';.

If (isset($contents[$i][$x]['align']) && tep_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="'$contents[$i][$x]['align']'"';.

If (isset($contents[$i][$x]['params']) && tep_not_null($contents[$i][$x]['params'])) {.

$tableBox_string .= ' '$contents[$i][$x]['params'];.

} elseif (tep_not_null($this->table_data_parameters)) {.

$tableBox_string .= ' '$this->table_data_parameters;.

}.

$tableBox_string .= '>';.

If (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= $contents[$i][$x]['form'];.

$tableBox_string .= $contents[$i][$x]['text'];.

If (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= '</form>';.

$tableBox_string .= ' </td>'"\n";.

}.

}.

} else {.

$tableBox_string .= ' <td';.

If (isset($contents[$i]['align']) && tep_not_null($contents[$i]['align'])) $tableBox_string .= ' align="'$contents[$i]['align']'"';.

If (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) {.

$tableBox_string .= ' '$contents[$i]['params'];.

} elseif (tep_not_null($this->table_data_parameters)) {.

$tableBox_string .= ' '$this->table_data_parameters;.

}.

$tableBox_string .= '>'$contents[$i]['text']'</td>'"\n";.

}.

$tableBox_string .= ' </tr>'"\n";.

If (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= '</form>'"\n";.

}.

$tableBox_string .= '</table>'"\n";.

If ($direct_output == true) echo $tableBox_string;.

Return $tableBox_string;.

}.

}.

Class infoBox extends tableBox {.

Function infoBox($contents) {.

$info_box_contents = array();.

$info_box_contents[] = array('text' => $this->infoBoxContents($contents));.

$this->table_cellpadding = '0';.

$this->table_parameters = 'class="infoBox"';.

$this->tableBox($info_box_contents, true);.

}.

Function infoBoxContents($contents) {.

$this->table_cellpadding = '3';.

$this->table_parameters = 'class="menu-darkgrey"';.

$info_box_contents = array();.

// $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));.

For ($i=0, $n=sizeof($contents); $i<$n; $i++) {.

$info_box_contents[] = array(array('align' => $contents[$i]['align'],.

'form' => $contents[$i]['form'],.

'params' => 'class="boxText"',.

'text' => $contents[$i]['text']));.

}.

// $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));.

Return $this->tableBox($info_box_contents);.

}.

}.

Class infoBoxHeading extends tableBox {.

Function infoBoxHeading($contents, $left_corner = true, $right_corner = false, $right_arrow = false) {.

$this->table_cellpadding = '0';.

If ($left_corner == true) {.

$left_corner = tep_image(DIR_WS_IMAGES'infobox/yellowbullet.gif');.

}.

If ($right_arrow == true) {.

$right_arrow = '<a href="'$right_arrow'">'tep_image(DIR_WS_IMAGES'infobox/arrow_right.gif', ICON_ARROW_RIGHT)'</a>';.

}.

If ($right_corner == true) {.

$right_corner = $right_arrowtep_image(DIR_WS_IMAGES'infobox/yellowbullet.gif');.

}.

$info_box_contents = array();.

$info_box_contents[] = array(array('params' => 'height="14" class="menu-grey"',.

'text' => $left_corner),.

Array('params' => 'width="100%" height="14" class="menu-grey"',.

'text' => $contents[0]['text']),.

Array('params' => 'height="14" class="menu-grey"',.

'text' => $right_corner));.

$this->tableBox($info_box_contents, true);.

}.

}.

Class contentBox extends tableBox {.

Function contentBox($contents) {.

$info_box_contents = array();.

$info_box_contents[] = array('text' => $this->contentBoxContents($contents));.

$this->table_cellpadding = '0';.

$this->table_parameters = 'class="infoBox"';.

$this->tableBox($info_box_contents, true);.

}.

Function contentBoxContents($contents) {.

$this->table_cellpadding = '0';.

$this->table_parameters = 'class="infoBoxContents"';.

Return $this->tableBox($contents);.

}.

}.

Class contentBoxHeading extends tableBox {.

Function contentBoxHeading($contents) {.

$this->table_width = '100%';.

$this->table_cellpadding = '0';.

$info_box_contents = array();.

$info_box_contents[] = array(array('params' => 'height="14" class="menu-grey"',.

'text' => tep_image(DIR_WS_IMAGES'')),.

Array('params' => 'height="14" class="menu-grey" width="100%"',.

'text' => $contents[0]['text']),.

Array('params' => 'height="14" class="menu-grey"',.

'text' => tep_image(DIR_WS_IMAGES'')));.

$this->tableBox($info_box_contents, true);.

}.

}.

Class errorBox extends tableBox {.

Function errorBox($contents) {.

$this->table_data_parameters = 'class="errorBox"';.

$this->tableBox($contents, true);.

}.

}.

?>..

Comment #6

DOH!.

I see it.

Class tableBox {.

Var $table_border = '0';.

Var $table_width = '165';.

Var $table_cellspacing = '0';.

Var $table_cellpadding = '0';.

Var $table_parameters = '';.

Var $table_row_parameters = '';.

Var $table_data_parameters = '';..

Comment #7

Try changing that '165' to '100%' and see what happens..

Terry..

Comment #8

Ok it's made a bit of a difference, not the full width though..

Comment #9

Your page is set up different than mine, but I'm guessing there's a stray table or /table tag (or maybe a tr or td) somewhere between the category description text and the product listing rows. You could try setting border=1 on some of the tables to see if you can figure out where it's running into trouble..

(Sorry, I don't have time to run through the whole code and decipher it right now...).

Terry..

Comment #10

I had a play lastnight for about 3 hours off and on wtill no joy..

Comment #11

Hi, I fixed it temporarily so I can move on. I used Denis Stankovski contribution. With a bit of fiddling I got it spot on..

Thanks Terry & Dennis!..

Comment #12

Im having a job finding how to change the width of the product listing page, as you can see it's far too narrow..

Any ideas please?.

Example Here..

Comment #13

Take a look at this piece of code:.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

   <tr>.

   <td>.

<table border="0" width="165" cellspacing="0" cellpadding="0">.

 <tr class="productListing-heading">.

Change the table with width of "165" to "100%" and it should all line up nicely..

HTH,.

Terry..

Comment #14


This question was taken from a support group/message board and re-posted here so others can learn from it.