chrometweaks.org

Who knows where the best internet iPage web hosting company?

Click Here To View All Answers...


Quick question: Who knows where the best internet iPage web hosting company? Looking forward for any comment. Another question I got... Hi ,.

I am using Menu Tabs V 1.3 , Currently the Menu Tab is displaying all the categories , I want it to also display the Home tab too. PLease help.

Categories.php is the file that displays the menu tabs, the line which pulls categories from db is as follows:.

<?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'];.

}.

}.

Show_category_tabs($first_element);.

Echo $categories_string;.

?>.

Please tell me how to add a Home tab that would take the page to index.php (similar to wht happens when you click on the header banner.

Thanks..

Comments (28)

Good question... I dunno what is the answer. 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 help you..

Comment #1

Thanks for helping me, I did as dennis said, but then it's showing Home but not as a tab, how do I make it in a tab, if you want I can paste the whole code....

Comment #2

Yea you need to format it, hmm, what is your iPage site url?..

Comment #3

Well first check to see if there is an option to turn on a "HOME" tab first and if not you can try this..

<td valign="top" class="tab"><a href="http://hdinnovation.com/test/catalog" class="tab">Home</a></td><td valign="top" class="tab"><img src="images/trans_corner_right.gif" border="0" alt=""></td><td valign="top" class="tab"><img src="images/trans_corner_left.gif" border="0" alt=""></td><td valign="top" class="tab"><table width="100%" border="0" cellspacing="0" cellpadding="0">.

 <tr>.

   <td valign="top" bgcolor="#000040"><img src="images/pixel_trans.gif" border="0" alt=""></td>.

 </tr>.

 <tr>.

   <td valign="top" bgcolor="#000040"><img src="images/pixel_trans.gif" border="0" alt=""></td>.

 </tr>.

 </table>.

</td>.

Put that were instead of what I showed you before...

Comment #4

Thanks a lot dennis, let me try and will let you know.....

Comment #5

Hi ,.

I am using Menu Tabs V 1.3 , Currently the Menu Tab is displaying all the categories , I want it to also display the Home tab too. PLease help.

Categories.php is the file that displays the menu tabs, the line which pulls categories from db is as follows:.

<?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'];.

}.

}.

Show_category_tabs($first_element);.

Echo $categories_string;.

?>.

Please tell me how to add a Home tab that would take the page to index.php (similar to wht happens when you click on the header banner.

Thanks..

Comment #6

Just add it on a new column to the left of it. on your categories.php you should see <tr> <td> , just add it there. So it will look like this..

<tr><td><a href="yourhomepage">Home</a></td><td>.

Then just format it to match..

-Dennis.

This post has been edited by.

Dblake.

: 27 September 2004, 18:07..

Comment #7


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