Extension talk:FileList

About this board

Sent Github Pull request to make FileList work with 1.33+

1
Icarusfactor (talkcontribs)

Sent a Github pull request with modifications that make this extension work with 1.33+ and currently tested it on 1.37.2. The method to install is still the same for now, still need to get it changed to the newer wfLoadExtension method.

The two modified files are at github.com/icarusfactor/FileList

Reply to "Sent Github Pull request to make FileList work with 1.33+"

Extension not working properly

1
Fcappelli (talkcontribs)

Installed software

Product     Version

MediaWiki     1.31.1

PHP     7.0.33 (apache2handler)


The FileList extension (last version) does not work properly on my wiki.

The interface appears properly on the page, it regularly asks for files to be uploaded but then no file is uploaded neither shown in the list. This happens both in standard and created pages. I do not get any error message.

Any idea?

Many thanks.


Reply to "Extension not working properly"

MW1.28 - Call to undefined function wfMsgForContent()

1
G0zh (talkcontribs)

Hello,

This extension is not working with MW1.28, error is: Call to undefined function wfMsgForContent() in .../extensions/FileList/FileList.php

Workaround: Replace all occurrences of wfMsgForContent() by wfMessage() in /extensions/FileList/FileList.php

Except this small issue, your extension is great!

Thanks,

Reply to "MW1.28 - Call to undefined function wfMsgForContent()"
207.239.97.10 (talkcontribs)

Getting an error message about common_library.php this does not exist, am i missing something?

require_once( dirname(__FILE__) . '/../common_library.php' );

Nymanjens (talkcontribs)

This must have been a temporary problem, which is certainly fixed in the newest versions

Reply to "Common Library.php"

Not Working with 1.18.x

2
BLinz (talkcontribs)
Nymanjens (talkcontribs)

The newest version (v5) should work up to MW 1.22alpha

Reply to "Not Working with 1.18.x"
87.102.213.91 (talkcontribs)

As the subject sugests, the extenssion does not work on MW1.17.x for me. The upload box still appears, but neither uploaded files through the special page or via the provided buttons were shown.

94.126.240.2 (talkcontribs)

I'm getting the same error with MW 1.16.5. I can upload files through the upload box but they are not shown in the page.

87.180.233.252 (talkcontribs)

Perhapes you are using (your own) namespaces ? If you are using namespaces the extension crashes ... I always get a HTTP 500 error after the file was uploaded. The move/rename function should consider namespaces (and interwiki links). But in other cases it is a great extension.

Use this language specific settings in FileList.i18n.php for german language:

 $FileListMessages['de'] = array(
 // messages
 'fl_empty_list'              => 'Diese Seite hat noch keine Dateianhänge.',
 'fl_upload_file'             => 'Datei anhängen',
 'fl_upload_file_anonymously' => 'Datei anonym anhängen',
 'fl_empty_file'              => 'Datei wählen',
 'fl_edit'                    => "Ändern",
 'fl_delete'                  => "Löschen",
 'fl_delete_confirm'          => "Sind Sie sicher, dass Sie die Datei \'%s\' löschen wollen ?",
 // Table column headings
 'fl_heading_name'            => 'Dateiname',
 'fl_heading_descr'           => 'Beschreibung',
 'fl_heading_user'            => 'Benutzer',
 'fl_heading_size'            => 'Größe',
 'fl_heading_datetime'        => 'Datum',
 // credits
 'fl_credits_desc'            => 'Erzeugt eine dynamische Dateiliste bei Einfügen von <filelist />',
 );
Nymanjens (talkcontribs)

About the supported versionsː I have never had the time to test this extension on multiple (let alone all) versions, but I can say for sure that v5 works for MW 1.22alpha.

About the namespacesː take a look at the "Namespace fix" thread (above)

About the german translationsː thank youǃ I will add them.

Reply to "Ceased functioning"
12.107.45.2 (talkcontribs)

Is there any fix to get this working on pages that have custom namespaces? It works great on regular pages, but when I try to upload a file on a custom namespace page, no files show up in the list even though the filed is successfully uploaded.

I assume it has something to do with the namespace being converted to a regular pagename (i.e. if trying to upload Testfile.doc onto a page called "Testpage" in a custom namespace called "Test", the filename gets converted to "Test - Testpage - Testfile.doc" when it is uploaded instead of "Test:Testpage - Testfile.doc") ...so no files show up in the filelist table.

Any ideas?

12.107.45.2 (talkcontribs)

Still haven't been able to figure out how to get around this..does anyone know of a possible fix to the code?

Nymanjens (talkcontribs)

That's weird because the same prefix is used for both uploading and searching ($prefix = htmlspecialchars(fl_get_prefix_from_page_name($pageName));). I have no time to look at it right now, but I would suggest looking at this value at upload-time and serach-timeː

$prefix = htmlspecialchars(fl_get_prefix_from_page_name($pageName));

Reply to "Namespace fix"
Hollosch (talkcontribs)

Hi,

doesn't work with MW 1.20.x Is it possible to fix it for this version ?

121.216.196.28 (talkcontribs)

I agree- it would be great to be able to use this on the new versions of MediaWiki.

The issue is that it is using the old WgMessages->AddMessage bit...

Please sort it! :)

Nymanjens (talkcontribs)

The newest version (v5) works with MW 1.22alpha

Reply to "MW 1.20.x"

Do not work (and some suggestions...)

2
82.235.195.174 (talkcontribs)

MediaWiki 1.17.0 PHP 5.2.10-2ubuntu6.4 (apache2handler) MySQL 5.1.37-1ubuntu5

  • The extension's box appears but the file(s) already linked to the page do not.
  • When a file is added via the extension, it correctly appears in the extension's list, but do not show in the Wikitext code (How filelist knows what files to show ???)

For the suggestions :

  • Multiple upload (of course...)
  • Possibility to choose if a file is deleted from the wiki or simply unlinked from the page when the extension's "delete" buton is used (a third button).
Nymanjens (talkcontribs)

To answer a couple of your questions: the FileList extension known what files to show, based on filename. If your page is ABC and your filenamem is test.txt, then the wiki-filename will be "ABC - test.txt" and FileList looks for all files that start with "ABC - ".

Reply to "Do not work (and some suggestions...)"

Multi upload or folder tree files upload

1
193.151.99.239 (talkcontribs)

Could it be possible to add mode than one file or better upload a complete folder structure into mediawiki? And then display them in the same manner as folder tree?

Thanks in advance,

Brgds, wabik

Reply to "Multi upload or folder tree files upload"
Return to "FileList" page.