- Posts: 10
COMMUNITY FORUM
[SOLVED] how attachment file to give privilege
- iceasanka
-
Topic Author
- Offline
- New Member
i want to give privilege to upload attachment in k2 item . public user cant download any thing with out the registration.then i added one extension to the joomla .(extensions.joomla.org/extensions/directory-a-documentation/downloads/3115)
This extension works in joomla properly but not work in k2 admin panel ,how i add this extension to the k2.
help!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
K2 uses it's native attachment functionality. If your users cannot download any attachments then there might be an error with your setup. Registration is required only in order to upload.
As far as the extension I am sure it's developers will provide you with information or a solution.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- iceasanka
-
Topic Author
- Offline
- New Member
- Posts: 10
My requirement is like this:
i want to add a article with some attachment ,public user can view the article and attachment cant download ,attachment can download only the registered user . when the public user click the attachment it want to redirect to the user logging. but k2 not yet support this no..
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
First select to hide the Item Attachments settings in your RSS Feeds. (K2 parameters).
Then open item.php and locate the attachments block (look for the Item attachments HTML Comment).
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- iceasanka
-
Topic Author
- Offline
- New Member
- Posts: 10
it worked :) :) :) :) :) :)
Please Log in or Create an account to join the conversation.
- Marco Pinetti
-
- Offline
- New Member
- Posts: 2
Thanks!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
getk2.org/documentation/tutorials/174
Using multiple K2 sub-templates?
This post is also helpful www.joomlaworks.net/blog/item/194-k2-inheritance-sub-templating
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- ermanno
-
- Offline
- New Member
- Posts: 9
Could you explain in more detail how to make this change?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
What results are you getting ?
Are you sure you changed the correct item.php file ?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- ermanno
-
- Offline
- New Member
- Posts: 9
not sure.... I think this:
/templates/MYTEMPLATENAME/html/com_k2/templates/default/item.php
but where exactly should I put the code?
and what I must copy when you say:
"Insert your normal attachment code here" ??
tnx for your help
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
"Insert your normal attachment code here" ??
This means the default code already present in the default template.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- ermanno
-
- Offline
- New Member
- Posts: 9
then how can I find the right file that I have to edit?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
It could be a 3rd party K2 plugin or the template's framework (I would start by asking the template's developer.)
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- ermanno
-
- Offline
- New Member
- Posts: 9
Krikor wrote: (I would start by asking the template's developer.)
www.gavick.com/joomla-templates/creativity
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.