Page 1 of 1

Is it possible to include the name of the uploader.. ?

Posted: 07 Feb 2015, 05:18
by haisesasaki
Is it possible to include the name of the uploader in the details.. name or username.. Thanks!

http://imageshack.com/a/img540/1/RcR7bl.png

Re: Is it possible to include the name of the uploader.. ?

Posted: 08 Feb 2015, 01:07
by Jan
Hi, this needs to be customized directly in the code :-(

components/com_phocadownload/views/category/tmpl/ ...

the user who uploaded the file should be taken from database and set in overlib :idea:

Jan

Re: Is it possible to include the name of the uploader.. ?

Posted: 11 Feb 2015, 03:59
by haisesasaki
Can I have an example Jan? :(. I really need it cause the user can't see who uploaded the file in the front end. Thank you Jan!

Re: Is it possible to include the name of the uploader.. ?

Posted: 12 Feb 2015, 07:14
by haisesasaki
Jan, is it possible only registered users can see their own uploaded file, but they can't see other users upload files. Only they can see is what the admin uploaded??

Re: Is it possible to include the name of the uploader.. ?

Posted: 12 Feb 2015, 23:40
by Jan
Hi,

I didn't do such customization yet, so I cannot give some exact example :-(

Regarding user rights - it is always valid what is set in the category or file edit - if you select the user who have access to it, then he/she has rights to access it.

So if the one who uploads, get the access rights and other not, it will be able to access the files. So it does not matter who uploads, but who have rights to access - which can be set for category or file :idea:

Jan

Re: Is it possible to include the name of the uploader.. ?

Posted: 16 Feb 2015, 21:08
by haisesasaki
Thank you Jan! In category view why is that it looks like this: I have 3 categories, File, Math, Science. I have 1 file in File, and none in two other categories. File(0/1) Math (0/0) Science(0/0) What is that 0? is it possible to remove that 0?

Re: Is it possible to include the name of the uploader.. ?

Posted: 21 Feb 2015, 01:42
by Jan
Hi, 0/1 means - no subcategory/ 1 file

You can change it in: components/com_phocadownload/views/categories/tmpl/default.php - cca line 77 (for removing only a part) - for removing it completely, you can use the parameter.

Jan