(→Z-index problems with the edit dropdown: new section) |
No edit summary |
||
Line 33: | Line 33: | ||
Currently the user icons' increasing z-index makes them render on top of the edit dropdown menu on articles. I've managed to fix it by adding <code>#WikiaRailWrapper { z-index: 1; }</code> to our css; this might be something good for you guys to add? I also want to say that this is a really nice script; we love how nicely it integrates in the rail. [[User:AshhawkBurning|AshhawkBurning]] ([[User talk:AshhawkBurning|talk]]) 20:04, June 24, 2019 (UTC) |
Currently the user icons' increasing z-index makes them render on top of the edit dropdown menu on articles. I've managed to fix it by adding <code>#WikiaRailWrapper { z-index: 1; }</code> to our css; this might be something good for you guys to add? I also want to say that this is a really nice script; we love how nicely it integrates in the rail. [[User:AshhawkBurning|AshhawkBurning]] ([[User talk:AshhawkBurning|talk]]) 20:04, June 24, 2019 (UTC) |
||
+ | |||
+ | == A couple of problems == |
||
+ | Alright, so this is a decent script that makes the Discord widget look more compact and for those who don't want Special:Chat anymore, but I would like to report a couple of problems: |
||
+ | * When I try to input <code>?uselang=qqx</code> in the URL address bar, everything on the page normally indicates their MediaWiki message except the ones in this script, like Live-chat-2 for the chat heading and Chat-join-the-chat for the join chat button. |
||
+ | * When I click the avatar of a Discord user, it normally outputs a dialog of their avatar and Discord name, but the problem in that is the number tag, which is always displaying <code>#0000</code>, so I hope that gets fixed too. <span style="font-family:rubik"><span style="border-radius:4px;background:#098765;padding:4px;color:white">~Signed JustLeafy ( ͡| ͜' ͡| )</span> <span style="border-radius:4px;background:#098765;padding:4px">[[User:JustLeafy|<span style="color: #fff;text-decoration:underline">USER</span>]] <span style="color: #fff;">-</span> [[User talk:JustLeafy|<span style="color: #fff; text-decoration:underline">WALL</span>]]</span> <span class="nounderlinelink" title="UTC+2" style="border-radius:4px;background:#098765;padding:4px;color:#fff">17:11, May 03, 2020 (UTC)</span></span> |
Revision as of 17:11, 3 May 2020
Suggestion
I believe that this one is the best of all Discord modules published on Dev Wiki :) The only thing I would change if I were able is that icon, which as I see it should be replaced by a classical FANDOM chat svg. ~Mustafar29 User page • User talk 23:50, June 28, 2018 (UTC)
- I'll leave the customization up to the user. Here are some modifications you might want to try out:
/* Replace the Discord icon with FANDOM's speech bubble */
mw.hook('DiscordChat.added').add(function() {
$('.DiscordChat .has-icon svg').remove();
$('<svg width="18" height="18" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" id="reply"><path d="M12 2c6.066 0 11 4.078 11 9.09 0 5.014-4.934 9.092-11 9.092-.919 0-1.843-.098-2.753-.292L4.09 21.935a.922.922 0 0 1-.895-.12.907.907 0 0 1-.356-.824l.483-4.313C1.822 15.088 1 13.118 1 11.091 1 6.078 5.934 2 12 2" fill="#3a3a3a" fill-opacity="0.75" fill-rule="evenodd"/></svg>').prependTo('.DiscordChat .has-icon');
});
/* Remove the icon completely */
mw.hook('DiscordChat.added').add(function() {
$('.DiscordChat .has-icon svg').remove();
$('.DiscordChat .has-icon').removeClass('has-icon');
});
- DuckeyD 10:21, June 29, 2018 (UTC)
- EDIT: But the code doesn't seem to work the way it should on that wiki.
Module as a tag
I'd be glad if it were made possible to add a kind of chat module with a tag to an article's content. Main pages can be the best exaple. For now, my wiki need use two independent scripts (with having to import them both), even though we could use one, if such a change were made. ~Mustafar29 User page • User talk 11:42, August 25, 2018 (UTC)
JSRT
This script inserts itself above the JSRT rail module, could that please be changed? --Sharkie 01:34, February 13, 2019 (UTC)
Z-index problems with the edit dropdown
Currently the user icons' increasing z-index makes them render on top of the edit dropdown menu on articles. I've managed to fix it by adding #WikiaRailWrapper { z-index: 1; }
to our css; this might be something good for you guys to add? I also want to say that this is a really nice script; we love how nicely it integrates in the rail. AshhawkBurning (talk) 20:04, June 24, 2019 (UTC)
A couple of problems
Alright, so this is a decent script that makes the Discord widget look more compact and for those who don't want Special:Chat anymore, but I would like to report a couple of problems:
- When I try to input
?uselang=qqx
in the URL address bar, everything on the page normally indicates their MediaWiki message except the ones in this script, like Live-chat-2 for the chat heading and Chat-join-the-chat for the join chat button. - When I click the avatar of a Discord user, it normally outputs a dialog of their avatar and Discord name, but the problem in that is the number tag, which is always displaying
#0000
, so I hope that gets fixed too. ~Signed JustLeafy ( ͡| ͜' ͡| ) USER - WALL 17:11, May 03, 2020 (UTC)