chrometweaks.org

I bought a domain from iPage...now what?

Click Here To View All Answers...


My question is I bought a domain from iPage...now what? Hoping for any response. 2nd question I got is.. How do I go about changing the categories text in the column_left:.

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

To put an image in there?.

Instead of the box saying categories as text I want it to show this image:.

Thanks for all your help in advance....

God Bless ^i^..

Comments (76)

I'm stumped. I'm not so sure what is the answer to your question. I'll do some investigation and get back to you if I find an decent answer. You should email the people at iPage as they probably could answer your iPage question..

Comment #1

Navtop.gif is in the wrong directory.

The wiki says:.

Define('BOX_HEADING_SEARCH', '<img src="images/yourimagepath.gif">');.

Try the other /images directory and don't use full path...

Comment #2

You could try catalog/includes/boxes/categories.php locate the first.

<tr>.

<td>.

And directly after it put this code.

<TABLE WIDTH=125 BORDER=0 CELLPADDING=0 CELLSPACING=0>.

<TR>.

 <TD COLSPAN=3>.

 <IMG SRC="images/boxes/table_categories.gif" WIDTH=125 HEIGHT=10></TD>.

</TR>.

<TR>.

<td>.

Change the img src to the image you choose to use..

Comment #3

That works the best and easiest.

Thank you so much..

Comment #4

To fully finish of the categories box backup your catalog/includes/boxes/categories.php file and replace with this code.

<?php.

/*.

$Id: categories.php,v 1.21 2002/07/03 09:48:06 dgw_ Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright (c) 2002 osCommerce.

Released under the GNU General Public License.

*/.

Function tep_show_category($counter) {.

Global $foo, $categories_string, $id;.

For ($a=0; $a<$foo[$counter]['level']; $a++) {.

$categories_string .= "&nbsp;&nbsp;";.

}.

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

If ($foo[$counter]['parent'] == 0) {.

$cPath_new = 'cPath='$counter;.

} else {.

$cPath_new = 'cPath='$foo[$counter]['path'];.

}.

$categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new);.

$categories_string .= '">';.

If ( ($id) && (in_array($counter, $id)) ) {.

$categories_string .= '<b>';.

}.

// display category name.

$categories_string .= $foo[$counter]['name'];.

If ( ($id) && (in_array($counter, $id)) ) {.

$categories_string .= '</b>';.

}.

If (tep_has_category_subcategories($counter)) {.

$categories_string .= '-&gt;';.

}.

$categories_string .= '</a>';.

If (SHOW_COUNTS == 'true') {.

$products_in_category = tep_count_products_in_category($counter);.

If ($products_in_category > 0) {.

$categories_string .= '&nbsp;('$products_in_category')';.

}.

}.

$categories_string .= '<br>';.

If ($foo[$counter]['next_id']) {.

Tep_show_category($foo[$counter]['next_id']);.

}.

}.

?>.

<! categories //>.

<! This is where you will include you custom box header, left column and open up your Cell for your center column.

Make sure you leave the first 2 tags in here "<tr> and <td>" they maintain the control over your entire page..

If you remove these tags all of you info will be shifted below you categories box on your pages. If you dont.

Believe me, try it....lol. //>.

<tr>.

<td>.

<TABLE WIDTH=125 BORDER=0 CELLPADDING=0 CELLSPACING=0>.

<TR>.

<TD COLSPAN=3>.

<IMG SRC="images/boxes/table_categories.gif" WIDTH=125 HEIGHT=10></TD>.

</TR>.

<TR>.

<td>.

<?php.

$categories_string = '';.

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='"$languages_id ."' order by sort_order, cd.categories_name");.

While ($categories = tep_db_fetch_array($categories_query)) {.

$foo[$categories['categories_id']] = array(.

'name' => $categories['categories_name'],.

'parent' => $categories['parent_id'],.

'level' => 0,.

'path' => $categories['categories_id'],.

'next_id' => false.

);.

If (isset($prev_id)) {.

$foo[$prev_id]['next_id'] = $categories['categories_id'];.

}.

$prev_id = $categories['categories_id'];.

If (!isset($first_element)) {.

$first_element = $categories['categories_id'];.

}.

}.

//.

If ($cPath) {.

$id = split('_', $cPath);.

Reset($id);.

While (list($key, $value) = each($id)) {.

$new_path .= $value;.

Unset($prev_id);.

Unset($first_id);.

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '"$value"' and c.categories_id = cd.categories_id and cd.language_id='"$languages_id ."' order by sort_order, cd.categories_name");.

$category_check = tep_db_num_rows($categories_query);.

While ($row = tep_db_fetch_array($categories_query)) {.

$foo[$row['categories_id']] = array(.

'name' => $row['categories_name'],.

'parent' => $row['parent_id'],.

'level' => $key+1,.

'path' => $new_path'_'$row['categories_id'],.

'next_id' => false.

);.

If (isset($prev_id)) {.

$foo[$prev_id]['next_id'] = $row['categories_id'];.

}.

$prev_id = $row['categories_id'];.

If (!isset($first_id)) {.

$first_id = $row['categories_id'];.

}.

$last_id = $row['categories_id'];.

}.

If ($category_check != 0) {.

$foo[$last_id]['next_id'] = $foo[$value]['next_id'];.

$foo[$value]['next_id'] = $first_id;.

}.

$new_path .= '_';.

}.

}.

Tep_show_category($first_element);.

$info_box_contents = array();.

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

'text' => $categories_string.

);.

New infoBox($info_box_contents);.

?>.

<! This is where you will close your center cell and include your right side of your box.

And then finally close out your custom box. Be sure and leave the "</td> and </tr>" tags..

They ensure the sanctity of your overall page layout. //>.

</TD>.

</TR>.

</TABLE>.

<! categories_eof //>.

This post has been edited by.

241.

: 29 March 2004, 21:41..

Comment #5

Here is the replacement catalog/includes/boxes/search.php.

<?php.

/*.

 $Id: search.php,v 1.21 2002/05/27 13:26:34 hpdl Exp $.

 osCommerce, Open Source E-Commerce Solutions.

 http://www.oscommerce.com.

 Copyright (c) 2001 osCommerce.

 Released under the GNU General Public License.

*/.

?>.

<! search //>.

<tr>.

<td>.

<TABLE WIDTH=125 BORDER=0 CELLPADDING=0 CELLSPACING=0>.

<TR>.

 <TD COLSPAN=3>.

 <IMG SRC="images/boxes/table_search.gif" WIDTH=125 HEIGHT=10></TD>.

</TR>.

<TR>.

<td>.

<?php.

 $hide = tep_hide_session_id();.

 $info_box_contents = array();.

 $info_box_contents[] = array('form'  => '<form name="quick_find" method="get" action="'tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false)'">',.

                              'align' => 'center',.

                              'text'  => $hide'<input type="text" name="keywords" size="10" maxlength="30" value="'htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"]))'" style="width: '(BOX_WIDTH-30)'px">&nbsp;'tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH)'<br>'BOX_SEARCH_TEXT'<br><a href="'tep_href_link(FILENAME_ADVANCED_SEARCH)'"><b>'BOX_SEARCH_ADVANCED_SEARCH'</b></a>'.

                             );.

 new infoBox($info_box_contents);.

?>.

</TD>.

</TR>.

</TABLE>.

<! search_eof //>..

Comment #6

<! categories //>.

<TABLE WIDTH=125 BORDER=0 CELLPADDING=0 CELLSPACING=0>.

<TR>.

<TD COLSPAN=3>.

 <IMG SRC="/store/images/navtop.gif"></TD>.

</TR>.

<tr>.

<td>.

<TABLE WIDTH=125 BORDER=0 CELLPADDING=0 CELLSPACING=0>.

<TR>.

<TD COLSPAN=3>.

 <IMG SRC="images/boxes/table_categories.gif" WIDTH=125 HEIGHT=10></TD>.

</TR>.

<TR>.

<td>.

<?php.

$categories_string = '';.

Is this right?.

Www.highhobbies.com/store..

Comment #7

Whoa sorry, I messed up the code, let me try to fix that..

Comment #8

Fixed it....

Http://highhobbies.com/store/.

... thanks and sorry to bother you again Steve..

Comment #9

Ok sorry again... another problem....

That's the bottom but it shifts my page... www.highhobbies.com/store.

Thanks in advance...

Comment #10

This looks fine to me now....

New infoBox($info_box_contents);.

?>.

<IMG SRC="/store/images/navbottom.gif">.

</TD>.

</TR>.

</TABLE>.

<! categories_eof //>.

Sounds ok?..

Comment #11

Sorry what was all that, I was having some downtime.

I would guess that your next question is how do I get the botom to fit..

I did this for someone before..

Comment #12

How do I go about changing the categories text in the column_left:.

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

To put an image in there?.

Instead of the box saying categories as text I want it to show this image:.

Thanks for all your help in advance....

God Bless ^i^..

Comment #13

This part still shows up as text.

Define('BOX_HEADING_SEARCH', 'http://www.highhobbbies.com/STORE2/includes/boxes/images/navtop.gif').

The image does not show up, the text.

Http://www.highhobbbies.com/STORE2/include...ages/navtop.gif.

Shows up..

Comment #14


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