Page 1 of 1

[3.1] Static files for admin users

Posted: Sat Apr 27, 2013 8:37 am
by lommes
[3.1] Static files for admin users



a simple plugin (it's a copy of custom_tabs so there are still some uneeded files) which enables admins to upload/delete static files. These static files can be uses as e.g. images in wiki (simple copy&paste of the files URL)



Download

Version 0.1 for Traq 3.1



Screenshot

Image

Re: [3.1] Static files for admin users

Posted: Sat Apr 27, 2013 8:44 am
by Jack
Please reformat your post according to the plugin posting guidelines or this post will be deleted.

---



Looking good. Just a tip, you could add the 'button_new' class to the 'New file' link so it has the green + icon next to it.



Also, if you wanted to make use of the localisation in Traq, you could add the translation strings to a plugin localisation file, like so:

Code: Select all


<?php

// static_files/locale/enus.php

return array(

    'static_files' => "Static Files",

    'new_file' => "New File",

    // ... and so on

);

 

Re: [3.1] Static files for admin users

Posted: Sun Apr 28, 2013 9:17 pm
by lommes
[quote='Jack' pid='1253' dateline='1367016269']

Please reformat your post according to the plugin posting guidelines or this post will be deleted.

---



Looking good. Just a tip, you could add the 'button_new' class to the 'New file' link so it has the green + icon next to it.



Also, if you wanted to make use of the localisation in Traq, you could add the translation strings to a plugin localisation file, like so:

Code: Select all


<?php

// static_files/locale/enus.php

return array(

    'static_files' => "Static Files",

    'new_file' => "New File",

    // ... and so on

);

 
[/quote]





Thanks for the hints! I'll work on that. As said above there are still some files from the custom_tabs plugin which will also be removed.