Keyword

Add k2 item from site: what users can see

  • hulahopka
  • hulahopka's Avatar Topic Author
  • Offline
  • New Member
More
9 years 7 months ago #140443 by hulahopka
Sorry If this question exist, but I searched everything and can't find it.
So, I would like registered users can add item in few categories from frontend.

I give permissions, but when some users click on ADD ITEM, they can see everything as I see: list of all categories, k2 logo, JCE editor, even MEDIA BOX (with all pictures on server).
How to set predefined category (I have two) in which they can automatically post item. And, how to hide media box.
In screenshot I post what users see now when they click on ADD ITEM, and what I want to they can see.

I would like that they can see and write only:
- title
- choose category (that I set for users writting)
- insert picture
- simple editor for text (like on your forum: B, I, U, PICTURE, LINK)...
- write a text area


If someone knows solution, please, help!!! It is urgent. Is it possible?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 7 months ago #140460 by Krikor Boghossian
Replied by Krikor Boghossian on topic Add k2 item from site: what users can see
The categories that the users can post on are in the user group's settings.

The itemform.php file can be overriden and you can comment out the elements you do not need. More about overriding can be found here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #141135 by Michael Green
Replied by Michael Green on topic Add k2 item from site: what users can see
Exactly, im having the same issue here...did you every figure out how to remove the option for some members to to still be able to post without media access and gallery access without having to remove the media option entirely? I get the acl control as far as extra fields but that does not address the option of giving directory access to general posters..
...........................................................................................................................................................................................

hulahopka wrote: Sorry If this question exist, but I searched everything and can't find it.
So, I would like registered users can add item in few categories from frontend.

I give permissions, but when some users click on ADD ITEM, they can see everything as I see: list of all categories, k2 logo, JCE editor, even MEDIA BOX (with all pictures on server).
How to set predefined category (I have two) in which they can automatically post item. And, how to hide media box.
In screenshot I post what users see now when they click on ADD ITEM, and what I want to they can see.

I would like that they can see and write only:
- title
- choose category (that I set for users writting)
- insert picture
- simple editor for text (like on your forum: B, I, U, PICTURE, LINK)...
- write a text area


If someone knows solution, please, help!!! It is urgent. Is it possible?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 7 months ago #141147 by Krikor Boghossian
Replied by Krikor Boghossian on topic Add k2 item from site: what users can see
Please so not double post.
I deleted your other post. You will not receive your answer any faster.

The only way to do this is via overriding the itemform.
You need to check which is the current user (or group) using Joomla!'s user object docs.joomla.org/Accessing_the_current_user_object

From that point in your override you can show/ hide elements for specific users.

There is also the option to disallow media embedding (K2 Params) but this will affect all users.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum