Extension talk:Header Tabs

From MediaWiki.org
Jump to: navigation, search

Old messages from this page are archived.

First page
First page
Previous page
Previous page
Last page
Last page

HT 0.9.2 + MW 1.20.0 => only numbers in tabs

When the auto-number headings option is checked in the preferences, HT displays only numbers in the tabs, not the header titles.

Megajoule (talk)19:58, 13 November 2012

Fixed in HeaderTabs_body.jq.php

  • line 153 :
$tabtitle = $matches[2];
  • line 208 :
'title' => str_replace( '_', ' ', $tabtitle ),
Megajoule (talk)16:27, 12 April 2013
 

Edit links not enumerating correctly (and TOC contents repeating)

I've noticed an issue where the Edit links are not enumerating correctly when the page first loads. The first tab is defaulting to edit the entire page instead of just that section. If you select another tab and then return the the first tab the edit link is correct.

The extension seems to assume there aren't any headers above the first level header. If there are it causes the edit links to link to the wrong sections; however, this only occurs on the edit links for the tabs themselves. The links for sections inside each tab enumerate correctly.

Also, if $htGenerateTabTocs is set to true, the TOC headings are being repeating twice. Up until the 2nd 2nd level header is hit within that tab.

This is on MW 1.18.1 and HT 0.9.2

Rosencrantz (talk)20:29, 2 October 2012

I have noticed this as well. Has anyone found a resolution to this problem?

When I click the edit button for one specific page, I get: https://mywiki.mysite.com/index.php?title=Main_Page&action=edit&section=69
The actual section is not 69 but 11. When I replace the 69 with 11, I am able to edit the page.

Do I need to manually go into the code and change that or is there a way to correct it otherwise?

68.178.13.18115:40, 10 April 2013
 

switchtablink parser function doesn't seem to be working in mediawiki 1.18.1

I noticed the switchtablink parser function wasn't working properly. Clicking the link doesn't go anywhere. You can see the problem here when you try to click on "Add Media" and then try to click on "Back to Basic Information" at the bottom: http://thisishowyouplay.com/wiki/Form:Add_an_activity Thank you. Chrisisready 06:30, 13 February 2012 (UTC)

Chrisisready06:30, 13 February 2012

Forgive me if this has been answered elsewhere, but i cannot get '#switchtablink' working either. I can see that the target URL refreshes in the browsers address bar but the page will not refresh to the correct tab. Has anybody got a solution?

Rizzle (talk)12:19, 28 February 2012

Even with the update just released, it's still broken. Perhaps you can leave a message on the mailing list that is listed above.

66.25.161.1723:15, 10 March 2012

I, too, confirm that this issue exists in my own installation. I have pinged the mailing list twice, to no avail. Has anyone else encountered and resolved this issue?

Yojimbo (talk)19:12, 20 April 2012

Just confirming MW1.19beta2 has the same issue.

The developer seems to float back through this talk page from time to time, I imagine the HeaderTabs team is aware and finding time to work on a solution.

Teststudent (talk)03:02, 23 April 2012

Sorry for the very long delay - this is now finally fixed in the new version, 0.9.2!

Yaron Koren (talk)22:25, 24 April 2012
 
 
 
 

Hi,

Any workaround on this issue yet?

Thanks

Jwong08 (talk)01:57, 21 March 2013
 

Exception with MW 1.19.x

The following error appears: "mw.loader::execute> Exception thrown by ext.headertabs: rules[r].selectorText is undefined" However the tabs are still working fine and there is not visual evidence with this version. Cheers

[[kgh]] (talk)23:36, 3 December 2012

Now I have the situation on another wiki where the tabs do not work whilst this error is stated by the browser. I case anyone knows the trick I will be happy to learn about it.

[[kgh]] (talk)14:26, 15 January 2013
 

I found the problem which was causing this. I used HeaderTabs within a form also allowing for multiple inputs. If I specify the "label=" option within in the "for template" tag it will brake, e.g. {{{for template|News item|label=Edit or add news item}}}. As soon as I remove the label like {{{for template|News item}}} everything is fluffy again. The question is whether Header Tabs or Semantic Forms will have to fix the issue and if it important enough to have a fix for this at all.

[[kgh]] (talk)14:35, 15 January 2013

FWIW, my error console - an add-on for Firefox - also warns me about a problematic line when I'm visiting a regular page: TypeError: rules[r].selectorText is undefined with a reference to line 36 of .../HeaderTabs/skins-jquery/ext.headertabs.core.js: if(rules[r].selectorText.toLowerCase()==".unselected"){ //find ".unselected" rule

Looks like the same thing happening here.

Cavila (MW 1.19.2, MySQL 5.1.66, Php 5.3.3-7, SMW 1.8, SF 1.5.2}14:03, 5 March 2013
 
 

__NOEDITSECTION__ not working ?

Hi, i want to use , but there are still the "edit-links" and this looks not pretty. Is it possible to use with HeaderTabs ?

thx

hollosch (talk)13:34, 26 June 2012

Probably you forgot to set $htEditTabLink = false; in your LocalSettings.php Cheers

[[kgh]] (talk)13:57, 26 June 2012

Thanks, i probably forgot it ;-)

hollosch (talk)14:02, 26 June 2012

$htEditTabLink = false; does not seem to be working.

Dgennaro18:17, 25 February 2013

I just tried this successfully on an 1.19.3 install. In case there is a problem with this parameter it must be on 1.20.x earliest.

[[kgh]] (talk)22:00, 27 February 2013

we are using 1.18.5. I will upgrade to 1.19.x. Thanks.

Dgennaro19:26, 4 March 2013
 
 
 
 
 

[Req.] Multiple tab groups per page

I propose developing a function where a </headertabs> call followed by <headertabs> call generates a line break and a new set of headertabs. Potentially a different color too.

Teststudent01:11, 25 January 2012

That would be interesting. It could probably be implemented using the jQuery BBQ plugin. http://benalman.com/code/projects/jquery-bbq/examples/fragment-advanced/

CJGarner (talk)01:38, 25 September 2012
 

I agree. This would be a great feature. Magick93 (talk)

Magick93 (talk)21:31, 10 February 2013
 

removal as author

Hello, I wrote version 0.9 of HeaderTabs. Sadly I have not been able to put time to supporting my MediaWiki endeavours as planned for the last few years, so I don't really feel justified in being listed in the credits as an author. Feel free to remove me in the next release. Thanks for the continued support of this extension, it's fantastic.

Olivier Beaton (talk)19:19, 9 January 2013

Heiya Olivier, it's sad to read that you have withdrawn form developing this extension. However you have added cool features to it. This is the also the reason why I believe that you should still be listed as a contributor in the credits. Probably you would like to avoid being asked for support. I think there must be another way to convey this. Anyway, thank you again for your work! Cheers

[[kgh]] (talk)14:22, 15 January 2013
 

Vertical Tabs?

Does anyone know of a way to place the tabs at the side of the box, stacked vertically, instead of across the top?

88.235.253.24322:23, 5 January 2013

I am afraid that this is not possible with this extension.

[[kgh]] (talk)02:31, 6 January 2013
 

Can't change style from default

I have installed Header Tabs and it is working but appears to be using the jquery style. I do not like the small text and black links so tried changing to jquery-large by setting $htStyle in LocalSettings.php. This appears to be ignored although on examining the rendered page source I can see that a link to jquery-large.css appears or disappears according to what I set in LocalSetting. Likewise if I select the bare style. The paths to the css files appear to be correct.

I note that the html source starts with class="client-nojs". Also the paths to the css files start with /mediawiki i.e. not a full url.

I have MW 1.19.0 installed less than a month ago. Very few changes, about half a dozen extensions added. Header Tabs is 0.9.2, downloaded yesterday.

Does anyone know where the problem might be or what I might do to debug this.

Greynose (talk)11:52, 4 January 2013

Doesn't work on MW 1.20.2 with IE, Firefox, and Safari

After upgrading a wiki from MW 1.19.2 to MW 1.20.2, HeaderTabs does not work in IE or Firefox. The title of the first tab is displayed as a bullet followed by the contents of the first tab. Subsequent tabs are not displayed. IE reports the following problem:

SCRIPT438: Object doesn't support property or method 'tabs' 
ext.headertabs.core.js, line 24 character 1

The line of code at that location is:

var $tabs = $("#headertabs").tabs();

Firefox does not report an error in Firebug but has the same erroneous behavior.

Cindy.cicalese (talk)22:33, 14 December 2012

This turned out to be a misconfiguration that was preventing the jQuery JavaScript resources from being found. It is now working correctly.

Cindy.cicalese (talk)05:00, 15 December 2012

If you could elaborate on the fix, would be greatly appreciated. We've found the same issue when upgrading just from 1.19 to 1.20.2

Our issue appears to be with the CSS, it's not loading the class names properly for the headertabs div and subsequent ul/li.

Teststudent (talk)07:41, 28 December 2012
 
 

Issues Header Tab & W4G Rating Bar when both used on 1 page

It looks like Header Tab creates a conflict with the page rating extension "W4G Rating Bar" (http://www.mediawiki.org/wiki/Extension:W4G_Rating_Bar). When only using the W4G Rating Bar, you get a nice bar on which you can vote (see also e.g. http://csdms.colorado.edu/wiki/Temp6). However, when using both Header Tab and W4G Rating Bar on one page, the rating bar gives an error: "You need to enable JavaScript to vote" (see: http://csdms.colorado.edu/wiki/Temp7). Any idea how to fix this? Otherwise maybe "W4G Rating Bar" should be also mentioned under the software list that has issues with HeaderTab.

Thanks! Mediawiki 1.20.2 Mysql 5.5.25 Headertab 0.9.2 W4G Rating Bar 2.1.1 and many more (http://csdms.colorado.edu/wiki/Special:Version)

128.138.77.4121:35, 27 December 2012

Table of Contents (TabTocs) are showing twice the name of the header and doesn.t link

When using TabTocs the Table of Content in a tab is showing the name of the header twice (!) and it doesn't link to the chapter. I'm using MediaWiki 1.18 and the Vector Skin

BertvanderHooft (talk)11:16, 23 May 2012

I'll confirm this, with a slight addition: 2nd level headers work fine, but any links in the tabTOC pointed at headers 3 and lower are broken and the link name posts the header text twice. (MW1.19, Vector) --Teststudent (talk) 22:11, 29 May 2012 (UTC)

Teststudent (talk)22:11, 29 May 2012

This problem still exist... Is there any solution already?

192.109.216.14813:56, 19 December 2012
 
 

Doesn't work on MW1.20 with Firefox and Chrome

Tabs don't show up in Firefox or Chrome - Browser with MW 1.20. Only Internetexplorer works...

Is it possible to fix this ?

hollosch (talk)18:56, 24 November 2012

HeaderTabs + MW 1.19.2 / 2

Hmm ... I just upgraded my wiki to 1.19.2 and realise something strange. When testing HT on scratchy everything works as expected, even if I use <headertabs />. This one is on 1.19.2, too. However, on my wiki I get the following error message when using <headertabs />: "mw.loader::execute> Exception thrown by ext.headertabs: rules[r].selectorText is undefined load.php (line 148)". It works with <headertabs/> though but I would like to avoid having to change this on heaps of pages.

This warning my be related: "[error] PHP Warning: array_map(): An error occurred while invoking the map callback in /.../includes/resourceloader/ResourceLoaderFileModule.php on line 589"

[[kgh]] (talk)00:18, 20 October 2012

Hi, it is miraculously working now. Sometimes a good night's sleep helps solving problems. :)

[[kgh]] (talk)09:35, 20 October 2012
 

HeaderTabs + MW 1.19.2

Having upgraded the site to MW 1.19.2, I found that HT 0.9.2 stopped working. All I get is a bulleted link to the first tab, with the content underneath, but the other tabs and their content are omitted. Do we have a new bug here?

Cavila MW 1.17, MySQL 5.5.23, Php 5.3.10, SMW 1.7.114:28, 16 October 2012
Edited by author.
Last edit: 23:07, 16 October 2012

Hmm..., something else must be wrong. I just tested HT 0.9.2 and MW 1.19.2 on scratchy. This appears to be working.

[[kgh]] (talk)21:36, 16 October 2012

Thanks for testing. It's apparently a conflict with Extension:FancyBoxThumbs, so yet another extension that proves to be incompatible with HT.

Cavila MW 1.19.2, MySQL 5.1.63, Php 5.3.3-7, SMW 1.7.122:59, 16 October 2012

Ouch. :( This info should perhaps be added to the "Known issues" section of both extensions.

[[kgh]] (talk)23:07, 16 October 2012

Done. I'm now using Extension:SlimboxThumbs, which (apart from one minor issue) seems to work just fine.

Cavila MW 1.19.2, MySQL 5.1.63, Php 5.3.3-7, SMW 1.7.112:46, 17 October 2012
 
 
 
 

HeaderTabs and AddThis compatibilities

We are developing WikiDeb (www.wikideb.org) and we use Addthis et HeaderTabs extensions intensively. When AddTHis extension is install, Header Tabs extension shows only the first Tab. All the others tabs are inaccessible.

Pascal Beaujeant

130.104.118.7513:02, 31 August 2012

I found with the help of others (see AddThis discussion) an alternative by using "Add to Any" extension.

80.201.40.9914:39, 13 October 2012
 

[HT] 0.9 + MW 1.18 throws exception on "mw.loader::execute > Cannot call method 'toLowerCase' of undefined"

Recent HT (0.9) throws an "mw.loader::execute> Exception thrown by ext.headertabs: Cannot call method 'toLowerCase' of undefined".

MWJames12:43, 30 January 2012

I've got the same issue on HT 0.9.2 and MW 1.18.1. It only show up on pages without HeaderTabs though.

Rosencrantz (talk)20:19, 2 October 2012

Fix has been provided. See https://gerrit.wikimedia.org/r/#/c/25768/

MWJames (talk)22:51, 2 October 2012
 
 

Removing Edit with form tab

I am trying to remove the "Edit with form" tab. I have been successful on pages without HeaderTabs in use.

Is there something I can do to remove the "Edit with form" tab while using HeaderTabs extension?

Thanks

Amblerllc (talk)15:39, 5 September 2012

Sounds like you're using Semantic Forms on your site, but "edit", "edit with form" and other such tabs in the page menu have nothing to do with HeaderTabs (which are found on the page).

Cavila MW 1.17, MySQL 5.5.23, Php 5.3.10, SMW 1.7.112:13, 6 September 2012

In order to remove the tab "edit with form" you have to remove the text [[Has defaut form::TheNameofYourForm]] in the category page. a+

Nicolas NALLET (talk)09:17, 7 September 2012
 
 

Table of contents

Could we get a table of contents generated for a tab? It seems a bit trivial to just break up the TOC onto the respective tabs. Some of our tabs are quiete lengthy and we'd like to still be able to use a TOC just for each tab.

As well is there much thought into making some kind of auto-tab through subpages using say a prefix?

Olivier Beaton18:18, 3 November 2011

I wouldn't say the first one is trivial - it would require some significant string parsing and manipulation. Still, it's an interesting idea.

The second one, I didn't understand.

Yaron Koren12:46, 4 November 2011

The 2nd idea is that if I create a subpage of "Bar", say "Bar/tab-Foo" then "Foo" automatically appears as a tab on Bar. While on "tab-Foo" since it has a the "tab-" prefix it would look for sub-pages on it's parent instead of itself, so that you still have the list of tabs.

Another thing I was wondering is if instead of using JQuery tabs there could be an option to integrate into the Vector/MW tab system. That way it's all unified at the top, instead of having tabs -> header -> more tabs.

Personally I'm using Extension:HeadersFooters right now to insert a =General= before every article and a <headertabs/> into the footer of every page. That way people can just make new = = headings and poof new tab.

Is there a reason it overwrites all the default styles for font size and such?

Olivier Beaton13:03, 4 November 2011

Ah. To answer your original question, no, I don't believe there's been any thought put into that.

The vector/MW thing is interesting - if it can be done across all skins, it's definitely worth looking into.

Yaron Koren19:28, 4 November 2011
 

I am using the <headertabs/> at the end of a page to generate three tabs with the use of == HEADER ==.

I would like to create just a table of contents for a FAQ on just a single one of the tabs. I know that it is possible to disable either enable or disable table of contents for headertabs by editing the LocalSettings.php file (https://www.mediawiki.org/wiki/Extension:Header_Tabs), but I only want to enable it for a single one.

193.163.248.3008:52, 15 August 2012
 
 
 

how can I change the color of the tabs?

which are the CSS-classes for the headertabs and how can I change the colour of the headertabs (highlighted and disabled) im MediaWiki:Common.css? Kappa (talk) 15:32, 21 February 2012 (UTC)

Kappa (talk)15:32, 21 February 2012

Please see: ext.headertabs.bare.css at skins-jquery directory. Also, one useful way is to use for example chrome browser (or Firebug) and selecting inspect element by right clicking in top of element. -KSt

85.156.49.25309:12, 17 July 2012

The core of the jqueryUI tabs styling is located at

$IP/resources/jquery.ui/themes/vector/jquery.ui.theme.css

underneath the Interaction States 'header.'

Keep in mind this folder will by default be written over upon mediawiki software update, so back up any confs you changed in there beforehand.

Teststudent (talk)04:11, 18 July 2012
 
 
First page
First page
Previous page
Previous page
Last page
Last page