Jump to content

Extension talk:HidePrefix/Flow

About this board

Prefixes not hidden after installation

1
62.214.160.175 (talkcontribs)

Hey,

I'm managing a wiki for a customer who has requested the prefixes to be hidden. I've installed the Extension and it is shown as being installed, however the prefixes are still being shown.

Version: 1.42.1

What needs to be done to resolve this issue?

Cheers, P

Reply to "Prefixes not hidden after installation"

Not yet working with MediaWiki 1.39?

7
Totina (talkcontribs)

Dear Van de Bugger,

is it possible that this extension is not (yet?) working with MediaWiki 1.39.0? I've tried the following:

- upgraded an existing MediaWiki installation from 1.35.8 to 1.39.0 and re-installed the appropriate version of HidePrefix => not working but also no visible errors

- quickly installed a blank MediaWiki 1.39.0 with HidePrefix only (eventually also the older versions of it as well as the latest master from Git) => not working but also no visible errors

- quickly installed a blank MediaWiki 1.35.8 with the appropriate older version of HidePrefix => working!


I assume I'm too early...


Thomas

Derf Jagged (talkcontribs)

I am running into the same issue.

76.168.138.101 (talkcontribs)

Swap the center portion to


$title = Title::newFromText( $html );

$targetTitle = Title::newFromLinkTarget( $target );

if ( $title !== null && $targetTitle && $title->getPrefixedText() == $targetTitle->getPrefixedText() ) {

$text = $target->getText();

}

76.168.138.101 (talkcontribs)

Can then remove most of the other checks

76.168.138.101 (talkcontribs)

Sorry.... this


public static function onHtmlPageLinkRendererBegin(LinkRenderer $linkRenderer, LinkTarget $target,

&$text, &$extraAttribs, &$query, &$ret) {

if ( ! isset( $text ) ) {

$text = $target->getText();

return true;

}

$html = HtmlArmor::getHtml( $text );

title = Title::newFromText( $html );

$targetTitle = Title::newFromLinkTarget( $target );

if ( $title !== null && $targetTitle && $title->getPrefixedText() == $targetTitle->getPrefixedText() ) {

$text = $target->getText();

}

return true;

}

76.168.138.101 (talkcontribs)

The problem is that most of the link text lately comes as HtmlArmor

Celess22 (talkcontribs)

Sorry i wasn't logged in. Any questions please let me know

Reply to "Not yet working with MediaWiki 1.39?"

Bug: Capitalizes The First Letter of link text

1
EvilPastaSalad (talkcontribs)

Unfortunately, a bug nobody told me about. This extension has the unfortunate side-effect of causing the first letter of the link display text on every link to be capitalized when only the title of the page is used as a link and when the link isn't piped whether or not you typed the first letter of the page title as a large or small letter within the link; where otherwise MediaWiki would let you use a minuscule character for the first character of the page title name within the brackets. As a result, unless I want to do a manual piping on every single link, I now end up with links to pages that aren't proper names and shouldn't be capitalized... displaying as capitalized. It's very awkward.


This is unfortunate, as this makes the wiki looks just about as ugly as it would have been with CategoryName: in the page title prefix. Very unfortunate. Looking for an alternative. Feel free to suggest alternatives.

Reply to "Bug: Capitalizes The First Letter of link text"

Anchor links are not working any more

1
Lucd (talkcontribs)

When enabling this plugin, links to an anchor are disappearing.

For example if a link is defined as: [[#See here]], it will not be displayed at all (instead of #See here).

I am using using mediawiki 1.27.1 and HidePrefix plugin version (a26af83) (ie master branch on 16th november 2016).

Reply to "Anchor links are not working any more"
82.132.228.222 (talkcontribs)

Will this extension affected alphabetical lists, such as Category pages? Or will the items still appear as if the namespace were there?

(M) User:John/My blog (N) Never Ending Story

Or

(N) Never Ending Story (U) User:Johm/My blog

Reply to "A to Z"

Page tab uses Namespace, not title

1
202.134.232.22 (talkcontribs)

The tab for the namespaced page has the namespace in it rather than the page title.

Eg, "HR:Code of Conduct" has page title "Code of Conduct", and appears this way everywhere except the tab on the page -- which says "HR".

Reply to "Page tab uses Namespace, not title"

HidePrefix not working with PHP 5.2

3
Cheeyang (talkcontribs)

HidePrefix use __DIR__ that is not support in PHP 5.2.

12.2.142.13 (talkcontribs)

had the same problem. Added this line before the entry point if statement:

if( !defined( __DIR__ ) )define( __DIR__, dirname( __FILE__ ) );

that fixed it.

Van de Bugger (talkcontribs)

Fixed in the last version, should work with PHP 5.2 now.

Reply to "HidePrefix not working with PHP 5.2"

Works with 1.19.1 and PHP 5.3

1
217.30.88.7 (talkcontribs)

Thanks, this is a very helpful extension!

Reply to "Works with 1.19.1 and PHP 5.3"

Works perfect on old 1.16.x

1
Planetenxin (talkcontribs)

So far, I had no issues with MW 1.16.x

Reply to "Works perfect on old 1.16.x"
There are no older topics