alexp999 |
08-15-2010 09:22 AM |
Firstly I launched opera (as I find it really handy for debugging) and saw that the "Extra Tab" was having a class of "block" applied to it for the outermost div. All the other tabs were being given a class of "view-section". I changed the class to "view-section" and hit apply, low and behold it fixed it!
Now I had to find a way of having that code applied, not just modifying the incoming source for me locally.
I looked through the XML, and compared to as many other plugins I could find which also added a tab to the profile. (one being downloadsII) and I found that they were all specifying their own outer div, to set the class as "view-section"). So I tried changing the template in your xml, (as shown in the first find and replace in my fix). But that alone, just caused nothing to appear in the tab at all.
I found the vbulletin was adding the outermost div itself, outside the template you specify in the plugin. I looked a bit more and found that the other plugins using tabs, were telling vbulletin not to wrap the html output. So I added the line "'wrap' => false". Which stops vbulletin putting the outer most div on, therefore using the template, and having a class of "view-section".
Hope that makes sense, gets a bit complicated trying to explain things like this, lol.
|