Keyword

[SOLVED] how attachment file to give privilege

  • iceasanka
  • iceasanka's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago #114566 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!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 10 months ago #114567 by Krikor Boghossian
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.

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

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

  • iceasanka
  • iceasanka's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 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..

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 10 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).
					
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • iceasanka
  • iceasanka's Avatar Topic Author
  • Offline
  • New Member
More
10 years 10 months ago #114570 by iceasanka
Replied by iceasanka on topic Re: how attachment file to give privilege
thanks Krikor Boghossian

it worked :) :) :) :) :) :)

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

More
9 years 1 month 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!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 1 month ago #141927 by Krikor Boghossian
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

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

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

More
8 years 11 months ago #144012 by ermanno
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?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 11 months ago #144021 by Krikor Boghossian
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 ?

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

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

More
8 years 11 months ago #144023 by ermanno
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

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


Powered by Kunena Forum