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
Is it possible to include the name of the uploader.. ?
-
- Phoca Member
- Posts: 11
- Joined: 13 Jan 2015, 09:44
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Is it possible to include the name of the uploader.. ?
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
Jan

components/com_phocadownload/views/category/tmpl/ ...
the user who uploaded the file should be taken from database and set in overlib

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 13 Jan 2015, 09:44
Re: Is it possible to include the name of the uploader.. ?
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!

-
- Phoca Member
- Posts: 11
- Joined: 13 Jan 2015, 09:44
Re: Is it possible to include the name of the uploader.. ?
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??
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Is it possible to include the name of the uploader.. ?
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
Jan
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

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 13 Jan 2015, 09:44
Re: Is it possible to include the name of the uploader.. ?
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?
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Is it possible to include the name of the uploader.. ?
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
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
If you find Phoca extensions useful, please support the project