Jump to content

Topic on User talk:SwiftSys/Flow

PJosepherum (talkcontribs)

Hey, nice integration, however I noticed that MW (1.23.2, anyway) seems to strip out the <i> tags in articles, and renders HTML as plaintext in the sidebar; any tips or prerequisites you are aware of which might get this working? :)

SwiftSys (talkcontribs)

Hi PJ,

can you include a screenshot and which extension are you refferring to?

Cheers :)

PJosepherum (talkcontribs)

There's not really anything to show in a screenshot; I'm talking about FontAwesome. Simply, <i class="fa fa-whatever"></i> gets stripped by the parser in MW 1.23.2 articles, and MediaWiki:Sidebar renders the htmlchars, rather than parsing the markup. Your extension page suggests this should work in Vector, with just the one modification to Vector.php.

SwiftSys (talkcontribs)

Hi, thanks for the heads up, will have to run some tests on the latest version of Mediawiki. Strange that this is the case as I use the same folder layout and structure for BootStrapSkin and there are no problems with it there.

Have you tried looking for faults in the console it maybe that the css isn't located correctly or maybe (and I hope this isn't the case) the files have changed in some way (another developer in my team maintains this and the other css extensions) so that the css isn't pointing at the font files correctly.

I've download the latest version and my suspicions are correct, someone will be getting a bollociking tommorrow lol

Open to edit, FontAwesome.php and change line 17 from;

'styles' => array('font-awesome/css/font-awesome.min.css'),

to

'styles' => array('font-awesome/css/font-awesome.css'),

The minified css file is pointing towards a non-existant file, whereas the unminified css is correct, make the change, refresh the cache and it will work ok.

Will update the corrected file tommorrow.

Again thanks for the heads up, cheers :)

PJosepherum (talkcontribs)
SwiftSys (talkcontribs)
PJosepherum (talkcontribs)

Whaaat, that's bizarre. They work on special pages and the occasional other article. Looking at the source it seems that something is arbitrarily stripping the tags from the output. Perhaps the markup enabling hack is responsible.

I'll consider the bootstrap skin if all else fails aha :)

SwiftSys (talkcontribs)

Can I consider your issues solved?

PJosepherum (talkcontribs)

Hah not as such, but thanks for your help in any case.

PJosepherum (talkcontribs)

Okay, so I reverted the hack I had applied to Vector.php in favour of CSS :nth-child() selectors for our community favicons; I'd still like to use the font-awesome package if possible, but this happens by following the instructions as set out on the extension page.

It would seem that mediawiki will not parse HTML in the navbar, so how could a simple import of the style sheet allow for proper rendering? I'm afraid it simply isn't possible without further hacking to the skin.

SwiftSys (talkcontribs)

Ok cheers for letting me know, will add a note on the download page, it was our first extension, so I might delete it from the extension directory, appols for the inconvenience. I did join your site to take a look but I assume you deleted the code from the sidebar.

Very interesting wiki btw, I've experienced a couple of events as you describe on your pages, though mine where through meditation, two actually, one was very profound and was induced simply by reading a passage from a book by Nisargadatta Maharaj. The other occured while in a very deep state of meditation, and was induced simply by focusing consciousness on itself.

Both experiences where beyond words, but bliss comes the closest. I "practice" (for the want of a better word) Advaita Vedanta.

Reply to "Erm"