Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Dojo Files
Dojo Files
0
Comments
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/thescot2/public_html/forums/extensions/DojoFiles/default.php on line 124
try to edit the default.php and comment out the line
124 private $Context;
and then enabling the add on again
I had the same problem, and solved it by changing
124 private $Context;
to124 var $Context;
But I still have some path-issues: Images don't show, hotlink-urls are wrong, ... I don't use friendly url's on this installation.Bye
Tiggr
Seemed clever for me this way, because it's a very closed forum, only accible for four persons, discussion workshop we do! And because of lists with participant mails and things like that, I would like to keep it private and secure as possible!
97 $arr = split($Configuration['WEB_ROOT'],$Configuration['APPLICATION_PATH']); 98 $local_root_path = $arr[0]; 179 $hot = str_replace($Configuration['APPLICATION_PATH'],$Configuration['BASE_URL'],$row['Path']); 220 $path = str_replace($local_root_path,"",$row['Path']);
As you can see I look for the configuration settings to find how to modify the path to the files. If you exchange out these with strings containing the path to your files directory, you should get it to work
We should use the file download-methode of the Attachments Extensions.
Instead of the url and pathes, it would be nice, to see from which discussion the file comes! In my opinion, this would be very useful!
the only thing new in 0.4201 is the change u found with VAR instead of PRIVATE (even though it doesnt have effect on my machine. probably php version)
Oh no, my forum is web! It's used over http://www.colorful-sky.de/forum, no problem, just think about it, as a normal forum!
Only the path, where the attachments extension stores it files isn't accessible over the web. That is no problem, because Attachments uses his default.php for piping the attachment-files to the browser. In this way, you can use all of the rights-managment on the attachment-files, and no way around them, like it would, if the storage would be web accessible!
That's why I can't use direct download urls, but need urls in the form of http://www.colorful-sky.de/forum/?PostBackAction=Download&AttachmentID=23, they work fine at all - throught the web. The Attachment Extension uses them too!
Having direct web access to the storage is in my opinion no good idea, because you loose all rights managment on them!
But none the less, your extension is very useful, great idea! I realy like the idea of having a file-repository inside vanilla, even better if it is integrated into the discussions ... great for discussions about documents.
Don't hesitate to take my sugestions as silly crap, but keep on the good work!
just take out the BadPanelItems stuff. it seems to be buggy. Its removing panel items that don't belong to BadPanelitems array.
Its really bizarre
First, thank you! :-)
No problem with this! I trust my users! Realy! They are friends of mine, I know them in person, in real live, in geek speek: in meatspace! ;-)
But I distrust the "None-Users", people that aren't my users shouldn't get able to get throught to the attachments!
But I think, it may be an easy hack... I have a look at it!