Advertisement:

Author Topic: Download Attachment Permission v2  (Read 1003 times)

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,673
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Download Attachment Permission v2
« on: August 13, 2018, 05:43:08 PM »
Link to Mod

Adds a separate download and view permission for attachments
This controls the whether the download is listed in the topic display or not.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline jsx

  • Jr. Member
  • **
  • Posts: 358
  • Gender: Male
Re: Download Attachment Permission v2
« Reply #1 on: March 03, 2019, 02:10:49 PM »
Polish translation UTF-8:

Code: [Select]
<file name="$languagedir/ManagePermissions.polish-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin Download Attachment
$txt['permissionname_view_attachments'] = 'Pobierz załączniki';
$txt['permissionhelp_view_attachments'] = 'Załączniki to pliki dołączane do publikowanych wiadomości. Funkcja może być włączona i skonfigurowana w \'Załączniki i awatary\'. Ponieważ załączniki nie są bezpośrednio dostępne, możesz zabezpieczyć je przed pobraniem przez użytkowników, którzy nie mają do tego uprawnień.';

$txt['permissionname_view_attachments2'] = 'Zobacz załączniki';
$txt['permissionhelp_view_attachments2'] = 'Ta opcja umożliwia użytkownikowi przeglądanie załączników w tematach, ale nie zezwala na pobieranie załączników.';

// END Download Attachment
]]></add>
</operation>
</file>

Please put this translation in a modification.
« Last Edit: March 03, 2019, 02:23:53 PM by jsx »
The Great Winged Hussars

https://www.youtube.com/watch?v=eWkrQQly6xU

We remember
In september
When The Winged Hussars arrived!

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,673
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Download Attachment Permission v2
« Reply #2 on: March 03, 2019, 04:14:54 PM »
Done
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 3,033
  • Gender: Male
  • I also speak english :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: Download Attachment Permission v2
« Reply #3 on: March 03, 2019, 06:31:03 PM »
Just what he was looking for something he wants to do. Very good @vbgamer45 and in passing I leave the translation to Latin Spanish :D.

Code: [Select]
<file name="$languagedir/ManagePermissions.spanish_latin-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
// Begin Download Attachment
$txt['permissionname_view_attachments'] = 'Descargar adjuntos';
$txt['permissionhelp_view_attachments'] = 'Los archivos adjuntos son archivos que se adjuntan en los mensajes publicados. Esta función se puede activar y configurar en \'Archivos Adjuntos y Avatares\'. Dado que no se puede acceder directamente a los archivos adjuntos, puede protegerlos de ser descargado por los usuarios que no disponen de este permiso.';

$txt['permissionname_view_attachments2'] = 'Ver archivos adjuntos';
$txt['permissionhelp_view_attachments2'] = 'Permite al usuario ver los archivos adjuntos en la publicación. Sólo pueden descargar, si tienen el permiso de descargar el archivo adjunto.';


// END Download Attachment
]]></add>
</operation>
</file>


Regards!
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,673
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Download Attachment Permission v2
« Reply #4 on: March 03, 2019, 07:15:29 PM »
Done as well. Wish it was easy to post them on the modsite. I missed adding many translations over the years.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 3,033
  • Gender: Male
  • I also speak english :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: Download Attachment Permission v2
« Reply #5 on: March 03, 2019, 08:32:29 PM »
's something I've noticed... surely it was not first thought as such. It would even be nice to update many translations need improvements, it's a dream but I hope it will come true!
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal

Offline jsx

  • Jr. Member
  • **
  • Posts: 358
  • Gender: Male
Re: Download Attachment Permission v2
« Reply #6 on: March 04, 2019, 02:46:33 AM »
@vbgamer45,

Thanks for placing the Polish language in the modification. But why do not Polish diacritic marks appear in downloadattach2.xml file? And after installing the modification, the Polish language for this modification is not displayed.

Example:

Pobierz zalaczniki (Currently in the modification lines are without Polish diacritics)

Pobierz załączniki (The lines should contain Polish diacritics - This is correct)
The Great Winged Hussars

https://www.youtube.com/watch?v=eWkrQQly6xU

We remember
In september
When The Winged Hussars arrived!

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,673
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Download Attachment Permission v2
« Reply #7 on: March 04, 2019, 09:05:02 AM »
Fixed text editor I used wasn't the best for utf8
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,673
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Download Attachment Permission v2
« Reply #8 on: March 07, 2019, 04:04:50 PM »
Updated to support SMF 2.1.x
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro