Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-08-04 06:09:30

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

adi_file_tab - Enhanced file tab

Summary

adi_file_tab is an enhancement to the standard File edit tab:

  • displays file size, author, last modified timestamp
  • optionally update filename when replacing file
  • replace from existing file (with filter option)
  • rename file
  • delete file
  • populate title with filename
  • populate description with title
  • change author
  • view/change downloads count
  • changes tab behaviour so that:
    • when uploading/creating/importing a new file, user taken to File Edit tab
    • when saving, the user stays in the current File Edit tab rather than being returned to the Files List tab

See the help supplied with the plugin, or have a look online. You can download the latest version from here.

Screenshot

Options

There are some preferences in plugin options:

  • specify which privileges, & hence users, get to use the plugin
  • set whether you want the filename automatically replaced after upload or not
  • set a filter, to exclude files from “Replace from existing file” list
  • retain standard TXP tab behaviour

Textpack

There is a mechanism to install a Textpack in the adi_file_tab options page under the Plugins tab.

Corrections or additional language translations are most welcome and can be submitted here.

Translation credits:

  • French (thanks Pat64)
  • Polish (thanks BKawalec)
  • Czech (thanks mikulas)
  • German (thanks GugUser)

Requirements

Textpattern 4.7 or later.

Version history

  • 0.5.1
    • fix: “Uncaught TypeError” (thanks phiw13)
    • fix: layout issue in 4.8 (thanks phiw13)
    • fix: restored access to file filter option
    • new: option to retain standard TXP tab behaviour (thanks phiw13)
  • 0.5
    • fix: minor layout issue (Safari)
    • fix: filename language string
    • fix: event registration
  • 0.4
    • TXP 4.7+
  • 0.3
    • updated for TXP 4.6 (thanks GugUser)
    • enhancement: author edit (4.5.7+ only)
  • 0.2
    • fixes for 4.6 (thanks jpdupont)
    • enhancement: plugin privs
  • 0.1
    • initial release

Feedback

Comments are most welcome.

Dough-nate

If you find this plugin useful and would consider chucking few crumbs at the developers, please consider donating to the Textpattern development team.

Last edited by gomedia (2021-05-27 02:02:27)

Offline

#2 2015-08-04 14:27:00

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: adi_file_tab - Enhanced file tab

Thank you! Very useful.

My first step to translate parts of the Textpack. I’m not sure what mean “adi_copy_update_filename_uploaded” and “adi_file_tab_replace_default”. Maybe someone has better suggestions.

de-de
adi_textpack_fail => Die Textpack-Installation ist fehlgeschlagen
adi_textpack_feedback => Feedback zum Textpack
adi_textpack_online => Das Textpack ist auch online verfügbar
adi_timestamp_invalid => Ungültige Zeitangabe
adi_update_prefs => Voreinstellungen aktualisieren
adi_auto_update_filename => Dateiname automatisch aktualisieren
adi_copy_filename_title => Aus Dateiname kopieren
adi_copy_title_description => Aus Titel kopieren
adi_copy_update_filename_uploaded => Dateiname der hochgeladenen Datei übernehmen?
adi_delete_file => Datei löschen
adi_file_details => Angaben zur Datei
adi_file_renamed => Datei umbenannt
adi_file_tab_confirm_update_filename => Den Dateinamen aktualisieren?
adi_file_tab_exclude_filter => Dateinamen ausschliessen
adi_filtered => Gefiltert
adi_rename_file => Datei umbenennen
adi_rename => Umbenennen
adi_file_replaced => Datei ersetzt
adi_replace_from_existing => Von der existierenden Datei ersetzen
adi_reset_downloads => Download-Zähler zurücksetzen
adi_unfiltered => Ungefiltert
adi_update_filename => Dateiname aktualisieren
adi_file_tab_replace_default => Den Namen der ausgewählten Datei standardmässig ersetzen?

es-es
adi_textpack_fail => La instalación del paquete de idioma falló
adi_textpack_feedback => Retroalimentar el paquete de idioma
adi_textpack_online => El paquete de idioma también está disponible en línea
adi_update_prefs => Actualizar preferencias
adi_auto_update_filename => Actualizar automáticamente el nombre del archivo
adi_copy_filename_title => Copiar del nombre del archivo
adi_copy_title_description => Copiar del título
adi_copy_update_filename_uploaded => ¿Actualizar el nombre de archivo para que coincide con el archivo subido?
adi_delete_file => Borrar archivo
adi_file_details => Detalles del archivo
adi_file_renamed => Nombre del archivo cambiado
adi_file_tab_confirm_update_filename => ¿Actualizar el nombre del archivo?
adi_file_tab_exclude_filter => Excluir nombres de archivos
adi_filtered => Excluido
adi_rename_file => Cambiar nombre del archivo
adi_rename => Cambiar nombre
adi_file_replaced => Archivo reemplazado
adi_replace_from_existing => Reemplazar desde el archivo existente
adi_reset_downloads => Poner en cero número de descargas
adi_timestamp_invalid => Marca de tiempo no válida
adi_unfiltered => Sin filtro
adi_update_filename => Actualizar nombre del archivo
adi_file_tab_replace_default => ¿Reemplazar el nombre del archivo seleccionado por defecto?

Added bc. in order to make potential special characters/apostrophes copyable. – Uli

Last edited by uli (2015-08-05 16:36:15)

Offline

#3 2015-08-05 16:30:03

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: adi_file_tab - Enhanced file tab

Hi Adi, is it possible that you integrate the translated parts (above) in the Textpack?

Offline

#4 2015-08-05 22:05:18

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: adi_file_tab - Enhanced file tab

GugUser wrote #293938:

I’m not sure what mean “adi_copy_update_filename_uploaded” and “adi_file_tab_replace_default”.

Thanks GugUser. Textpack updated & uploaded.

'adi_copy_update_filename_uploaded' => 'Update filename to match uploaded file?'
- is a combined warning & second-chance-not-to-be-missed special offer, it appears if you upload a file without the filename update functionality selected.

'adi_file_tab_replace_default' => 'Filename replace selected by default'
Is the preference label to switch on the automatic filename update function.

Both are a bit clunky, so I’m open to suggestions. Maybe the first one should be “Update with new filename?”. And on reflection the second one (the preference label) should probably have been “Automatic filename update”. Does that help?

Offline

#5 2015-08-06 02:36:46

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: adi_file_tab - Enhanced file tab

Thanks. So I think I have it translated properly.

Offline

#6 2015-08-06 02:45:00

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: adi_file_tab - Enhanced file tab

Why has this “Den Namen der ausgewählten Datei standardmässig ersetzen??” in the setting double question marks?

Offline

#7 2015-08-06 05:01:45

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: adi_file_tab - Enhanced file tab

GugUser wrote #293978:

Why has this “Den Namen der ausgewählten Datei standardmässig ersetzen??” in the setting double question marks?

Oops! The plugin was inserting an additional “?” after the language string. Now fixed. I haven’t changed the version, for such a minor fix, so please redownload plugin & reinstall.

I’ve also changed this string:

'adi_file_tab_replace_default' => 'Automatic filename update?'

Feel free to adjust the German and/or Spanish if required.

Offline

#8 2015-08-06 13:56:01

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: adi_file_tab - Enhanced file tab

de-de 'adi_file_tab_replace_default' => 'Dateinamen automatisch aktualisieren?'

(This is now almost identical with adi_auto_update_filename => Dateiname automatisch aktualisieren.)

es-es 'adi_file_tab_replace_default' => '¿Actualizar automáticamente los nombres de archivos?'

Offline

#9 2015-08-06 23:06:59

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: adi_file_tab - Enhanced file tab

Sorry, don’t know why I’m making this such hard work. Shouldn’t fiddle with things when I’m half out the door! I’ve changed adi_file_tab_replace_default back to your original translations. They (and the English version) properly explain what the preference does. Thanks for your patience.

Offline

#10 2015-08-06 23:26:00

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: adi_file_tab - Enhanced file tab

Thanks for your plugins!

Offline

#11 2015-08-18 03:50:16

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: adi_file_tab - Enhanced file tab

Another really useful and time saving plugin. Most grateful for this, Adi.

Offline

#12 2015-09-08 01:47:46

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: adi_file_tab - Enhanced file tab

joebaich wrote #294174:

Another really useful and time saving plugin. Most grateful for this, Adi.

Glad you find it useful.

And just when I thought I’d got TXP 4.6 covered, here’s version 0.2:

  • fixes for 4.6 (thanks jpdupont)
  • enhancement: plugin privs

Offline

Board footer

Powered by FluxBB