Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Having a hard time with Images on my Info boxes


lindsayanng

Recommended Posts

I have been working on replacing the Info Box headers with images by using a some pre-written code in the contributions section but making my own buttons. It is working GREAT, however there is ONE LITTLE PROBLEM.. I have some boxes that I made on my own that are not standard, like the articles boxes, and furry services.

 

i looked at the code for the new categories.php file and the information.php and compared it, but i can not figure out where to put the code to reference the images file.

 

here is my Articles.php file

 

<?php
/*
$Id: articles.php, v1.0 2003/12/04 12:00:00 ra Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

function tep_show_topic($counter) {
global $tree, $topics_string, $tPath_array;

for ($i=0; $i<$tree[$counter]['level']; $i++) {
$topics_string .= "  ";
}

$topics_string .= '<a href="';

if ($tree[$counter]['parent'] == 0) {
$tPath_new = 'tPath=' . $counter;
} else {
$tPath_new = 'tPath=' . $tree[$counter]['path'];
}

$topics_string .= tep_href_link(FILENAME_ARTICLES, $tPath_new) . '">';

if (isset($tPath_array) && in_array($counter, $tPath_array)) {
$topics_string .= '<b>';
}

// display topic name
$topics_string .= $tree[$counter]['name'];

if (isset($tPath_array) && in_array($counter, $tPath_array)) {
$topics_string .= '</b>';
}

if (tep_has_topic_subtopics($counter)) {
$topics_string .= ' ->';
}

$topics_string .= '</a>';

if (SHOW_ARTICLE_COUNTS == 'true') {
$articles_in_topic = tep_count_articles_in_topic($counter);
if ($articles_in_topic > 0) {
$topics_string .= ' (' . $articles_in_topic . ')';
}
}

$topics_string .= '<br>';

if ($tree[$counter]['next_id'] != false) {
tep_show_topic($tree[$counter]['next_id']);
}
}
?>
<!-- topics //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_ARTICLES);

new infoBoxHeading($info_box_contents, true, false);

$topics_string = '';
$tree = array();

$topics_query = tep_db_query("select t.topics_id, td.topics_name, t.parent_id from " . TABLE_TOPICS . " t, " . TABLE_TOPICS_DESCRIPTION . " td where t.parent_id = '0' and t.topics_id = td.topics_id and td.language_id = '" . (int)$languages_id . "' order by sort_order, td.topics_name");
while ($topics = tep_db_fetch_array($topics_query)) {
$tree[$topics['topics_id']] = array('name' => $topics['topics_name'],
'parent' => $topics['parent_id'],
'level' => 0,
'path' => $topics['topics_id'],
'next_id' => false);

if (isset($parent_id)) {
$tree[$parent_id]['next_id'] = $topics['topics_id'];
}

$parent_id = $topics['topics_id'];

if (!isset($first_topic_element)) {
$first_topic_element = $topics['topics_id'];
}
}

//------------------------
if (tep_not_null($tPath)) {
$new_path = '';
reset($tPath_array);
while (list($key, $value) = each($tPath_array)) {
unset($parent_id);
unset($first_id);
$topics_query = tep_db_query("select t.topics_id, td.topics_name, t.parent_id from " . TABLE_TOPICS . " t, " . TABLE_TOPICS_DESCRIPTION . " td where t.parent_id = '" . (int)$value . "' and t.topics_id = td.topics_id and td.language_id = '" . (int)$languages_id . "' order by sort_order, td.topics_name");
if (tep_db_num_rows($topics_query)) {
$new_path .= $value;
while ($row = tep_db_fetch_array($topics_query)) {
$tree[$row['topics_id']] = array('name' => $row['topics_name'],
'parent' => $row['parent_id'],
'level' => $key+1,
'path' => $new_path . '_' . $row['topics_id'],
'next_id' => false);

if (isset($parent_id)) {
$tree[$parent_id]['next_id'] = $row['topics_id'];
}

$parent_id = $row['topics_id'];

if (!isset($first_id)) {
$first_id = $row['topics_id'];
}

$last_id = $row['topics_id'];
}
$tree[$last_id]['next_id'] = $tree[$value]['next_id'];
$tree[$value]['next_id'] = $first_id;
$new_path .= '_';
} else {
break;
}
}
}
tep_show_topic($first_topic_element);

$info_box_contents = array();
$new_articles_string = '';
$all_articles_string = '';

if (DISPLAY_NEW_ARTICLES=='true') {
if (SHOW_ARTICLE_COUNTS == 'true') {
$articles_new_query = tep_db_query("select a.articles_id from (" . TABLE_ARTICLES . " a, " . TABLE_ARTICLES_TO_TOPICS . " a2t) left join " . TABLE_TOPICS_DESCRIPTION . " td on (a2t.topics_id = td.topics_id) left join " . TABLE_AUTHORS . " au on (a.authors_id = au.authors_id), " . TABLE_ARTICLES_DESCRIPTION . " ad where (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$languages_id . "' and td.language_id = '" . (int)$languages_id . "' and a.articles_date_added > SUBDATE(now( ), INTERVAL '" . NEW_ARTICLES_DAYS_DISPLAY . "' DAY)");
$articles_new_count = ' (' . tep_db_num_rows($articles_new_query) . ')';
} else {
$articles_new_count = '';
}

if (strstr($_SERVER['PHP_SELF'],FILENAME_ARTICLES_NEW) or strstr($PHP_SELF,FILENAME_ARTICLES_NEW)) {
$new_articles_string = '<b>';
}

$new_articles_string .= '<a href="' . tep_href_link(FILENAME_ARTICLES_NEW, '', 'NONSSL') . '">' . BOX_NEW_ARTICLES . '</a>';

if (strstr($_SERVER['PHP_SELF'],FILENAME_ARTICLES_NEW) or strstr($PHP_SELF,FILENAME_ARTICLES_NEW)) {
$new_articles_string .= '</b>';
}

$new_articles_string .= $articles_new_count . '<br>';

}

if (DISPLAY_ALL_ARTICLES=='true') {
if (SHOW_ARTICLE_COUNTS == 'true') {
$articles_all_query = tep_db_query("select a.articles_id from (" . TABLE_ARTICLES . " a, " . TABLE_ARTICLES_TO_TOPICS . " a2t) left join " . TABLE_TOPICS_DESCRIPTION . " td on (a2t.topics_id = td.topics_id) left join " . TABLE_AUTHORS . " au on (a.authors_id = au.authors_id), " . TABLE_ARTICLES_DESCRIPTION . " ad where (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$languages_id . "' and td.language_id = '" . (int)$languages_id . "'");
$articles_all_count = ' (' . tep_db_num_rows($articles_all_query) . ')';
} else {
$articles_all_count = '';
}

if ($topic_depth == 'top') {
$all_articles_string = '<b>';
}

$all_articles_string .= '<a href="' . tep_href_link(FILENAME_ARTICLES, '', 'NONSSL') . '">' . BOX_ALL_ARTICLES . '</a>';

if ($topic_depth == 'top') {
$all_articles_string .= '</b>';
}

$all_articles_string .= $articles_all_count . '<br>';

}

$info_box_contents[] = array('text' => $new_articles_string . $all_articles_string . $topics_string);

new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- topics_eof //-->

 

and here is the code that i THINK needs to be entered:

 

<tr>
<td>
<table width="144" border="0" cellspacing="0" cellpadding="1" class="infoboxborder">
<tr>
<td> <table width=100% border=0 cellpadding=0 cellspacing=0 class="infoBoxContents">
<tr>
<td colspan=3 width="100%"> <img src="images/boxes/table_best_sellers.jpg"></td>
</tr>
<tr>
<td>

 

 

i tired entering it under the <--topics-->/ code, but that threw everything out of whack.

 

I hope someone can give me a hand here. THANKS

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

my other really odd issue is that everything looks all fine and great until you go into the CATEGORIES or the PRODUCT LISTINGS. then the right column gets all out what and the ARTICLES, CATEGORIES, and FURRY SERVICES expand x2!!!

 

 

I dont really know where to look because i changed the info box width in the CSS to 155 (which should be universal) so i am confused as to why this is happening to just a handful of them

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

can someone please give me a hand? I would REALLY appreciate it!

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

can someone give me a hand, i have been looking over things for the past few hours and can not find it because i KNOW that the css has the size, but it is set to 155px

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

How about if I tell you where the existing images are coming from?

:unsure:

 

This code:

 

new infoBoxHeading($info_box_contents, true, false);

 

Look in /includes/classes/boxes.php for that function:

 

	function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {
  $this->table_cellpadding = '0';

  if ($left_corner == true) {
	$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');
  } else {
	$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif');
  }
  if ($right_arrow == true) {
	$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
  } else {
	$right_arrow = '';
  }
  if ($right_corner == true) {
	$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');
  } else {
	$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');
  }

  $info_box_contents = array();
  $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',
									 'text' => $left_corner),
							   array('params' => 'width="100%" height="14" class="infoBoxHeading"',
									 'text' => $contents[0]['text']),
							   array('params' => 'height="14" class="infoBoxHeading" nowrap',
									 'text' => $right_corner));

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

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

THank you for telling me the correct place to look.. that definitely would HELP!!

 

ok. i opened, and i messed with a new of the parameters, but i can NOT figure this out..

 

 

here is my code from that page:

<?php
/*
$Id: boxes.php,v 1.33 2003/06/09 22:22:50 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

class tableBox {
var $table_border = '0';
var $table_width = '100%';
var $table_cellspacing = '0';
var $table_cellpadding = '2';
var $table_parameters = '';
var $table_row_parameters = '';
var $table_data_parameters = '';

// class constructor
function tableBox($contents, $direct_output = false) {
$tableBox_string = '<table border="' . tep_output_string($this->table_border) . '" width="' . tep_output_string($this->table_width) . '" cellspacing="' . tep_output_string($this->table_cellspacing) . '" cellpadding="' . tep_output_string($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 (isset($contents[$i][0]) && 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="' . tep_output_string($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="' . tep_output_string($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 = '1';
$this->table_parameters = 'class="infoBox"';
$this->tableBox($info_box_contents, true);
}

function infoBoxContents($contents) {
$this->table_cellpadding = '3';
$this->table_parameters = 'class="infoBoxContents"';
$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' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''),
'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''),
'params' => 'class="boxText"',
'text' => (isset($contents[$i]['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 = true, $right_arrow = false) {
$this->table_cellpadding = '0';

if ($left_corner == true) {
$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');
} else {
$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif');
}
if ($right_arrow == true) {
$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
} else {
$right_arrow = '';
}
if ($right_corner == true) {
$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');
} else {
$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');
}

$info_box_contents = array();
$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',
'text' => $left_corner),
array('params' => 'width="100%" height="14" class="infoBoxHeading"',
'text' => $contents[0]['text']),
array('params' => 'height="14" class="infoBoxHeading" nowrap',
'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 = '1';
$this->table_parameters = 'class="infoBox"';
$this->tableBox($info_box_contents, true);
}

function contentBoxContents($contents) {
$this->table_cellpadding = '4';
$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="infoBoxHeading"',
'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif')),
array('params' => 'height="14" class="infoBoxHeading" width="100%"',
'text' => $contents[0]['text']),
array('params' => 'height="14" class="infoBoxHeading"',
'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif')));

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

class errorBox extends tableBox {
function errorBox($contents) {
$this->table_data_parameters = 'class="errorBox"';
$this->tableBox($contents, true);
}
}

class productListingBox extends tableBox {
function productListingBox($contents) {
$this->table_parameters = 'class="productListing"';
$this->tableBox($contents, true);
}
}
// BOF: Additional Images
class imagesBox extends tableBox {
function imagesBox($contents) {
$info_box_contents = array();
$info_box_contents[] = array('text' => $this->imagesBoxContents($contents));
$this->table_cellpadding = '1';
$this->tableBox($info_box_contents, true);
}
function imagesBoxContents($contents) {
$this->table_cellpadding = '4';
$this->table_parameters = 'class="imagesBoxContents"';
return $this->tableBox($contents);
}
}
// EOF: Additional Images
?>

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

i also find it curious that it only happens when i open a product that has more than one image. For instance, if you look at the gift certificates, it looks fine, but the rosebug cage pouch makes it all go "off"

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

First in your articles.php edit this code:

 

new infoBoxHeading($info_box_contents, true, false);

to say this:

 

new infoBoxHeading($info_box_contents, false, false);

That will get rid of the existing infobox corner images.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

i am looking through the articles.php (both the one in catalog and the catalog/includes/languages/english files) i do not see that code.

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

?>

<!-- topics //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_ARTICLES);

 

new infoBoxHeading($info_box_contents, true, false);

$topics_string = '';

$tree = array();

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

i made that change, but that is not really my issue. My issue is the SIZE of the box.. the fact that the CATEGORIES, ARTICLES< and FURRY SERVICES boxes all expand in size.. but thanks for getting rid of that corner for me

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

I have been working on replacing the Info Box headers with images by using a some pre-written code in the contributions section but making my own buttons. It is working GREAT, however there is ONE LITTLE PROBLEM.. I have some boxes that I made on my own that are not standard, like the articles boxes, and furry services.

 

i looked at the code for the new categories.php file and the information.php and compared it, but i can not figure out where to put the code to reference the images file.

Guess I read that wrong.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

i'm trying to make the size of the text inside the two bozes smaller, but it seems that the only ones that change when i change the INFOBOX_CONTENT on the style sheet are the right column boxes.

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

yea.. I was having TWO issues, but the BIGGEST issue of mine is that the size of the boxes expand when the categories box expands, maybe because of text size?? but then why would the other two expand like that?

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

Unfortunately, the only tool I have to edit web pages "on the fly" only works in Firefox.

 

And the boxes on your site don't seem to change in Firefox, only IE.

:(

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

no, because i am using firefox and the infobox right is changing on me.. it was doing the same on IE on my work cpu.. It is definitely some parameter somewhere that got replaced or something..

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

I've clicked dang near everything on your site, and the column remains a steady fixed width for me.

:o

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

that is REALLY odd.. you clicked on a product with more than one image in it??? maybe i should exit out of firefox and restart?? weird that it would happen in my work spu too though..

 

please do me the favor and click a product (not gift certificate) in the NEW PRODUCTS box and tell me if the categories and Furry Services box looks out of what.. not the top image but the actual box and background.

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

OK.

 

I can get it to screw up now.

:blush:

 

Just an ID ten T error on my part...

;)

 

I'll play with it using the web developer plugin and see what I can unearth...

:blink:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

dude, you ROCK.. thanks so much for checking it out for me. if you need to see some code or whatever, let me know i will post anything you need.

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

OK.

 

I figured out why the left box expands.

 

It needs to be widened to accommodate your longest category name.

 

When I click on the "Small Animals", then the sub categories appear:

 

Small Animals->
 Chinchillas->
 Mice/Gerbils/Hamsters->
 Ferrets->
 Hedgehogs->
 Rabbits/Guinea Pigs->
 Sugar Gliders->

Then the box goes "wacko".

 

If I shorten this link:

 

  Mice/Gerbils/Hamsters->

to just

 

  Mice->

The box lines up again.

 

You need to rethink/recalculate the required box width, I guess.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

hmm.. Well, what if i make the text smaller. Do you think that making the font smaller would help?? I have NEVER had this issue before.. but i did recently change the taxt font.. for now, the stock font size is fine. i want to replace that with a dynamic menu anyways.. but what about the FURRY FAMILY SERVICES, that is not all that long but it also exands...

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

Personally, I don't think a smaller font is the way to go.

 

There could be another underlying reason why the boxes expand, but I'm unable to find it (if it exists).

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

i think you are right.. I just changed the font size back to 10 (stock font size) and it is looking better.. i have to get rid of those arrows to make it fit that correct size, but i dont know how to do that just yet.

 

Like i said, my site is NOT live, and i want to get a good dynamic menu with the flyout or drop down (any suggestions where to get a snippet) so that issue will not really be an issue any longer.. i just want it to look ok until then..

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

ok.. I fixed it all temporarily by changing the box font back to 10 and i took out the arrow in the categories..

 

I have a similar issue with my banner on the right. I added the banner and it was all good, but when i increased the size of the info boxes, i figured i should make the banner match, so i re-opened it in illustrator where i made it the same pixel width as the other boxes, but when i re-uploaded it in the banner manager, the image looks bigger, but the edges are cut off, like it is going outside of it's table.

 

i have NEVER had an issue like this so i have no idea where to look!

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...