Extension talk:Header Tabs/archived

If anyone is interested I have created a slight edit for this extension which creates an edit link for the h1 headers.. thereby letting users edit the main sections without seeing the whole article unnecessarily.. have also improved graphics a bit.. If you want this, leave a note on http://en.wiredtape.com/wiki/User_talk:Bfhappy
 * Can you post a link to example of use? --Sergey Chernyshev 03:56, 6 May 2008 (UTC)
 * Of course :-) Header Tabs Example --Wiredtape
 * Great! Can you send me a patch, I'll include it into main code. I also added a switchtab functionality to the code - it'll be better if we combine the code. --Sergey Chernyshev 17:16, 10 May 2008 (UTC)
 * Of course, where should I send it to? ... --Wiredtape

Problem with Sematic Wiki timelines
Hi there. Excellent extension! I do have a problem though. If you have more than one Sematic Mediawiki's new timeline queries then the first one is rendered fine, but all subsequent ones are not if there is a header tab between the queries. For example: = Project Dates = Required Dates:

= Iteration Dates = Iteration Dates:

The first timeline calendar show up correctly, but the 2nd one is just a grey box. Without the 2nd header tab everything is fine. I guess something is not being closed off.

Any ideas? Thanks! --mitchelln 15:10, 14 May 2008 (UTC)

HeaderTabs for MediaWiki 1.7.1
HeaderTabs does not work with MediaWiki 1.7.1. It works when the following changes are applied to the parser:

--- HeaderTabs.php.orig 2008-05-16 09:53:14.000000000 +0200 +++ HeaderTabs.php     2008-05-16 09:53:55.000000000 +0200 @@ -52,12 +52,12 @@        }         $below = $aboveandbelow[1]; -      $aboveandtext = preg_split('/<\/a> .*? \s*(.*?)\s*<\/span><\/h1>/', $aboveandbelow[0], 2); +      $aboveandtext = preg_split('/<\/a> (.*?)<\/h1>/', $aboveandbelow[0], 2); if (count($aboveandtext) > 1) {                $above = $aboveandtext[0]; -              $parts = preg_split('/^<\/a> .*? \s*(.*?)\s*<\/span><\/h1>/m', $aboveandbelow[0], -1, PREG_SPLIT_DELIM_CAPTURE); +              $parts = preg_split('/^<\/a> (.*?)<\/h1>/m', $aboveandbelow[0], -1, PREG_SPLIT_DELIM_CAPTURE); array_shift($parts); // don't need above part anyway $tabs = array;

Attention: It's important to use the magic word   for correct rendering of the tabs!

Problem with non-Monobook Skins
The Header tab extension breaks when I use it with some alternate skins (for example the Cavendish skin: http://wiki.mozilla.org/WikiUpgrade). The Tabs display correctly, but clicking the tabs does not work. Does anyone know how to fix this?

Whatlinkshere on tab
Hi, Great extension, thanks. How to add Whatlinkshere on the tab?

Extension to switchtablink functionality
Would it be possible to extend the functionality of switchtablink so you could jump to a specific tab on another article page? Thanks. --mitchelln 16:40, 5 June 2008 (UTC)

accessibility without javascript
Hello, the tabs arenot accessible for googlebots: is there a way to make a patch to see all the content if js is not activated. thak you --82.225.178.163 16:23, 7 June 2008 (UTC)

Cann't be used in a intranet
This extension cann't be used in a intranet.--Roc michael 13:43, 10 June 2008 (UTC)
 * Can you be more specific? --Mitchelln 16:33, 12 June 2008 (UTC)
 * I installed this extension to a wiki in the intranet(the intranet is isolated with other net). This extension cannot work.--Roc michael 21:36, 12 June 2008 (UTC)
 * I'm not sure, what exactly isn't working, but it might be the YUI libraries, which are located at a yahoo server. If your intranet is isolated from the internet/WWW, the extension cannot display the page properly since it needs those libraries. A solution is to download those libraries, extract them on your local intranet server and change the respective parameter as shown on the HeaderTabs page. -- MAF 12:51, 14 June 2008 (UTC)
 * Hi MAF.
 * Thank you and please see the following:

Download YUI libraries

 * Download the entire library from the YUI homepage.
 * Extract them on your local intranet server. For example /www/yourwiki/
 * Extract them on your local intranet server. For example /www/yourwiki/

Edit HeaderTabs.php

 * Change the code
 * with

--Roc michael 23:59, 14 June 2008 (UTC)