Forums / Addon Templates / Flexible Attributes addon support

Flexible Attributes addon support

Views: 76,882

Results 61 to 80 of 274
15 Dec 2010, 4:45 AM
#61
windchaser avatar

windchaser

New Zenner

Join Date:
Dec 2010
Location:
Home
Posts:
17
Plugin Contributions:
0

Flexible Attributes addon support

gjh42:

If that is not what you want, maybe you mean to have the Right/Left Eye line up with the labels that follow?

Right Eye QTY (RE) PWR (RE) BC (RE) DIA (RE)
. . . . . . . . . . [] . . . . . [] . . . . . . [] . . . . . []

Your stylesheet comments out the rules and properties that would do just that:```
/#wAttrib-20 {clear: left; float: left;}/
/#wAttrib-20, #wAttrib-21, #wAttrib-22, #wAttrib-23, #wAttrib-24 {float: left;}/
#wAttrib-21, #wAttrib-22, #wAttrib-23, #wAttrib-24 {float: left;}

#wAttrib-25 {clear: left; /float: left;/}/this will sit on a new line/
#wAttrib-26, #wAttrib-27, #wAttrib-28, #wAttrib-29 {float: left;}


Tried that. Won't work.

This is something what I want:

<http://www.i-contacts.co.nz/shopping_cart/product_id/55:9f96099c80b897be618093d77ad9bbd4>

It is done in zen-cart. Had email the store to ask for help but no reply.

Anyway. I've found a way to so the problem. This is what i did:


/*attribute layout*/
.wrapperAttribsOptions label {font-size: 1.0em;}/*make "label" elements match other text*/
h3#attribsOptionsText {display: none;}/*'Display: None;' to hide the "Please Choose:" heading*/
h4.optionName {font-size: 1.0em;}
.wrapperAttribsOptions+br.clearBoth {display: none;}/*allow floated attributes to sit side by side if desired*/

/*This line aligns all Right Eye attributes in one roll(first roll)*/
#wAttrib-20, #wAttrib-21, #wAttrib-22, #wAttrib-23, #wAttrib-24 {float: left;}
/*#wAttrib-21, #wAttrib-22, #wAttrib-23, #wAttrib-24 {float: left;}*/

/*For some unknown freak reason that I can't get Attributes 25, 26, 27, 28 and 29 line up all together the next roll,
I created Attribute 30 to do a 'roll break'.*/ 
#wAttrib-30 {clear: left;}/*this will sit on a new line*/
#wAttrib-30 .attribsOptions {display: none;}/*for a read-only attribute to hide all but comments*/

/*This line aligns all Left Eye attributes in another roll(second roll)*/
#wAttrib-25, #wAttrib-26, #wAttrib-27, #wAttrib-28, #wAttrib-29 {float: left;}

/*Aline Dropdown Box Below Attribute's OptionName*/
#wAttrib-20 .back {float: none;}, #wAttrib-21 .back {float: none;}, #wAttrib-22 .back {float: none;}, #wAttrib-23 .back {float: none;},
#wAttrib-24 .back {float: none;}, #wAttrib-25 .back {float: none;}, #wAttrib-26 .back {float: none;}, #wAttrib-27 .back {float: none;},
#wAttrib-28 .back {float: none;}, #wAttrib-29 .back {float: none;} 

/**EOF**/

This is the result:
<http://cplens.com/index.php?main_page=product_info&cPath=65&products_id=180&zenid=ec73d58a80d261d97f3755054f1b3f45>

Now, I need to align the attributes so that they look uniform like in an army squard.

I need to put a "heading" for the attributes so that it looks like this:

1st Row: (Blank Space)  QTY  PWR  BC  DIA

2nd Row: Right Eye         [  ]    [  ]    [  ]  [  ] <-- drop down boxes for items mentioned in first roll.

3rd Row:  Left Eye           [  ]    [  ]    [  ]  [  ]

Also, I need to add up RE and LE's QTY so that they can be total up in the shopping cart quantity box. Any suggestion please?

Thank you.

The Wind Chaser --
I lost myself entirely
in the wind...

15 Dec 2010, 6:50 AM
#62
windchaser avatar

windchaser

New Zenner

Join Date:
Dec 2010
Location:
Home
Posts:
17
Plugin Contributions:
0

Re: Flexible Attributes addon support

I managed to solve the horizontal alignment issue.

This is what I did:

/attribute layout/
.wrapperAttribsOptions label {font-size: 1.0em;}/make "label" elements match other text/
h3#attribsOptionsText {display: none;}/'Display: None;' to hide the "Please Choose:" heading/
h4.optionName {font-size: 1.0em;}
.wrapperAttribsOptions+br.clearBoth {display: none;}/allow floated attributes to sit side by side if desired/
/Blank space above 'Right Eye, RE(OD)' Attribute./
#wAttrib-35 {clear: left;}/this will sit on a new line/
#wAttrib-35 .attribsOptions {display: none;}/for a read-only attribute to hide all but comments/

/This line aligns all attributes' discription in one roll(first roll)/
#wAttrib-35 {float: left; width: 12em;} /This line ensures 'Right Eye, RE(OD)' is displayed with enough column width./
#wAttrib-36, #wAttrib-37, #wAttrib-38, #wAttrib-38, #wAttrib-39, #wAttrib-40, #wAttrib-41 {float: left; width: 7em;}

/This line aligns all Right Eye attributes in one roll(second roll)/
#wAttrib-20 {float: left; width: 12em;} /This line ensures 'Right Eye, RE(OD)' is displayed with enough column width./
#wAttrib-21, #wAttrib-22, #wAttrib-23, #wAttrib-24, #wAttrib-31, #wAttrib-32 {float: left; width: 7em;}

/For some unknown freak reason that I can't get Attributes 25, 26, 27, 28 and 29 line up all together the next roll,
I created Attribute 30 to do a 'roll break'.
/
#wAttrib-30 {clear: left;}/this will sit on a new line/
#wAttrib-30 .attribsOptions {display: none;}/for a read-only attribute to hide all but comments/

/This line aligns all Left Eye attributes in one roll(third roll)/
#wAttrib-25 {float: left; width: 12em;} /This line ensures 'Left Eye, LE(OS)' is displayed with enough column width./
#wAttrib-26, #wAttrib-27, #wAttrib-28, #wAttrib-29 ,#wAttrib-33, #wAttrib-34 {float: left; width: 7em;}

/Align Dropdown Box Below Attribute's OptionName/
/**
#wAttrib-20 .back {float: none;}, #wAttrib-21 .back {float: none;}, #wAttrib-22 .back {float: none;}, #wAttrib-23 .back {float: none;},
#wAttrib-24 .back {float: none;}, #wAttrib-25 .back {float: none;}, #wAttrib-26 .back {float: none;}, #wAttrib-27 .back {float: none;},
#wAttrib-28 .back {float: none;}, #wAttrib-29 .back {float: none;}
**/

/Sizing comments above Right Eye and Left Eye attributes to bold text with 1em text size/
#wAttrib-20, #wAttrib-25 h3 {font-size: 1em; font-weight: bold;}

/Eliminate attributes' option name (other than 'Righte Eye' and 'Left Eye')/
#wAttrib-21 h4 {display: none;}, #wAttrib-22 h4 {display: none;}, #wAttrib-23 h4 {display: none;}, #wAttrib-24 h4 {display: none;},
#wAttrib-26 h4 {display: none;}, #wAttrib-27 h4 {display: none;}, #wAttrib-28 h4 {display: none;}, #wAttrib-29 h4 {display: none;},
#wAttrib-31 h4 {display: none;}, #wAttrib-32 h4 {display: none;}, #wAttrib-33 h4 {display: none;}, #wAttrib-34 h4 {display: none;}

/EOF/

This is the result:
http://cplens.com/index.php?main_page=product_info&cPath=65&products_id=180&zenid=ec73d58a80d261d97f3755054f1b3f45

Now I need to add both RE's QTY and LE's QTY to Shopping Cart's QTY total. Can anyone direct me to a forum discussion that address this issue please?

Thanks.

The Wind Chaser --
I lost myself entirely
in the wind...

15 Dec 2010, 7:07 AM
#63
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Flexible Attributes addon support

To hide the legend above each dropdown, you can do something like this:

#wAttrib-26 h4 {display: none;}

To add the quantities will take custom coding; only javascript can do it in real time so the customer sees the total change before adding to cart.

The site you mentioned uses a custom-coded table with the attributes inserted into cells, and javascript for a bunch of custom-coded features. It is a job for an experienced javascript developer.

That's why one of the dropdowns was missing its legend when I looked at it - you were in the process of doing what I was about to advise:)

15 Dec 2010, 7:32 AM
#64
thedjphat avatar

thedjphat

Zen Follower

Join Date:
Nov 2010
Location:
Vancouver, BC
Posts:
108
Plugin Contributions:
0

Re: Flexible Attributes addon support

If you read my reply on this post earlier I gave you a pretty good setup to go with for the attributes, including positioning and such, I did the same thing a few days ago.

Now I need to add both RE's QTY and LE's QTY to Shopping Cart's QTY total. Can anyone direct me to a forum discussion that address this issue please?

You need to make all of your products priced by attribute, and build a product template to apply price factoring values for the two qty fields (That's how I did it anyway). In my case I also made the base price a hidden read only attribute.

The next issue after adding all the attributes, is probably server load. I've found that the queries go through the roof. You seem to have a good load speed so far... what host are you on?

http://opticalnow.ca/index.php?main_page=product_info&cPath=5_6&products_id=10

15 Dec 2010, 7:47 AM
#65
thedjphat avatar

thedjphat

Zen Follower

Join Date:
Nov 2010
Location:
Vancouver, BC
Posts:
108
Plugin Contributions:
0

Re: Flexible Attributes addon support

I would advise taking the value "-" out of cyl and axis, so they can be suppressed, and not show up unless they are needed.

My site has horrible load times at the moment but you can see that I've done most of this already over the last few weeks. If I can help, I will. Also, check the thread over here to get more on topic.

:lamo:

15 Dec 2010, 8:06 AM
#66
windchaser avatar

windchaser

New Zenner

Join Date:
Dec 2010
Location:
Home
Posts:
17
Plugin Contributions:
0

Re: Flexible Attributes addon support

thedjphat:

If you read my reply on this post earlier I gave you a pretty good setup to go with for the attributes, including positioning and such, I did the same thing a few days ago.

You need to make all of your products priced by attribute, and build a product template to apply price factoring values for the two qty fields (That's how I did it anyway). In my case I also made the base price a hidden read only attribute.

The next issue after adding all the attributes, is probably server load. I've found that the queries go through the roof. You seem to have a good load speed so far... what host are you on?

http://opticalnow.ca/index.php?main_page=product_info&cPath=5_6&products_id=10

opps! din pay attention to your post earlier. :p

anyway, i saw your site. i had tried adding up the price by attributes before. honestly, i have no problem with doing that but there is one problem: the QTY displayed in the shopping cart is always 1 -- no matter how many boxes or quantity we (the customers) declared for our order in the product info page.

Hence, if we (the website designers, ie, you and I) are going to use the option of adding up price by attributes, we have to get rid of the QTY display inside the shopping cart. Off hand, I dunno where or how to do it. :(

I had learn progamming in my computer games design and development diploma earlier (DarkBASIC) and if I am not wrong, the attributes values are "Text" where as the value for the QTY in the Shopping Cart is "Numbers" -- and they are not linked.

If I know where is the code that adds up the shopping cart quantity total and the code for my customed attributes (QTY) are physically written, I may be able to link them like this (somthing like this):

ShoppingCart_QTY = Attrib_QTY(RE) + Attrib_QTY(LE) /names for each element in the formula is not the real names declared in the real script/

Unfortunately, I do not know where the codes are physically written.

And yes, I do not know javascript... T_T

I am using hawkhost.

The Wind Chaser --
I lost myself entirely
in the wind...

15 Dec 2010, 8:10 AM
#67
windchaser avatar

windchaser

New Zenner

Join Date:
Dec 2010
Location:
Home
Posts:
17
Plugin Contributions:
0

Re: Flexible Attributes addon support

thedjphat:

I would advise taking the value "-" out of cyl and axis, so they can be suppressed, and not show up unless they are needed.

My site has horrible load times at the moment but you can see that I've done most of this already over the last few weeks. If I can help, I will. Also, check the thread over here to get more on topic.

:lamo:

Based on my php coding knowledge, which is ZERO, it leaves me to no choice as I have to keep my option names and values to the minimal to avoid future confusion and simplicity for creating future product info pages. :(

The Wind Chaser --
I lost myself entirely
in the wind...

15 Dec 2010, 8:23 AM
#68
windchaser avatar

windchaser

New Zenner

Join Date:
Dec 2010
Location:
Home
Posts:
17
Plugin Contributions:
0

Re: Flexible Attributes addon support

windchaser:

I managed to solve the horizontal alignment issue.

This is what I did:

/attribute layout/
.wrapperAttribsOptions label {font-size: 1.0em;}/make "label" elements match other text/
h3#attribsOptionsText {display: none;}/'Display: None;' to hide the "Please Choose:" heading/
h4.optionName {font-size: 1.0em;}
.wrapperAttribsOptions+br.clearBoth {display: none;}/allow floated attributes to sit side by side if desired/
/Blank space above 'Right Eye, RE(OD)' Attribute./
#wAttrib-35 {clear: left;}/this will sit on a new line/
#wAttrib-35 .attribsOptions {display: none;}/for a read-only attribute to hide all but comments/

/This line aligns all attributes' discription in one roll(first roll)/
#wAttrib-35 {float: left; width: 12em;} /This line ensures 'Right Eye, RE(OD)' is displayed with enough column width./
#wAttrib-36, #wAttrib-37, #wAttrib-38, #wAttrib-38, #wAttrib-39, #wAttrib-40, #wAttrib-41 {float: left; width: 7em;}

/This line aligns all Right Eye attributes in one roll(second roll)/
#wAttrib-20 {float: left; width: 12em;} /This line ensures 'Right Eye, RE(OD)' is displayed with enough column width./
#wAttrib-21, #wAttrib-22, #wAttrib-23, #wAttrib-24, #wAttrib-31, #wAttrib-32 {float: left; width: 7em;}

/For some unknown freak reason that I can't get Attributes 25, 26, 27, 28 and 29 line up all together the next roll,
I created Attribute 30 to do a 'roll break'.
/
#wAttrib-30 {clear: left;}/this will sit on a new line/
#wAttrib-30 .attribsOptions {display: none;}/for a read-only attribute to hide all but comments/

/This line aligns all Left Eye attributes in one roll(third roll)/
#wAttrib-25 {float: left; width: 12em;} /This line ensures 'Left Eye, LE(OS)' is displayed with enough column width./
#wAttrib-26, #wAttrib-27, #wAttrib-28, #wAttrib-29 ,#wAttrib-33, #wAttrib-34 {float: left; width: 7em;}

/Align Dropdown Box Below Attribute's OptionName/
/**
#wAttrib-20 .back {float: none;}, #wAttrib-21 .back {float: none;}, #wAttrib-22 .back {float: none;}, #wAttrib-23 .back {float: none;},
#wAttrib-24 .back {float: none;}, #wAttrib-25 .back {float: none;}, #wAttrib-26 .back {float: none;}, #wAttrib-27 .back {float: none;},
#wAttrib-28 .back {float: none;}, #wAttrib-29 .back {float: none;}
**/

/Sizing comments above Right Eye and Left Eye attributes to bold text with 1em text size/
#wAttrib-20, #wAttrib-25 h3 {font-size: 1em; font-weight: bold;}

/Eliminate attributes' option name (other than 'Righte Eye' and 'Left Eye')/
#wAttrib-21 h4 {display: none;}, #wAttrib-22 h4 {display: none;}, #wAttrib-23 h4 {display: none;}, #wAttrib-24 h4 {display: none;},
#wAttrib-26 h4 {display: none;}, #wAttrib-27 h4 {display: none;}, #wAttrib-28 h4 {display: none;}, #wAttrib-29 h4 {display: none;},
#wAttrib-31 h4 {display: none;}, #wAttrib-32 h4 {display: none;}, #wAttrib-33 h4 {display: none;}, #wAttrib-34 h4 {display: none;}

/EOF/

This is the result:
http://cplens.com/index.php?main_page=product_info&cPath=65&products_id=180&zenid=ec73d58a80d261d97f3755054f1b3f45

Now I need to add both RE's QTY and LE's QTY to Shopping Cart's QTY total. Can anyone direct me to a forum discussion that address this issue please?

Thanks.

Oh yar. For people who wonder what is Attribute 30 and 35, they are actually 'Blank Space 002' and 'Blank Space 001' respectively, which I further hide their Option Name discription using the script provided in the module.

I did this after some trial and error with the earlier version of my script and found out how to by pass the bug (if it is, or whatsoever freak reason that what supposed to be joint together in one roll are not).

The 4 lines (2 lines for each blank space) is written base on the rule -- Visual Arts is all about visual illusion.

If we can't get the expected visual result in one solution, use another -- so long it looks what it supposed to looks like!

Cheers! :D

The Wind Chaser --
I lost myself entirely
in the wind...

15 Dec 2010, 8:49 AM
#69
windchaser avatar

windchaser

New Zenner

Join Date:
Dec 2010
Location:
Home
Posts:
17
Plugin Contributions:
0

Re: Flexible Attributes addon support

... oh yes, i also need to convert values for Attrib_QTY(RE) and Attrib_QTY(LE) from TEXT to Numbers -- which, of course, I do not know how it is to be done in php! T.T...

The Wind Chaser --
I lost myself entirely
in the wind...

15 Dec 2010, 9:26 AM
#70
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Flexible Attributes addon support

It seems you have complicated the layout elements quite a bit to get back to something like the layout you had before, with two rows (not "rolls") of attribute dropdowns... but if it works now, maybe better not to try to fix it more.
Specifically, #wAttrib-20 and #wAttrib-25 no longer have the clear: left; that made them start on new lines, so you introduced new attributes with a bunch of styling to do the job.

There is a PHP operator called COLOR="Red"[/COLOR] that you can put before a variable to cast its type to an integer.
$variable = (int)$variable_old;

This would convert text numerals to a numeric value.
As for where to apply it, I haven't explored that part of the code to be able to advise.

15 Dec 2010, 7:27 PM
#71
thedjphat avatar

thedjphat

Zen Follower

Join Date:
Nov 2010
Location:
Vancouver, BC
Posts:
108
Plugin Contributions:
0

Re: Flexible Attributes addon support

windchaser:

... oh yes, i also need to convert values for Attrib_QTY(RE) and Attrib_QTY(LE) from TEXT to Numbers -- which, of course, I do not know how it is to be done in php! T.T...

No need. the text is just the English description value, the price factor is added to the value in another field.

http://www.zen-cart.com/forum/showthread.php?p=970177#post970177

the last few posts of this thread will show you how to set your products to suppress the quantity box via the catalog.

You will find however, that the attribute set made for quantity has to be plugged into each product with a template, as the price factors don't stay the way they are set unless doing it this way. (correct me if I'm wrong folks)

16 Dec 2010, 7:19 AM
#72
thedjphat avatar

thedjphat

Zen Follower

Join Date:
Nov 2010
Location:
Vancouver, BC
Posts:
108
Plugin Contributions:
0

Re: Flexible Attributes addon support

Please keep your posts about contact lenses directed to the correct thread, I made one for this purpose.

Oh, and THANKS TO YOU! developers and maintainers of the flexible attributes mods, and also to gjh42 personally for all the brain food ;)

16 Dec 2010, 8:05 AM
#73
windchaser avatar

windchaser

New Zenner

Join Date:
Dec 2010
Location:
Home
Posts:
17
Plugin Contributions:
0

Re: Flexible Attributes addon support

thedjphat:

No need. the text is just the English description value, the price factor is added to the value in another field.

http://www.zen-cart.com/forum/showthread.php?p=970177#post970177

the last few posts of this thread will show you how to set your products to suppress the quantity box via the catalog.

You will find however, that the attribute set made for quantity has to be plugged into each product with a template, as the price factors don't stay the way they are set unless doing it this way. (correct me if I'm wrong folks)

Can elaborate more about the term "suppress", please.

I had tried add on the Product Attribute Grd Module after our coversation in the forum last night but not only it didn't produce what I want, it actually made all my attributes line up in one column again!:blink:

Had to revert it back. Lucky I backup the two affecting php files!

Anyway, I also found this morning that what I saw "good" in Maxon Internet Browser (my default browser) is actually not so good in IE!

Had to redo part of my script also. :(

It looks fine now in IE now.

My problem still lies on getting the quanty attributes to add up to the shopping cart quantity total. Will go and see the thread you mentioned. Thanks.

I will however, when everthing is done nicely, going to paste a SOP (Standard Operation Procedure) of how to get this contact lense attributes line up and add up thing onto this thread as well as the other two threads ('two products on in product page' and 'Zen-Cart for contect lenses'), so that others (new comers) will have less pain finding solution for these issues -- a token appreciation for all help given to me in getting this thing done!:smile:

The Wind Chaser --
I lost myself entirely
in the wind...

7 Feb 2011, 8:35 PM
#74
tsrplatelayer avatar

tsrplatelayer

Zen Follower

Join Date:
Oct 2010
Location:
Shropshire
Posts:
177
Plugin Contributions:
0

Re: Flexible Attributes addon support

Just downloaded this for use with 1.3.9h - any chance of a summary of the edits needed for compatability, I spotted a couple reading through the thread and dont want to miss any.

Thanks in advance

7 Feb 2011, 8:54 PM
#75
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Flexible Attributes addon support

Posts 21 and 33 above both refer to the same changed file (/includes/modules/attributes.php), and describe different paths to the same edits to update it. The change is only for PHP5.3 compatibility.

8 Feb 2011, 10:51 AM
#76
tsrplatelayer avatar

tsrplatelayer

Zen Follower

Join Date:
Oct 2010
Location:
Shropshire
Posts:
177
Plugin Contributions:
0

Re: Flexible Attributes addon support

Thanks for that, I don't need the edits as i am on 5.2.9.

I was able to use this add-in to resolve what I consider a bug in the layout when using a 'read-only' attribute - the attribute name and read-only text content are out of horiziontal alignment by about 0.5em.

29 Mar 2011, 11:52 PM
#77
pizza392 avatar

pizza392

New Zenner

Join Date:
Mar 2011
Posts:
76
Plugin Contributions:
0

Re: Flexible Attributes addon support

this mod is so great !!!!!!!!!!

could i add border ? (plese check the image below)

30 Mar 2011, 7:06 AM
#78
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Flexible Attributes addon support

A single border as you show would require that there be one element enclosing those two attributes. That would require a bunch of custom coding and manual settings for attribute ids.

You could make a top/left/bottom border for the 14ky and a top/right/bottom border for the 14kw, and give them both fixed heights so they would match up.

27 Apr 2011, 9:15 PM
#79
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Flexible Attributes addon support

Your image is a little hard to see.. Maybe Glenn can help you without it, but in case he can't see it either suggest using Tiny Pic (tinypic . com) to upload your image and posting the forum image code instead..

BrettBGS:

Hi,

This is a great mod! I'm not sure if this is possible though. Can I move the position of my attribute comments to underneath (and right aligned) with the attribute label?

I've tried using padding, or even relative positioning but that does not allow space for the actual text/comments to be dropped in and can overwrite what is there.

What is the best way to move the comments left and under my attributes? Here's my product page where I need it done:
http://www.thedreamtime.com/store/index.php?main_page=product_info&cPath=65&products_id=182

You can see from this image what I'm trying to achieve (the red text next to each label is how I would like the comments to appear).

Thanks,
-Brett

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

27 Apr 2011, 9:48 PM
#80
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Flexible Attributes addon support

At a glance, it might be possible to get the layout you want from the mod as is, but more likely you would need to change the comment so it appears after the attribute (there is non-functional code for this in the standard attribute file.)
I have to run, but may be able to look at this late tonight or tomorrow.