Hello,
Has anyone tried to re-write the URL output in the Unit File View? If so please let me know where you found it so I can change my view URL to the Download link.
so instead of it creating this: http://www.yourwebsite.com/m/files/view/file-name
I want the files output URL link to display this: http://www.yourwebsite.com/m/files/download/file-name
Seems like an easy fix I just can't seem to find it for the life of me. I figured out how to allow non-mebers to download files by using the download link and I would prefer it to display the download link instead of the view link.
Best Regards,
Mario
|
I was able to re-write the URL output and allow file downloads by non-members if anyone is interested in how I did this please send me a message.
Best Regards,
Mario
|
I was able to re-write the URL output and allow file downloads by non-members if anyone is interested in how I did this please send me a message.
Best Regards,
Mario
Let me guess: you edited the .htaccess file's rewrite rule pertaining to the viewing of files?
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Wrong.... can we play 20 questions or will that just piss you guys off. Ready for #2 lol
Mario
|
Wrong.... can we play 20 questions or will that just piss you guys off. Ready for #2 lol
Mario
Either way, that's how I did it. By the way, you're pissing me off.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
lol ,
It was not my intention... why so touchy? I'll share what I did if anyone is having trouble! I just wanted to get the wheels turning.
Mario
|
Hello Magnussoft!
It can be done via next steps:
1) Redeclare method actionView in BxFilesModules.php file and leave there only header to actionDownload method.
2) Change link 'file' => 'view/{uri}', in $this->aConstants['linkTempl'] array in BxFilesSearch.php class to 'file' => 'download/{uri}'.
Regard
|
Hello Magnussoft!
It can be done via next steps:
1) Redeclare method actionView in BxFilesModules.php file and leave there only header to actionDownload method.
2) Change link 'file' => 'view/{uri}', in $this->aConstants['linkTempl'] array in BxFilesSearch.php class to 'file' => 'download/{uri}'.
Regard
LeonidS, can't you tell when someone is trying to save their own ego from extinction?
Thanks, though.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
LeonidS well said that's exactly how I changed it.
Magnussoft... What are you talking about bro? I don't understand.... trying to save their own ego from extinction? say what?
I never claimed to be the best or to even really know what the hell I'm talking about in the slightest I was just trying to have some fun. When I originally posted this I had no idea even where to look I'm just happy I figured it out. I would have told you exactly how I did it I just wanted to get people thinking.
Mario
|
LeonidS well said that's exactly how I changed it.
Magnussoft... What are you talking about bro? I don't understand.... trying to save their own ego from extinction? say what?
I never claimed to be the best or to even really know what the hell I'm talking about in the slightest I was just trying to have some fun. When I originally posted this I had no idea even where to look I'm just happy I figured it out. I would have told you exactly how I did it I just wanted to get people thinking.
Mario
No one's understanding my posts this week. I meant that I have a large ego, and to correct my flawed way of doing it only damages it. I need to get a translation, it seems. Also, no one can tell when I'm being serious or otherwise. Shame.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Oh I see now... I get it.... delayed...lol
Mario
|