- Posts: 49
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- What happened to option for showing attachments only to registered?
What happened to option for showing attachments only to registered?
- Mike C
- Topic Author
- Offline
- Senior Member
Less
More
15 years 1 month ago #70297
by Mike C
What happened to option for showing attachments only to registered? was created by Mike C
Part of the reason I decided to go with K2 was because back in April, I was told that hiding attachments from non-registered users would be added to future version of K2 for ease of use:
forum.joomlaworks.gr/index.php?topic=7432.0
I was all excited only to see that this option does not exist (yet?) unless I've somehow missed it as there are a lot of options throughout K2.
Edit:
It appears that the code hack still works, so I'll just do that....
forum.joomlaworks.gr/index.php?topic=7432.0
I was all excited only to see that this option does not exist (yet?) unless I've somehow missed it as there are a lot of options throughout K2.
Edit:
It appears that the code hack still works, so I'll just do that....
Please Log in or Create an account to join the conversation.
- Mike C
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 11 months ago #70298
by Mike C
Replied by Mike C on topic What happened to option for showing attachments only to registered?
Well, I just upgraded to K2 2.1 and in doing so I lost that code hack. And now I find out that the old forum where the solution was posted is gone.. Does anyone know how to make it so that attachments are hidden from unregistered users??? My post is almost 2 months old with no reply =(
Please Log in or Create an account to join the conversation.
- Mike C
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 11 months ago #70299
by Mike C
Replied by Mike C on topic What happened to option for showing attachments only to registered?
Helloooooooooooo, am I the only one that wants to hide attachments from unregistered users?
Please Log in or Create an account to join the conversation.
- Mike C
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 11 months ago #70300
by Mike C
Replied by Mike C on topic What happened to option for showing attachments only to registered?
Are you going to bring the old forum back so I can at least see how it was done?
Please Log in or Create an account to join the conversation.
- Mike C
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 11 months ago #70301
by Mike C
Replied by Mike C on topic What happened to option for showing attachments only to registered?
Please, if anyone can help me with this issue?
Please Log in or Create an account to join the conversation.
- Mike C
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 11 months ago #70302
by Mike C
Replied by Mike C on topic What happened to option for showing attachments only to registered?
It's been two months since I posted, and not a single reply. I'm still waiting for a response, which wouldn't even be necessary if the old forum wasn't removed......
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6213
14 years 11 months ago #70303
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic What happened to option for showing attachments only to registered?
It's very easy to hide the attachments on the K2 templates...
Just wrap the "attachments" div with some PHP code instructing K2 to only show the attachments when someone is logged in. See the code here: k2.pastebin.com/d1bafc8ef
You must use this inside the item.php or category_item.php templates in K2. ;)
Just wrap the "attachments" div with some PHP code instructing K2 to only show the attachments when someone is logged in. See the code here: k2.pastebin.com/d1bafc8ef
You must use this inside the item.php or category_item.php templates in K2. ;)
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Mike C
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 11 months ago #70304
by Mike C
Replied by Mike C on topic What happened to option for showing attachments only to registered?
Thank You!!!!!!!!
Please Log in or Create an account to join the conversation.
- Emily Pearce
- Offline
- Junior Member
Less
More
- Posts: 24
14 years 11 months ago #70305
by Emily Pearce
Replied by Emily Pearce on topic What happened to option for showing attachments only to registered?
I've been searching for a way to do this too, so thank you so much for your answer.
I am also looking for a way of collecting guests email addresses before they are able to download attachments. I have searched the Joomla extensions directory for something that might work with K2 to achieve this - however I've come to a dead-end.
The site I am working on offers walking tours and the owner wants to collect the email address of guests before they download the tour itinerary so that they can be followed up.
Ideally i would like guests who click the link to download an attachment to recieve a message asking them for their email address before they are able to download the file (this email address would then be sent to the site administrator).
Any ideas would be welcomed.
Cheers
JoomlaWorks said:It's very easy to hide the attachments on the K2 templates...
Just wrap the "attachments" div with some PHP code instructing K2 to only show the attachments when someone is logged in. See the code here: k2.pastebin.com/d1bafc8ef
You must use this inside the item.php or category_item.php templates in K2. ;)
I am also looking for a way of collecting guests email addresses before they are able to download attachments. I have searched the Joomla extensions directory for something that might work with K2 to achieve this - however I've come to a dead-end.
The site I am working on offers walking tours and the owner wants to collect the email address of guests before they download the tour itinerary so that they can be followed up.
Ideally i would like guests who click the link to download an attachment to recieve a message asking them for their email address before they are able to download the file (this email address would then be sent to the site administrator).
Any ideas would be welcomed.
Cheers
JoomlaWorks said:It's very easy to hide the attachments on the K2 templates...
Just wrap the "attachments" div with some PHP code instructing K2 to only show the attachments when someone is logged in. See the code here: k2.pastebin.com/d1bafc8ef
You must use this inside the item.php or category_item.php templates in K2. ;)
Please Log in or Create an account to join the conversation.
- Mike C
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
14 years 11 months ago #70306
by Mike C
Replied by Mike C on topic What happened to option for showing attachments only to registered?
Hi Emily,
I'm not sure how you could do that, except for some auto responder script. But why not just have them register to download the attachment? That's what I'm going to do with K2. Thing is, if you just ask people for an email address, they'll enter anything. So you have to use the email confirmation.
I'm not sure how you could do that, except for some auto responder script. But why not just have them register to download the attachment? That's what I'm going to do with K2. Thing is, if you just ask people for an email address, they'll enter anything. So you have to use the email confirmation.
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- What happened to option for showing attachments only to registered?