- Posts: 10
COMMUNITY FORUM
[SOLVED] how attachment file to give privilege
- iceasanka
- Topic Author
- Offline
- New Member
Less
More
11 years 3 months ago #114566
by iceasanka
[SOLVED] how attachment file to give privilege was created by iceasanka
:blush:
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!
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
Less
More
- Posts: 15920
11 years 3 months ago #114567
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: how attachment file to give privilege
Hello,
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.
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
Less
More
- Posts: 10
11 years 3 months ago #114568
by iceasanka
Replied by iceasanka on topic Re: how attachment file to give privilege
hi Krikor
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..
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
Less
More
- Posts: 15920
11 years 3 months ago #114569
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: how attachment file to give privilege
Ok that very easy to accomplish if you are familiar with overriding.
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).
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
Less
More
- Posts: 10
11 years 3 months ago #114570
by iceasanka
Replied by iceasanka on topic Re: how attachment file to give privilege
thanks Krikor Boghossian
it worked :) :) :) :) :) :)
it worked :) :) :) :) :) :)
Please Log in or Create an account to join the conversation.
- Marco Pinetti
- Offline
- New Member
Less
More
- Posts: 2
9 years 6 months ago #141897
by Marco Pinetti
Replied by Marco Pinetti on topic [SOLVED] how attachment file to give privilege
Hallo, exactly which item.php file do i have to override? There are at least 10 item.php files in K2.
Thanks!
Thanks!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 6 months ago #141927
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic [SOLVED] how attachment file to give privilege
This post will help you locate the item.php you need to edit
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
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
Less
More
- Posts: 9
9 years 4 months ago #144012
by ermanno
Replied by ermanno on topic [SOLVED] how attachment file to give privilege
I unfortunately can not make the changes indicated. maybe something wrong but nothing happens and attachments are always downloaded by all.
Could you explain in more detail how to make this change?
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
Less
More
- Posts: 15920
9 years 4 months ago #144021
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic [SOLVED] how attachment file to give privilege
Please do not double post.
What results are you getting ?
Are you sure you changed the correct item.php file ?
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
Less
More
- Posts: 9
9 years 4 months ago #144023
by ermanno
Replied by ermanno on topic [SOLVED] how attachment file to give privilege
sorry I thought the old post were no longer read.
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
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.