News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

Force category box on upload form

Started by gigowattfilm, 03.03.2015 12:37:51

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gigowattfilm

Hello

When a user (say john) goes to the upload form, in publishing, there is a "category" box. It displays all users catagories to John. I would like the category field to displau only "John" and not the other category.
I deselect "May select a different Category" in the user group settings, but it is not seem to be active ("Use Tabs in Frontend" deselect does not  work as well)...

What am I doing wrong ?

Thank you.
  •  

Arno

Hi,
when a user has the permissions to create or edit a Download in the frontend, he can see (when selected in his user groups settings) also a category select box. But in this field are only this categories listed, where this user has access.
The 'May select a different Category' setting is only used in the edit form.
It exist a few example in the documentation for special uses. When you need another setting, you should post it here more detailed.

The 'Use Tabs in Frontend' works fine for me... can you post maybe a pic?
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

ColinM

Hi
This is all to do with Joomla! Permissions and Access Levels.
There are some articles in FAQ which may help such as http://www.jdownloads.net/documentations/item/controlled-access-to-categories-and-downloads
It has several examples, where you can restrict user groups to specific categories, especially the last example which may be more than you want
Colin
Colin M
  •  

Arno

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

gigowattfilm

#4
OK, I tried but I'm not competent enough to get it right.

I managed to display only what I wanted by editing the "Public" area of the permissions.

Would you accept to set my jdownload for a small  fee ?
What needs to be done now :
- Hide categories from users
- make the upload fonction work for all kind of files up to 10Go (I am working in videos)
- Set the French langage as well as english.

Thank you
  •  

gigowattfilm

Hello

Still no luck with my issue.

When user A logs in, he can see his folders and only his folders. Good.

But as soon as he goes to the upload form, the choose category dropdown displays every categories, not just UserA ones.
I tried and read the documentation, but it just does work (my mistake I am sure, but where ?)

In usergroup, I create UserA_Usergroup in a parent group (clients)
In viewing access level, UserA_VAL is set on UserA_Usergroup.
In users, the assigned user group for UserA is UserA_Usergroup

In Jdonwloads permissions : the usersgroups for my clients are allowed to Create, Edit, Edit own and download.
In Jdowblpoads category, UserA_Category is accessible by UserA_VAL
In Jdownloads donwloads, userAfile.mp4 is accessible for UserA_VAL

That's it. And still all the categories are shown to everyone in the upload form.

Please help me !

  •  

ColinM

Hi
Please send admin level login via PM then I will look directly.

Question: Which Parent does user group Clients have?  Like many people you may not realise that when someone is in a user group they are also implicitly in the parent user group, the grand parent user group and so on.  That is the standard Joomla! 'rule'.

Also have you set the User group ranking level in User Group Settings to specify what questions appear on upload form?

Colin
Colin M
  •  

ColinM

Hi
Have looked and made a few changes.  Have set the Rankings.
I may not have understood all you need
Assumed you intend that some one in PERSONNES ENREGISTREES user group can download the Downloads in the Bee Jullian_UserGroup, the Emilie Quentin_Usergroup and the Ludovic Roux_UserGroup.  That Bee Jullian_UserGroup is able to upload to the Bee Jullian Categegory and so on.  The    PROJETS OU GROUPES and subsequent are inaccessible.

Have not finished
Colin
Colin M
  •  

ColinM

Hi
I have now set up the scheme
Users in PERSONNES ENREGISTREES user group can download the Downloads in the Bee Jullian_UserGroup, the Emilie Quentin_Usergroup and the Ludovic Roux_UserGroup.  That Bee Jullian_UserGroup is able to upload (create/edit) to the Bee Jullian Categegory ONLY and can can download from other members in the PERSONNES ENREGISTREES set, and so on.  The  PROJETS OU GROUPES and subsequent are inaccessible to those in the PERSONNES ENREGISTREES set.

The  PROJETS OU GROUPES are a mirror image.

All Component Permissions were set back to Inherited.  The Category permissions were changed so that PERSONNES ENREGISTREES allowed Downloads.  This then Cascaded down to those user groups who had PERSONNES ENREGISTREES as their parent.  Category Bee_jullian had permissions allowed for Create, Edit and Edit-Own for the Bee Jullian_UserGroup ONLY.  Other categories were set similarly for ONLY their user groups.

View Access groups were set to include the 'parent'  That is for example the Bee-Julian-VAL includes the  PERSONNES ENREGISTREES user group as well as the Bee Jullian_UserGroup

Please let me know if this is what you wanted. 
I have only tested Bee J and an ordinary downloadeder by creating two new users whose abilities are evident from the user names.

Colin
PS you have some CSS problems with seeing the create/edit forms which I have not looked into as they are not jDownloads. But you may need some assistance?

C
Colin M
  •  

ColinM

Hi
Have revised setup as you requested.
Note that the all users, except public, belong to multiple user groups so the user ranking, which is a jDownloads feature only, allows jDownloads to select which User Group Settings apply to the current user.  The User Group settings allow you to specify what questions an uploader will be asked, what file types are allowed to used, whether Tabs to be used and so on.  You might like to allow users to have their uploads automatically published for example.  You probably also want them to be able to specify a file to upload, and so on.

Just Experiment!
I have only created trial users and  you will need to make the setup for your real users using the trial ones as an example.

If you think what has been done is useful the a contribution to Arno to assist with the costs of running the site would be appreciated.

Colin
Colin M
  •  

ColinM

Hi
Quoteon the upload form, at the bottom, the users can clic on "article" button. Where can I get rid of that button ?
This occurs when you have selected the Editor to appear in the setup "Use Editor for Text Fields" in User Group Settings (Group Creation/Edit Tab) AND there are enabled 'Button Plugins'.

You can find the enabled Button plugins from the Plugin Manager and set the word button in the search.

There is not a way to be selective with most button plugins
Colin

Colin M
  •  

stuartjw

Hi.
I'm having a similar problem where I need to restrict the category drop-down (or not have a dropdwon at all) so that the user can only upload to the single category they belong to.

I've attempted to simulate your settings above but with no luck.

Stuart
  •  

ColinM

Stuart,
Could you possibly outline the detail arrangement you are seeking please.  I will then try to help.  It is all about permissions and access levels. This is somewhat like learning to ride a bicycle - clearly impossible but suddenly magically easy!  I think part of this is the way in which we have at present to set up the permissions.  So I have found if people express their objective in  their own target scene then it becomes slightly simpler.

The key things to remember is that the view Access Level sets which User Groups (UGs) can see things, Permissions set up what a UG can do.
Another vital aspect is the implied UG membership.  So you may have explicitly set a user into a UG but they will also belong to the parent UG, the grandparent UG and so on.

Within the jD context I generally recommend using UGs that trace back to the Registered UG on their own path, this avoiding Author, Editor and Publisher UGs as they are really related to users who are working with Joomla! Categories and Articles.  Of course users can belong to both 'streams'.
Thus in a jD context there are users who can only see a Download entry, there are some who can Download and some who can upload.

Colin
Colin M
  •  

stuartjw

Hi Colin.

The scheme I'm trying to create is relatively simple.

User1 must only be able to download and upload in Category1
User2 must only be able to download and upload in Category2
User3....etc

I've set-up a user group for User1 with Registered as Paterent
I've set-up an access level User1_view and selected only the User1 group

In DJ Downloads I've created a Category1 with no parent

At this point, User1 can only see downloads in Category1 and cannot upload anything

If I change the permissions in options configuration for jd downloads so that User1 group is allowed to Create, User1 can upload but all categories are available for selection.

I'd like to make it so that User1 doesn't have to select a category for upload, it's always Category1 with no option to change.

cheers,
Stuart

  •  

ColinM

Hi
There is a way to do this but I think it could be improved.

The following is viable for a modest number of User Groups (UGs).  There are two aspects. 

A) When editing a download then the user should not be able to change Category at that time.  This is covered by User Groups Settings as illustrated in the first two pics attached.  Make sure Ranking level for User Group is greater than 100.

B) The next step is to create a "Create Menu" item for each relevant UG/Access level.  As shown in the last two pics you set the required Access level and the Default Category.
Only one copy of the menu will be shown. Its title could be say 'Upload to My Category'. It is of course possible to adapt to have multiple menu items shown where a view Access level has multiple UGs.

There is also a way with setting up permissions and access levels that avoids multiple menu items but it is much more complex.

What is not there but would be more convenient would be to have the actual name of the default UG set up in the UsersGroups settings. But there is a 'challenge' in implementing that facility.

Colin
Colin M
  •