2016-12-28

← Older revision

Revision as of 08:01, December 28, 2016

(One intermediate revision by one user not shown)

Line 10:

Line 10:

#I'm not too sure what you mean by this… Do you mean, to show a user's status on a page other than that user's own page?

#I'm not too sure what you mean by this… Do you mean, to show a user's status on a page other than that user's own page?

#Sorry to say, this wouldn't be possible/practical. You'd have to either look up the user's recent contributions individually for every wiki on Wikia, or have the <code>lookupcontribs</code> permission (i.e. be a member of either vstf/staff/helper groups).

#Sorry to say, this wouldn't be possible/practical. You'd have to either look up the user's recent contributions individually for every wiki on Wikia, or have the <code>lookupcontribs</code> permission (i.e. be a member of either vstf/staff/helper groups).



: - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>
(
[[User talk:OneTwoThreeFall|talk]]
)
</sup> 02:27, March 14, 2016 (UTC)

+

: - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>[[User talk:OneTwoThreeFall|talk]]</sup> 02:27, March 14, 2016 (UTC)

::I mean create custom status tags that would be used such as <nowiki><status>USERNAME</status></nowiki> and would in turn replace the text with offline or online or whatever the status is. This would require that for each use, the API would be used, but I don't see a reason for pages to use status tags more than once and so this could be possible for reasonable wikis.<br />[[User:Curiouscrab/signed|<span style="color:#000000; text-decoration:none !important;">~</span>]][[User:Curiouscrab|Curiouscrab]] ([[User talk:Curiouscrab|talk]]) 22:02, March 14, 2016 (UTC)

::I mean create custom status tags that would be used such as <nowiki><status>USERNAME</status></nowiki> and would in turn replace the text with offline or online or whatever the status is. This would require that for each use, the API would be used, but I don't see a reason for pages to use status tags more than once and so this could be possible for reasonable wikis.<br />[[User:Curiouscrab/signed|<span style="color:#000000; text-decoration:none !important;">~</span>]][[User:Curiouscrab|Curiouscrab]] ([[User talk:Curiouscrab|talk]]) 22:02, March 14, 2016 (UTC)



:::Ah, I see... a little refactoring, and done! You can use <code><nowiki><span data-user-status="USERNAME">placeholder text</span></nowiki></code> to get USERNAME's status on any page. By the way, might be a good idea for you to get a doc page up for the script. - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>
(
[[User talk:OneTwoThreeFall|talk]]
)
</sup> 13:22, March 18, 2016 (UTC)

+

:::Ah, I see... a little refactoring, and done! You can use <code><nowiki><span data-user-status="USERNAME">placeholder text</span></nowiki></code> to get USERNAME's status on any page. By the way, might be a good idea for you to get a doc page up for the script. - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>[[User talk:OneTwoThreeFall|talk]]</sup> 13:22, March 18, 2016 (UTC)

::::Thanks. I was going to work on the doc page soon. I was trying to set up a new way that the script and doc are displayed in my common.js.<br />[[User:Curiouscrab/signed|<span style="color:#000000; text-decoration:none !important;">~</span>]][[User:Curiouscrab|Curiouscrab]] ([[User talk:Curiouscrab|talk]]) 20:50, March 18, 2016 (UTC)

::::Thanks. I was going to work on the doc page soon. I was trying to set up a new way that the script and doc are displayed in my common.js.<br />[[User:Curiouscrab/signed|<span style="color:#000000; text-decoration:none !important;">~</span>]][[User:Curiouscrab|Curiouscrab]] ([[User talk:Curiouscrab|talk]]) 20:50, March 18, 2016 (UTC)

Line 22:

Line 22:

Log events aren't considered contributions with Mediawiki API. Can you incorporate log events into the Status script? The API has them accessible by <code>/api.php?action=query&list=logevents&user=USERNAME&leend=TIMESTAMP&format=json</code><br />[[User:Curiouscrab/signed|<span style="color:#000000; text-decoration:none !important;">~</span>]][[User:Curiouscrab|Curiouscrab]] ([[User talk:Curiouscrab|talk]]) 23:49, March 20, 2016 (UTC)

Log events aren't considered contributions with Mediawiki API. Can you incorporate log events into the Status script? The API has them accessible by <code>/api.php?action=query&list=logevents&user=USERNAME&leend=TIMESTAMP&format=json</code><br />[[User:Curiouscrab/signed|<span style="color:#000000; text-decoration:none !important;">~</span>]][[User:Curiouscrab|Curiouscrab]] ([[User talk:Curiouscrab|talk]]) 23:49, March 20, 2016 (UTC)



:That should be fairly easy - just add it to the current API call. Have you had a go at it yourself, though? Don't wanna do all the work for you! - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>
(
[[User talk:OneTwoThreeFall|talk]]
)
</sup> 13:43, March 23, 2016 (UTC)

+

:That should be fairly easy - just add it to the current API call. Have you had a go at it yourself, though? Don't wanna do all the work for you! - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>[[User talk:OneTwoThreeFall|talk]]</sup> 13:43, March 23, 2016 (UTC)

::I haven't had too much experience with get and post requests yet. I'm still learning the tricks with jQuery.<br />[[User:Curiouscrab/signed|<span style="color:#000000; text-decoration:none !important;">~</span>]][[User:Curiouscrab|Curiouscrab]] ([[User talk:Curiouscrab|talk]]) 21:13, March 23, 2016 (UTC)

::I haven't had too much experience with get and post requests yet. I'm still learning the tricks with jQuery.<br />[[User:Curiouscrab/signed|<span style="color:#000000; text-decoration:none !important;">~</span>]][[User:Curiouscrab|Curiouscrab]] ([[User talk:Curiouscrab|talk]]) 21:13, March 23, 2016 (UTC)



:::Fair enough, done! logevents doesn't seem to like IP addresses, however, so the script now checks for, and won't run on, anon user pages. - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>
(
[[User talk:OneTwoThreeFall|talk]]
)
</sup> 09:24, March 24, 2016 (UTC)

+

:::Fair enough, done! logevents doesn't seem to like IP addresses, however, so the script now checks for, and won't run on, anon user pages. - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>[[User talk:OneTwoThreeFall|talk]]</sup> 09:24, March 24, 2016 (UTC)

== [[ChatSendButton|ChatSend]] ==

== [[ChatSendButton|ChatSend]] ==

Line 32:

Line 32:

Hello, I was wondering if there was a way to change the alignment for the send button that way it will align with the other chat hacks better http://i.imgur.com/dp7wbtL.png [[User:Roranoa_Drake_II|Roranoa Drake II]] ([[User_talk:Roranoa_Drake_II|talk]])

Hello, I was wondering if there was a way to change the alignment for the send button that way it will align with the other chat hacks better http://i.imgur.com/dp7wbtL.png [[User:Roranoa_Drake_II|Roranoa Drake II]] ([[User_talk:Roranoa_Drake_II|talk]])



:Hi there! I've added a fix for this in the code, and it should be approved by Wikia within a few days. With the fix, it'll appear at the left of the 'Clear' button for people using ChatHacks. Thank you for letting me know about the issue! - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>
(
[[User talk:OneTwoThreeFall|talk]]
)
</sup> 16:32, July 30, 2016 (UTC)

+

:Hi there! I've added a fix for this in the code, and it should be approved by Wikia within a few days. With the fix, it'll appear at the left of the 'Clear' button for people using ChatHacks. Thank you for letting me know about the issue! - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>[[User talk:OneTwoThreeFall|talk]]</sup> 16:32, July 30, 2016 (UTC)

== re: PurgeBlogs ==

== re: PurgeBlogs ==

+

<small>([[User talk:SuperSajuuk#PurgeBlogs One and PurgeBlogs Two|split thread]])</small><br/>

I don't mind the difference. Rappy copied over that PurgeBlogs script to act as a basic example of the ImportJS script, but given that users could still be importing the old script, it was decided to leave both. I don't really maintain the script, it's pretty basic so anyone can go and update it. :) --'''''[[User:SuperSajuuk|Sa]][[User talk:SuperSajuuk|ju]][[Special:Contributions/SuperSajuuk|uk]]''''' 08:50, September 1, 2016 (UTC)

I don't mind the difference. Rappy copied over that PurgeBlogs script to act as a basic example of the ImportJS script, but given that users could still be importing the old script, it was decided to leave both. I don't really maintain the script, it's pretty basic so anyone can go and update it. :) --'''''[[User:SuperSajuuk|Sa]][[User talk:SuperSajuuk|ju]][[Special:Contributions/SuperSajuuk|uk]]''''' 08:50, September 1, 2016 (UTC)





:([[User talk:SuperSajuuk#PurgeBlogs One and PurgeBlogs Two|split thread]]) - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>([[User talk:OneTwoThreeFall|talk]])</sup> 09:13, September 1, 2016 (UTC)

== RE: jQuery Ready Callback ==

== RE: jQuery Ready Callback ==

Line 46:

Line 45:

:<code>(function ($, mw)</code> doesn't wait for DOM ready - it's immediately run.

:<code>(function ($, mw)</code> doesn't wait for DOM ready - it's immediately run.



:I agree it's inefficient, though. I was only merging the two versions of PurgeBlogs together, not making any functional changes. Personally, I'd set a variable such as <code>window.loadedPurgeBlogs</code>, rather than search for all <code>a[data-id='purge-cache']</code> elements, as that's much more inefficient than setting a single object that may not be needed. - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>
(
[[User talk:OneTwoThreeFall|talk]]
)
</sup> 09:05, September 2, 2016 (UTC)

+

:I agree it's inefficient, though. I was only merging the two versions of PurgeBlogs together, not making any functional changes. Personally, I'd set a variable such as <code>window.loadedPurgeBlogs</code>, rather than search for all <code>a[data-id='purge-cache']</code> elements, as that's much more inefficient than setting a single object that may not be needed. - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>[[User talk:OneTwoThreeFall|talk]]</sup> 09:05, September 2, 2016 (UTC)

== RE: Recent edits to Pseudo-Vector ==

== RE: Recent edits to Pseudo-Vector ==



:
([[User talk:Speedit#Recent edits to Pseudo-Vector|moved]]) - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>
(
[[User talk:OneTwoThreeFall|talk]]
)
</sup> 14:01, October 3, 2016 (UTC)

+

([[User talk:Speedit#Recent edits to Pseudo-Vector|moved]]) - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>[[User talk:OneTwoThreeFall|talk]]</sup> 14:01, October 3, 2016 (UTC)

== ExtendedNavigation borders ==

== ExtendedNavigation borders ==

Line 58:

Line 57:

:I assume you're referring to [[w:c:boombeach|Boom Beach Wiki]]? See my message at [[Talk:ExtendedNavigation#Border colour]] for detail, but basically I made a change in both CSS and JS, and JS doesn't go live immediately. In this case, Wikia's server-side cache for JavaScript on your wiki is being a little too persistent, meaning your wiki is running an older revision of the JS.

:I assume you're referring to [[w:c:boombeach|Boom Beach Wiki]]? See my message at [[Talk:ExtendedNavigation#Border colour]] for detail, but basically I made a change in both CSS and JS, and JS doesn't go live immediately. In this case, Wikia's server-side cache for JavaScript on your wiki is being a little too persistent, meaning your wiki is running an older revision of the JS.

:Re. the boxes looked great before: once the cache for your wiki has cleared, you should notice the border colour of the extended menus will be ''exactly'' the same as the main menu, whereas before it was a slightly different colour.

:Re. the boxes looked great before: once the cache for your wiki has cleared, you should notice the border colour of the extended menus will be ''exactly'' the same as the main menu, whereas before it was a slightly different colour.



:I'm sorry about the issue though! Give it a few days, and it should clear by itself. - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>
(
[[User talk:OneTwoThreeFall|talk]]
)
</sup> 17:42, November 4, 2016 (UTC)

+

:I'm sorry about the issue though! Give it a few days, and it should clear by itself. - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>[[User talk:OneTwoThreeFall|talk]]</sup> 17:42, November 4, 2016 (UTC)

::Alright. Thank you.

::Alright. Thank you.

::[[User:King Dragonhoff|King Dragonhoff]]

::[[User:King Dragonhoff|King Dragonhoff]]



:::Seems the cache has cleared now on Boom Beach and Clash Royale wikis, at least for me. Let me know if there's still issues! - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>
(
[[User talk:OneTwoThreeFall|talk]]
)
</sup> 09:42, November 5, 2016 (UTC)

+

:::Seems the cache has cleared now on Boom Beach and Clash Royale wikis, at least for me. Let me know if there's still issues! - [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>[[User talk:OneTwoThreeFall|talk]]</sup> 09:42, November 5, 2016 (UTC)

== RE: Infobox formatting ==

== RE: Infobox formatting ==

+

<small>([[User talk:KockaAdmiralac#Infobox formatting|split thread]])</small><br/>

<small><small><small>I guess this is how you reply to talkage messages?</small></small></small> Anyways, I was switching to the <tt><br /></tt> format because a list format makes all the elements space out from the list bullets. [http://i.imgur.com/GwbyD5H.png This] is what I mean. Also, I've seen many other scripts use the same format, I think.<br />How does the new infobox style ''require'' them to be a list? I don't see the parameter being parsed or anything...

<small><small><small>I guess this is how you reply to talkage messages?</small></small></small> Anyways, I was switching to the <tt><br /></tt> format because a list format makes all the elements space out from the list bullets. [http://i.imgur.com/GwbyD5H.png This] is what I mean. Also, I've seen many other scripts use the same format, I think.<br />How does the new infobox style ''require'' them to be a list? I don't see the parameter being parsed or anything...

Line 75:

Line 75:

Hey, I was wondering if you could provide a little extra assistance with the [[CodeLoad]] script. So, I initially set up my [[w:c:alvin:MediaWiki:CodeLoad-definitions.js|definitions]] and got those approved before I submitted changes to [http://alvin.wikia.com/index.php?title=MediaWiki%3ACommon.js&diff=77522&oldid=75551 Common.js], [[w:c:alvin:Special:Diff/77520|Wikia.js]], and [[w:c:alvin:Special:Diff/77537|Snow.js]]. Well, all scripts work through CodeLoad except my snow. I had <code>"requiresGlobalPrefs": true,</code> in the preferences but removed it thinking that was the problem (that change isn't approved nor does it appear to be the problem). I did remove the parameters from the snow script itself when I added them to the definitions. Any ideas on what I did wrong? [[User:DEmersonJMFM|DEmersonJMFM]] 21:34, December 27, 2016 (UTC)

Hey, I was wondering if you could provide a little extra assistance with the [[CodeLoad]] script. So, I initially set up my [[w:c:alvin:MediaWiki:CodeLoad-definitions.js|definitions]] and got those approved before I submitted changes to [http://alvin.wikia.com/index.php?title=MediaWiki%3ACommon.js&diff=77522&oldid=75551 Common.js], [[w:c:alvin:Special:Diff/77520|Wikia.js]], and [[w:c:alvin:Special:Diff/77537|Snow.js]]. Well, all scripts work through CodeLoad except my snow. I had <code>"requiresGlobalPrefs": true,</code> in the preferences but removed it thinking that was the problem (that change isn't approved nor does it appear to be the problem). I did remove the parameters from the snow script itself when I added them to the definitions. Any ideas on what I did wrong? [[User:DEmersonJMFM|DEmersonJMFM]] 21:34, December 27, 2016 (UTC)

+

+

:You've done nothing wrong, just I didn't notice you were using an older version of the SnowStorm script!

+

:Due to the way the older version is written, you'll have to use <code>codeLoad.getScriptPrefs</code>. On Snow.js, undoing [[w:c:alvin:Special:Diff/77537|the diff that removed the default parameters]], then adding the below snippet before the line <code>// --- End of user section ---</code> should allow it to work.

+

<syntaxhighlight lang="javascript">

+

// Use CodeLoad configuration if available

+

if (window.codeLoad) {

+

$.extend(snowStorm, codeLoad.getScriptPrefs('snow'));

+

}

+

</syntaxhighlight>

+

:- [[User:OneTwoThreeFall|OneTwoThreeFall]] <sup>[[User talk:OneTwoThreeFall|talk]]</sup> 07:56, December 28, 2016 (UTC)

Show more