Support Forum

Anonyomous user is able

MA mann
mann
Member

Anonyomous user is unable to see the attachments. In the link below, there are two attachments which only the logged on user can see but the anonymous user would think that we have missed out on the attachments. The anonyomous user should be able to see the files but when he clicks on them, he is directed to the registration/login page. I checked the permissions but there doesn’t seem to be an option for doing that.

http://www.aristotleprep.com/gre/forum/analytical-writing-assessment/list-of-awa-topics-for-the-gre/

 

Edit: Sorry for the incomplete topic title. Just forgot to put the complete topic name here.

10 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Correct – there is no built in permission that does that – just the one that hides attachments for those that can not download. That’s quite a specialist requirement.

MA mann
mann
Member

I am not sure whether that will be a specialist requirement.laughUsers actually mail us that there’s no files attached to the post. We can put something like this though in the posts to remove the ambiguity

“You will be able to view and download the files after logging in” but that just sounds as though we are putting up the post just to make the people register

YS Yellow Swordfish
Yellow Swordfish
Member

Well it is really quite a specific requirement – certainly one we have never been asked for before. I simply mean by this that it is something that fits into your own workflow but doubtfully required by other users. Hence specialist.

What we might be able to do – and I would need to research this and check on it – is put a filter on the attachment link so that some custom code could override it and redirect to wherever it needed to go. But as I say , will need to do a little research into that. If I find anything I will come back to you.

MA mann
mann
Member

Great.I will wait. Do let me know if anything is possible.

YS Yellow Swordfish
Yellow Swordfish
Member

I see no reason why we can’t do that. I have opened a ticket and left a note for Steve (who coded this part) explaining the requirement. Just needs to be put in place and named. We can let you know that when done so you can replictae it if you wish.

Do you know how to use WP actions/filters and code for them?

MA mann
mann
Member

Yellow Swordfish said
I see no reason why we can’t do that. I have opened a ticket and left a note for Steve (who coded this part) explaining the requirement. Just needs to be put in place and named. We can let you know that when done so you can replictae it if you wish.

Do you know how to use WP actions/filters and code for them?

Sounds great. I  don’t know anything about WP actions/filters. But what is google for?smile I’ll search and try to learn about them a bit 🙂

YS Yellow Swordfish
Yellow Swordfish
Member

The WP Codex explains how to use them but we can also help.

We have added the filter and this will be in the next release – 5.1 – hopefully in the next week or two.

MP Mr Papa
Mr Papa
Member

some light reading wink

http://codex.wordpress.org/Plugin_API

MA mann
mann
Member

Thanks guys. Will go through the link and will wait for the release of v5.1