Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customising Categories Tab v1.3


jon_l

Recommended Posts

I've installed the Categories Tab v1.3, and it is working fine. However, I'm trying to customise it a bit and it is all going very, very wrong.

 

All I want to do is to add some extra tabs, to replace the navigation bar - with top / catalog .... my account / checkout etc. I am having big problems with this and I can't see why.

 

If anyone has done this, or can supply the relevant code, I would be very grateful. I have spent many hours on this already....

 

Thanks,

 

Jon.

Link to comment
Share on other sites

Try using menu tab v1.0b it was designed to use will other files

files rather then categories. like logon, policy statement, shipping,

things like that, or even links to fixed pages.

 

It also has a verion of category tabs that has been modified to with

menu tabs so that they are the same.

 

There was a couple of errors in the install instructions, I hope by Monday I should have the changes published. I also made a couple of changes in category tabs. you now can turn it on off in admin, control number of category tabs in a row. and turn on off the label wrap.

 

Demo is at:

http://www.pdpatch.com/osc/catalog/default.php

 

try theme 6 in the demo

 

contrib is at:

http://www.oscommerce.com/community/contributions,989

Link to comment
Share on other sites

  • 1 month later...

Zip,

I installed your menu tabs as instructed and did change the one line to tab_menu for the admin area in application_top. However when I place the code in the header.php my entire header keeps dissapearing....I'm not sure what the problem is. I tried putting it in different places in header.php but still...as soon as I add that code anywhere...I get nothing. One more question...the stuff to add to the stylesheet...do I put that into the thema stylesheet that I am using?? I put it in both. The thema stylesheet and the one in the catalog directory. Thanks!!! Can't wait to get it working!!

 

-Richard

:wink:

-Richard

---------------------------------------------------

Where would I be without the Forums?!?!

Link to comment
Share on other sites

  • 3 weeks later...

i tried the version 1.0b here is a mail i sent to the autors :

 

For the contribution 1.0b

 

1.admin/application_top.php

 

'menu_tab' seems to be a mistake cause you created a tab_menu table !

 

//bof for menu_tab

define('TABLE_MENU_TAB', 'menu_tab');

define('FILENAME_MENU_TAB', 'menu_tab.php');

// eof menu tab

 

 

 

2.catalog/includes/header.php

 

} a the ending lines seems to be a mistake because it cause a parse error !

 

 

<?php

// BOF: Category Tabs - by Paul Marshall <[email protected]> and menu tabs

?>

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

<td align="left" valign="bottom" >

<?php include(DIR_WS_INCLUDES . 'categories_tab.php'); ?>

</td>

</table>

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

<td align="left" valign="bottom" >

<?php include(DIR_WS_INCLUDES . 'menu_tab.php'); ?>

</td>

</table>

<?php

}

// EOF: Added: Category and menu tabs

?>

 

3. adminincludeslanguagesfrenchimagesbuttonsbutton_new_tab.gif

the file button_new_tab.gif couldnt be found anywhere in the zip

 

4.in the install.txt, nothing written about the adminincludesboxesmembers.php included in the zip

MS2

Link to comment
Share on other sites

Ok you all caught me by suprise.

 

My appoligies for not replying sooner

 

There was some errors in the original that I posted corrections to. Some where in this board are the corrections. search for menu tab.

 

or

 

The corrections have been applied to an update that I had to stop working on. (My wifes Busineess became really busy so I was helping her.)

 

I have also made some minor improvments in the cat-menu tab

contribution. I am hopping that i can get back to it shortly.

and publish the newer version. I need to cleanup the admin screens

for the category part and get linda's hidden category working again.

 

As far a thema you apply the changes to each style sheet. The path to the

images in the syle sheet and the code is different.

The new version will have all packed in one zip with matching images for

each of the themes. like in the demo.

 

 

Azer I do not have MSword installed. could you send a text document.

opps never mind I read your post.

 

members.php is part of a membership and login system I was working on.

I am not sure how that got in there but this contrib does not use that.

the memebership system was an update of another contriibution.

 

Tom O

Link to comment
Share on other sites

ok then ill wait for the new version , cos here for the part u can change in admin things seems to be ok exept the image missing ...

 

1.maybe you should had that if we dont give a row or an order for an item , even if u click add , it doesnt add to the database, so something like a warning : " you need to ... or because you didnt chose a row , default has been set up " ...

 

 

2. i have got other isues when i use to much item and that has to do several row or split an item on two line if there is a space in the item name , but i have to take screenshot of it"

 

i'll send it to you as soon as i do them ...

 

3.request , being able to do a separator, we add an item like blank and then for a default length , ther will be nothing between two tabs (aim : doing groups)

 

best regards

MS2

Link to comment
Share on other sites

Just curious...

Has anyone come up with a way so that when you stack rows of the tabs they fill in the trasparent places in the tabs below so they don't look like they are floating??? I have a colorful header background image but would like to be able to have a few rows of tabs. Thanks for any info!!!

 

:wink:

-Richard

---------------------------------------------------

Where would I be without the Forums?!?!

Link to comment
Share on other sites

Today I'll be working on the contribute, (Or at least I hope to)

 

Richard

I think I understand what you want. I did that once while writing this contribute

It has to do with the background color of the cell for the right and left images

 

I can possible create another table that can be turned on and off in the admin

and set a background color in the admin or style sheet.

I'll work on this.

 

here is a short list of other things that you all want added:

 

1. warning that you need to set row and tab order when you add a new tab.

 

2. be able to set background color behind tabs. and be able to turn this feature off and on.

 

3. be able to set a blank separator tab between tabs that have labels with out having to

create a blank labels. (this may take a while)

 

4. publish the version for thema (yes i know this was used in the demo and I should have

published this version but I had to go back to being a graphic artists for a while)

 

5. get Linda's hide a category working again. when applied with quantity controller

 

Any more request? Please post them here.

 

so far I have added to version 2.0

a. admin control over category tabs

can set how many category tabs in a row

can turn off and on word wrap for label of category tab

 

 

b. better instructions on how to use admin screens.(need to convert this to HTML or PDF

so screen shots can be added)

 

 

c. applied bug fixes as posted in various threads in forum

 

d. can turn cat tab and menu tab on and off from within admin configure screen.

 

I will check back here latter today to see if anyone has added to want list.

 

 

For those of you that have emailed me I am not ignoring your emails.

It just take me a little while to answer.

 

Tom O

Link to comment
Share on other sites

Tom,

Sounds great!!! I didn't even think of using a background color for the table the tabs are in. I'll have to change around my header.php becasue I've got menu and category tabs in the same table...one left justified and the other to the right...so I'll have to make that tables seperate and 100% and assign them a class in the stylesheet to get this to work. To turn this off and on in admin as I add and remove tabs will be very handy!!! Also to control the color in the stylesheet will be nice becasue I have changed the colors to my own. Thanks TOM!!! keep up the good work!!

-Richard

---------------------------------------------------

Where would I be without the Forums?!?!

Link to comment
Share on other sites

tom id like t ohelp u integrating french your contrib too !

 

i cant translate all for you if you want ... pm me and tell me what to translate , i can transalte translation.txt for you but if u had new things it wouldn't be enough !

 

and im so bad at bimap working , but we should easealy find someone to make us several gif to have more choice like your thema ...

 

by the way , isn't it better to do transaprent gif and in the style sheet define the colors we want ?

MS2

Link to comment
Share on other sites

Richard in you style sheet you should see

TD.tableft {

background-image: url(../../../../images/tabs/thema/6/tab_left.gif);

background-repeat: no-repeat;

color: #DEB887;

font-size: smaller;

}

TD.tabright {

background-image: url(../../../../images/tabs/thema/6/tab_right.gif);

background-repeat: no-repeat;

color: #DEB887;

font-size: smaller;

 

by book if you add the tag

background-color:

above

background-image:

tag you sould be able to change the back ground color of the ends of the tabs

problems is the Netscape 4.7x does not like this.

That's why i sujested doing it with a table back ground color

 

 

I am puttting into the admin to select left right and center for the tabs

in the admin.

 

Azer

let me get a little more code done the I'll send the language files to you

for better translations then I did.

 

I would like to have french and germen translates available.

I tried but they are not very good.

 

In the contrib there should be a directory called alt tabs

this is where some other styles and color of tabs are located.

 

Tom

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...