By HMED on Saturday, 29 November 2014
Posted in General Issues
Likes 0
Views 812
Votes 0
All in the title
actualy guest can download without registration attached files in the discussions, how i can disallow it please ? permission confi ?
hello jan!,

You're welcome.
Hmm, we are not really sure how to assists your regarding this cache issues.
If you would like to make the attachment hidden for public user, you can download my attachment file and replace in JoomlaFolder\components\com_easydiscuss\themes\simplistic\field.output.attachments.php
·
Sunday, 30 November 2014 21:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello jan!,

I am really sorry for the delay of this reply as it is a weekend for us here.
Unfortunately we do not have setting to configure on this in current system.
But you can download my attachment file and replace in JoomlaFolder\componentdownloads\com_easydiscuss\controllers\attachment.php and see is it meet your requirement? (Remember do the backup first before replace the file)
·
Saturday, 29 November 2014 13:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Arlex, guest cannot download attachements now,
they are redirected to the discussion home page, any way to show a message until they know that after registration they can download ?
·
Saturday, 29 November 2014 18:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jan,

The hack which Arlex provided already contains a message when the user does not have access to download the file,


DiscussHelper::setMessageQueue( JText::_('Please login first only can download the attachment file.' ) , DISCUSS_QUEUE_ERROR );
·
Sunday, 30 November 2014 01:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,
i'd just tryed again as a guest but i didnt get a message, it redirect me directly to the easydiscuss home page ! please try to download the file in the url bellow.

update: as guest some times it show the message and some times no ! when i login i get this message !! please try as guest and after as login with the attached login.
it is not a cache issue ?
·
Sunday, 30 November 2014 19:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello jan!,

Yes, it seems like you're right, I have temporary disabled this plugin - System - jSGCache, it should work fine now. Can you give it a try?
·
Sunday, 30 November 2014 20:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you, seems working now,
jSGCache is the site ground plugin used to activate super cache, with this plugin disabled cache is not running realy good
·
Sunday, 30 November 2014 21:01
·
0 Likes
·
0 Votes
·
0 Comments
·
seems working without hiding the field !
thank you Arlex
·
Sunday, 30 November 2014 21:44
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome, glad that your issues are resolved now.
·
Sunday, 30 November 2014 22:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post