FANDOM


This is the talk page for discussing improvements to the DiscussionsActivity page.

Non-English communities

Hey there,
I've noticed that this script only works on english communities. Is this related to the non added localization for language support? -- Bryan VANGUARD.svg ( talk | c | dev ) 21:14, February 1, 2018 (UTC)

Yeah, the script was just meant to be used on English wikis until the proper localization was added, so it wasn't working at all on wikis in other languages. However, I just pushed an update that will make it work on non-English wikis; even if the interface of the special page is still only in English. It will be effective as soon as the JavaScript review team approves it. --Manuel de la Fuente (talk) 22:59, February 1, 2018 (UTC)

jQuery.timeago

The script could use jQuery $.timeago and $.fn.timeago methods like Forum, heh. speedy🔔︎🚀︎ 10:32, February 17, 2018 (UTC)

Red links

Red links don't appear to be supported. Is this a problem from the Discussions feed or something that can be fixed by this JS? I haven't checked if DiscussionsFeed supports red links, but I assume it doesn't. -- Fandyllic (talk · contr) 26 Feb 2018 3:59 PM Pacific

Bug Report

This addon seems to be very unstable. I imported it for personal use on my Global JS page to see how it completely deactivated all personal JS on my account. Wither 15:51, May 29, 2018 (UTC)

Wiki Activity

Couldn't the Discussions Activity show in the same place as the Wiki Activity? I guess there'd be need to write another script, but I'm sure it would also make it easier to navigate on a wiki, for anyone who comes. ~Mustafar29 User pageUser talk 11:19, September 23, 2018 (UTC)

Other Languages

Is there a possibility that other languages can be used besides English? Maybe with:

(function(module, lang) {
	"use strict";
	var i18n = {
		en: {
			seconds_ago_singular:		'$1 second ago',
            seconds_ago_plural:			'$1 seconds ago',
            minutes_ago_singular:		'$1 minute ago',
            minutes_ago_plural:			'$1 minutes ago',
            hours_ago_singular:			'$1 hour ago',
            hours_ago_plural:			'$1 hours ago',
            days_ago_singular:			'$1 day ago',
            days_ago_plural:			'$1 days ago',
            months_ago_singular:		'$1 month ago',
            months_ago_plural:			'$1 months ago',
            years_ago_singular:			'$1 year ago',
            years_ago_plural:			'$1 years ago',
            icon_title_thread:			'discussion thread',
            icon_title_reply:			'discussion reply',
            in:							'in',
            block:						'block',
            talk:						'talk',
            wall:						'wall',
            contribs:					'contribs',
            created_by:					'created by',
            commented_by:				'commented by',
            icon_title_reported:		'reported message',
            icon_title_locked:			'locked thread',
            icon_title_deleted:			'deleted message',
            thread_locked:				'Thread locked',
            parent_thread_locked:		'Parent thread locked',
            parent_thread_deleted:		'Parent thread deleted',
            message_deleted_by:			'Message deleted by',
            message_reported:			'Message reported',
            checkbox_auto_refresh:		'Auto refresh',
            checkbox_show_deleted:		'Show deleted',
            document_title_original:	'Error',
            document_title_new:			'Recent Discussions Activity',
            loading_discussions:		'Loading discussions...',
            error_no_connection:		'Unable to load discussions. The connection errored or the service might be down.',
            error_discussions_disabled:	'Unable to load discussions. The feature is not enabled on this domain.',
            recent_changes:				'Recent changes',
            wiki_activity:				'Wiki activity',
            discussions_activity:		'Discussions activity',
            watchlist:					'Followed Pages only'
		},
		de: {
			seconds_ago_singular:		'Vor $1 Sekunde',
            seconds_ago_plural:			'Vor $1 Sekunden',
            minutes_ago_singular:		'Vor $1 Minute',
            minutes_ago_plural:			'Vor $1 Minuten',
            hours_ago_singular:			'Vor $1 Stunde',
            hours_ago_plural:			'Vor $1 Stunden',
            days_ago_singular:			'Vor $1 Tag',
            days_ago_plural:			'Vor $1 Tagen',
            months_ago_singular:		'Vor $1 Monat',
            months_ago_plural:			'Vor $1 Monaten',
            years_ago_singular:			'Vor $1 Jahr',
            years_ago_plural:			'Vor $1 Jahren',
            icon_title_thread:			'Diskussionsfaden',
            icon_title_reply:			'Diskussionsantwort',
            in:							'in',
            block:						'Blockieren',
            talk:						'Diskussion',
            wall:						'Nachricht',
            contribs:					'Beiträge',
            created_by:					'erstellt von',
            commented_by:				'kommentiert von',
            icon_title_reported:		'gemeldete Nachricht',
            icon_title_locked:			'gesperrter Diskussionsfaden',
            icon_title_deleted:			'gelöschte Nachricht',
            thread_locked:				'Thread gesperrt',
            parent_thread_locked:		'Übergeordneter Thread gesperrt',
            parent_thread_deleted:		'Übergeordneter Thread gelöscht',
            message_deleted_by:			'Nachricht gelöscht von',
            message_reported:			'Nachricht gemeldet',
            checkbox_auto_refresh:		'Automatische Aktualisierung',
            checkbox_show_deleted:		'Zeige gelöschte',
            document_title_original:	'Fehler',
            document_title_new:			'Aktuelle Diskussionen Aktivität',
            loading_discussions:		'Lädt Diskussionen...',
            error_no_connection:		'Diskussionen konnten nicht geladen werden. Die Verbindung ist fehlerhaft oder der Dienst ist ausgefallen.',
            error_discussions_disabled:	'Diskussionen konnten nicht geladen werden. Die Funktion ist in diesem Wiki nicht aktiviert.',
            recent_changes:				'Letzte Änderungen',
            wiki_activity:				'Wiki-Aktivität',
            discussions_activity:		'Diskussionen Aktivität',
            watchlist:					'Nur verfolgte Seiten anzeigen'
		}
	};
	module.messages = $.extend(module.messages, i18n.en, i18n[lang]);
})(dev.DiscussionsActivity, mediaWiki.config.get('wgUserLanguage'));

Or is it actually impossible?
Maldohr'  Disk.Beiträge Edits 20:14, October 7, 2018 (UTC)

I'm not familiar with the script, but you appear to have added german translations to this script before posting here. There's some caching of translations before they'll show up, but is there another issue you're seeing? cqm 21:11, 7 Oct 2018 (UTC)

Script doesn't work in non-English communities anymore

Hello,

since the URLs have been changed, the DiscussionsActicity doesn't work in non-english wikis: The link to the DiscussionsActivity at the top of the WikiActivity is missing, and if I open the DiscussionsActivity page it says that the Discussions aren't activated in our wiki. Is there a way to fix that?
Mystery99 11:10, January 26, 2019 (UTC)

Manuel, looks like you missed a spot! :P
--- https://dev.wikia.com/wiki/MediaWiki:DiscussionsActivity.js?oldid=109262
+++ Patch
@@ -527,7 +527,7 @@
         }
       }
     };
-    request.open('GET', '/d/f', true);
+    request.open('GET', config.wgScriptPath + '/d/f', true);
     request.send();
   }
   /**
puxlit (talk) 15:58, January 26, 2019 (UTC)

Suggestions and Feedback

This script really is magnificent! I can't believe it took me this long to stumble across it. Must have been because none of the wikis I've visited have had this script enabled until now. However, it would be great if this script allowed more customisation options, or something that would prevent the default text for the Special:WikiActivity/watchlist and Special:RecentChanges links from getting overridden.

Since the default text for those links for most wikis is "Followed Pages only" and "See all activity". But there are a few wikis with the text of those links modified. Would there be any way to modify the script to prevent the default text from getting overridden? Since from what I can see of this script, that is really the only drawback. ― C.Syde (talk | contribs) 07:10, May 29, 2019 (UTC)

Tag Support

It would be really nice if the script would display the tags added to a post if it has any. — NoWay (talk · contribs) 20:22, December 2, 2019 (UTC)

I've added a very crude tag list myself now. — NoWay (talk · contribs) 16:49, December 20, 2019 (UTC)

Title disappeared

I used locally at OSTFRP wiki, but title disappeared!--*Lac*() 10:38, April 17, 2020 (UTC)

Yeah, I also noticed that. Looks like FANDOM broke the underlying API that is used by this script, the title information is just missing there as well now. I've reported it as a bug to FANDOM and will update here once I get a response. — NoWay (talk · contribs) 20:06, April 17, 2020 (UTC)
The report got redirected to the appropriate people. It was also marked as solved already, so I don't think I will get any further details anymore.
In case the fix takes longer, I've added a fallback that displays three question marks when the title is not available. This way at least there are still some clickable links. It will need to go through approval and caches first though. — NoWay (talk · contribs) 23:37, April 18, 2020 (UTC)
Looks like it got fixed. — NoWay (talk · contribs) 21:45, April 21, 2020 (UTC)
thx--*Lac*() 02:05, May 2, 2020 (UTC)
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+