Sorry if the post title seems like a "how to", but it'll make for a good search (hopefully) once this gets answered and maybe it will be a "how to" in the end. For now, it's a technical question.
I have written a plug-in tab that I would like to seamlessly integrate into the "right-middle" section of the CB profile. That section uses Joomla's alternating sectiontableentry1/2 styles.
I found the use of the global variable $_CB_OneTwoRowsStyleToggle in comprofiler.class.php, which sure seemed at first to be the ticket to picking up where the color alternating left off. But alas, it always seems to give my plug-in the value 1. I believe it should alternate between 1 and 2 during the processing of user-defined fields, and had hoped my code would either get the next value or the last one.
Perhaps I am using it wrong. Or, perhaps it's not yet possible for the first row of my plug-in tab to be the opposite of the one adjacent to it, no matter what. That's what I am trying to find out. Can it be done? If so, how?
Thanks for the code snippet, but it's not the logic I am after. It's the previous (presumably global) variable value I need so I can pick up where the CB field processing left off. That very logic is also in comprofiler.class.php in their updating of that global variable I mentioned. But as I indicated, every time my plug-in gets called, that variable contains the value 1.