Project page: http://drupal.org/sandbox/luxpaparazzi/1301730
GIT: http://git.drupal.org/sandbox/luxpaparazzi/1301730.git
Drupal version: 7.x
This project aims to add a new organizational layer to drupal, making it easier for managing large-scale websites. Starting with a real directory structure managed by the module, you may add nodes, files and images to different directories and control fine-grained access-control lists.
Current features:
- Add files and sub-folders to directories (with Ajax Multi-file upload)
- Add nodes to directories, by associating a unique field to the content type
- Fine-grained directory access control (imitating Windows ACL lists)
- Automatic slide shows for image files in directory (using external modules)
- Contains a block for folder navigation and management
- Moving and deleting nodes, files and directories per drag and drop (Ajax) [Alpha status]
Application areas:
- Large-scale websites with little work-overhead
- Photo portals like Picasaweb / Flickr etc.
- Document management
Installation: See README.txt
Reviews of other projects:
(1)
http://drupal.org/node/1515300#comment-5828770
http://drupal.org/node/1515104#comment-5828800
http://drupal.org/node/1371658#comment-5829076
(2)
http://drupal.org/node/1289146#comment-5829198
http://drupal.org/node/1497114#comment-5832568
http://drupal.org/node/1166144#comment-5833390
(3)
http://drupal.org/node/1510938#comment-5833472
http://drupal.org/node/1438600#comment-5833552
http://drupal.org/node/1289484#comment-5833698
(4)
http://drupal.org/node/1526246#comment-5853094
http://drupal.org/node/1454398#comment-5853178
http://drupal.org/node/1418580#comment-5853248
(5)
http://drupal.org/node/1221410#comment-5853368
http://drupal.org/node/1526076#comment-5853532
http://drupal.org/node/1442482#comment-5858606
(6)
http://drupal.org/node/1359516#comment-5863402
http://drupal.org/node/1281690#comment-5863540
http://drupal.org/node/1420358#comment-5842908
(7)
http://drupal.org/node/1359516#comment-5899820
http://drupal.org/node/1423362#comment-5899900
http://drupal.org/node/1419502#comment-5899984
(8)
http://drupal.org/node/1541718#comment-5900020
http://drupal.org/node/1540804#comment-5900054
http://drupal.org/node/1475274#comment-5900098
(9)
http://drupal.org/node/1498566#comment-5900130
http://drupal.org/node/1294332#comment-5900172
http://drupal.org/node/1492608#comment-5900234
(10)
http://drupal.org/node/1403766#comment-5900278
http://drupal.org/node/1309746#comment-5904620
http://drupal.org/node/1455564#comment-5907598
(11)
http://drupal.org/node/1540804#comment-5907646
http://drupal.org/node/1505236#comment-5907726
http://drupal.org/node/1455564#comment-5913166
(12)
http://drupal.org/node/1538594#comment-5913256
http://drupal.org/node/1538196#comment-5916780
http://drupal.org/node/1512414#comment-5917052
(13)
http://drupal.org/node/1447120#comment-5917222
http://drupal.org/node/1536778#comment-5917502
http://drupal.org/node/1483570#comment-5917628
(14)
http://drupal.org/node/1485756#comment-5917798
| Comment | File | Size | Author |
|---|---|---|---|
| #75 | Screenshot at 2012-04-24 12:54:22.png | 423.73 KB | dark-o |
| #69 | review_aut.txt | 811 bytes | dark-o |
| #64 | automated.txt | 3.08 KB | dark-o |
| #32 | drupalcs-result.txt | 1.89 KB | klausi |
| #25 | luxpaparazzi-pareview-result.txt | 73.43 KB | atul.bhosale |
Comments
Comment #1
pillarsdotnet commentedPlease run spell-check and Coder review over your code, then change the status of this issue back to "needs review".
Thanks.
Comment #2
luxpaparazzi commentedCodereviewer tells me to use drupal form api. I agree, but is it possible to define a form with enctype="multipart/form-data"?
I have to look for a good spell-checker for Eclipse...
Comment #3
pillarsdotnet commentedYes, or else file uploads would not be possible.
Comment #4
pillarsdotnet commentedGreat big hint: Your project title, in addition to being immodest, contains a word that is not spelled correctly.
Two words, if the reader is from US rather than UK.
Comment #5
luxpaparazzi commentedI'm sorry, I did not formulate my question correctly.
Is it possible for adding, multiple-file upload fields in Drupal forms ...
or should I try to implement a custom Drupal field type?
Comment #6
luxpaparazzi commentedIs the new title: "Directory based organisational layer."
less immodest, or is there something else which I should change?
Comment #7
pillarsdotnet commentedBetter. And there is an issue for adding multiple-file upload capability.
Comment #8
pillarsdotnet commentedComment #9
luxpaparazzi commentedOk, I now got all forms working with Drupal forms API and got 0 errors by Coder ...
Comment #10
luxpaparazzi commentedComment #10.0
luxpaparazzi commentedspellchecked
Comment #10.1
luxpaparazzi commentedAdded "Application areas" and "Installation steps" to description ...
Comment #10.2
luxpaparazzi commentedtypo
Comment #11
klausiFirst: "lx_dir": what does that mean? please find a better module name. Also for the others.
Comment #12
luxpaparazzi commentedThank's for your time, i've done most of the changes as you asked, but I don't yet have a better short-name for my project.
- i used "lx_" for having a common namespace, even so it is not really meaningfull, at least it should be easy to replace, with something better
- "directory_based_organisational_layer" would be to long
- ideal case for me would be to remove lx_ from the name, but i suppose this would collide with drupal-core modules, probably I should use something like "orgdir", "odir"
I suppose I should use the same name for the "project ="-line and for the stream wrapper class?
Comment #13
luxpaparazzi commentedI've now changed my project's shortname to "odir", and used the same for the stream wrapper class.
All other changes you asked should now be ok.
Comment #14
luxpaparazzi commentedComment #15
elc commentedNo changes from #11 detected.
Last commit might be a hint.
Comment #16
elc commentedArgh!
If you move off the master branch and no longer keep it up to date, please clean it up so that people using the original git clone command in your application don't get the bum steer from running into code form 3 days ago.
Now actually looking at the code.
Comment #17
elc commentedA file about DOTS!
See also @return for the return value documentation.
what is this???? This means that this module only runs on your windows system, no one else. All this dir stuff should be based off the files directory or something similar.
defines are also always ALL_UPPER_CASE.
check_plain('-- Up --')variable_get('odir_system_base', odir_SYSTEM_BASE) . '' . $linkin HTML ...
"\n\n\t"* unless you are theming the smallest possible thing, such as a single field etc.
The two functions you have as theming functions, should be returning nested render arrays, and should probably be broken up into more theme functions. All the looping through files and carrying one should have been done in preprocess. theme is for output only, not logic!
This matches .jpg and .jpeg
This combines the two tests you have
PS There's more than jpg and orf files that are images ... and it should also be user configurable.
use this instead
That will automatically run the variable through check_plain for you too since it's an @ var.
Comment more of your functions more verbosely and precisely please. Some of this stuff is impossible to figure out what it's for without jumping through 3-4 functions, all of which are not function block commented and sometimes don't even appear to do anything.
My personal favourite thing to find in code when I'm investigating if it's worth using ... die(), even if it is commented out.
//die($field_identifier . " : " . $selected_field_id);
Comment #18
luxpaparazzi commentedI did a "git branch -d -r origin/master", I hope that did the trick for cleaning up that branch.
Comment #19
luxpaparazzi commentedThanks for the time you were spend revieweing my project. I see there were quite some issues.
I've checked your issues and solved most of them, but had to do a complete code and comments check.
The following define is used for defining a default variable, that may be changed in configuration forms.
define( 'ODIR_SYSTEM_BASE', "D:/fotoen_new");
odir_file_path_encoded() is a complement to odir_file_path()
I've tried adding comments to those functions, I hope it is now more clear what they are supposed to do. drupal_encode_path() does something completely different.
>> theme functions are exclusively for output of html. do not include logic, TABS, etc. All of this should be done by the preprocessor so that only the html with a few variables. Ideally, it should return a render array ready for drupal_render instead of raw html* so that it can be altered by other modules. <<
I've checked core and some other modules to find some good examples of theme functions. But I did not find many who return arrays. I wonder how I can make HTML-code readable when I take away all my \n and \t. Should I probably use .tpl.php files for all of my templates as does the forum module?
Comment #19.0
luxpaparazzi commentedModified planned features
Comment #20
elc commentedI'm guessing this is meant to be 'needs review'. Without status changes, issues are not seen by the right people.
Comment #21
luxpaparazzi commentedSome time passed. I did some further structural changes:
* Moved odir_taxonomy to new project, which can wait for now.
* Splitted block-code from odir_field to odir_fieldblock
* Splitted almost everything into theme-files
There is still much work to be done on the odir_field submodule as it should be considered stable for now!
Especially there is a bug in odir_field_block_view function which is not called as it should be...
I'll do some debugging in the following days.
Comment #21.0
luxpaparazzi commentedMoved taxonomy functionality to new Project : http://drupal.org/sandbox/luxpaparazzi/1384398
Comment #22
atul.bhosale commentedThe automated review scripts are flagging you on quite a number of points.
Some of them can easily fix, please check the Drupal coding standards.
You can also rerun the script and check the automated review scripts result which helps you before submitting project to needs review state.
see http://ventral.org/pareview/httpgitdrupalorgsandboxluxpaparazzi1301730git
See attachment
Comment #23
atul.bhosale commentedForgot to change status after adding review comment #22
Comment #24
elc commentedCoder review in #22 does not include manual review. Setting back to Needs Review.
Regarding the #1410826: [META] Review bonus program, please take note of the directions.
Instructions for reviewing
Comment #25
atul.bhosale commented@ELC
Thanks to put focus on a "Instructions for reviewing".
But the other side is there are many small issues regarding coding standard reported in Automated Review http://ventral.org/pareview/httpgitdrupalorgsandboxluxpaparazzi1301730git such as
Using proper configuration in editor you can avoid first two issues
please have a look at http://drupal.org/node/318 also find the attached .txt
feel free to change the status if this was a mistake.
Comment #26
luxpaparazzi commentedI've now checked all those minor coding errors detected by code reviewer and vetral.
Both now indicate 0 errors.
Comment #27
patrickd commentedplease don't assign your application yourself, only the current reviewer should do this
Comment #28
luxpaparazzi commentedComment #28.0
luxpaparazzi commentedUpdated installation instructions.
Comment #28.1
luxpaparazzi commentedAdded "project reviews" section
Comment #28.2
luxpaparazzi commentedHTML-Formatting bug
Comment #29
luxpaparazzi commentedPAReview: review bonus
Comment #30
klausiYou need to add the review bonus tag as described in #1410826: [META] Review bonus. That can be done in the input field above the comment body.
Comment #31
luxpaparazzi commentedPAReview: review bonus
Comment #31.0
luxpaparazzi commentedProject reviews
Comment #31.1
luxpaparazzi commentedadded review
Comment #31.2
luxpaparazzi commentedAdded project review
Comment #31.3
luxpaparazzi commentedadded project review
Comment #31.4
luxpaparazzi commentedproject review
Comment #32
klausiThanks for your reviews, just make sure that you pick applications that did not get a review in a long time.
Review of the 7.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. Get a review bonus and we will come back to your application sooner.
manual review:
Comment #33
luxpaparazzi commentedDrag and drop functionality is required all over the module: pages, fields and blocks
So I thought it would be a good idea, calling them one for all globally.
I use check_plain because the variable will be used as directory path by the module, and so I thought a minimal protection would be necessarly.
Comment #34
luxpaparazzi commentedklausi, thankyou for your review, suppose you spend some time with that review.
I've just corrected all your statements except the 2 as described in my last post, and let ventral do an auto-review, which gaves no errors.
I'm not quite sure how I would best integrate Drupal.behaviors into my module.
I've added some comments in odir.js, on how I think I should implement it, but I'm not quite sure about it...
Comment #35
klausiReview of the 7.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. Get a review bonus and we will come back to your application sooner.
manual review:
Sorry to bump this back to needs work, but you need to know where to use check_plain() and where not. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #36
luxpaparazzi commentedThanks for your review klausi!
I've now removed check_plain() from every non-output, but I'me not quite sure how to handle dynamic data in url(), should it be past do check_plain() or not? Example:
url("odir/image/jpeg/" . $htmllink_image_cache_preset . '/' . $path);$path in this example is provided from user input, and so must be cleansed one way or the other.
I now get the following errors from ventral:
I've corrected all your other statements, many of whom where zombies, which did not want to leave my code ;)
Comment #37
luxpaparazzi commentedI had 9 reviews from which 6 where used, so I use the other 3 for adding "PAReview: review bonus".
I will add more reviews later.
Comment #37.0
luxpaparazzi commentedadded review
Comment #37.1
luxpaparazzi commentedadded some more reviews
Comment #37.2
luxpaparazzi commentedadded review
Comment #38
alesr commentedJust a small notice...
You have implemented function odir_odir_acces_rules()
with a typo in acces -> access, which can cause problems.
Comment #39
luxpaparazzi commented@alesr: as it was my own hook name, and I did it constatly wrong, it did not make any problems
but thanks for telling me, I just hate spelling errors in code ^^
Comment #39.0
luxpaparazzi commentedadded review
Comment #40
luxpaparazzi commentedI now added drupal.behavior logic to my Javascript files.
Comment #40.0
luxpaparazzi commentedadded review
Comment #40.1
luxpaparazzi commentedadded review
Comment #40.2
luxpaparazzi commentedhttp://drupal.org/node/1359516#comment-5863402
Comment #41
klausiReview of the 7.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. Get a review bonus and we will come back to your application sooner.
manual review:
Comment #42
luxpaparazzi commentedThanks for your review. I corrected as you asked for.
I also did rework my installation instructions ... I'll check them again before changing my status.
odir_fieldblock module should been left desactivated for now, I'll check on that later.
Comment #43
luxpaparazzi commentedI now did a complete rework of the README.txt, it should now be clear how to use and enable the base module.
"Directory based access control" and "Field to directory" are actually untested as stated near some other known problems in the README.txt
Comment #44
zenlan commentedEnabling module Directory based access control throws several warnings (noted in README.txt "Directory based access control" and "Field to directory" are actually untested.) :
Warning: preg_grep() [function.preg-grep]: Unknown modifier 'o' in drupal_find_theme_functions() (line 1145 of E:\xampp\htdocs\adlibtools\includes\theme.inc).I continued with this module disabled as it threw these warnings on the content pages also.Using Chrome browser:
Creating and navigating directories and sub-directories worked without error when using links in the block or the content pane. Using the breadcrumb links threw returned error 403, 'access denied'. This was because the breadcrumb urls were malformed, e.g.
I am on page http://mysite/dir/test1%7C%7Ctest1sub1 and the breadcrumb for this page is http://mysite/%7C%7Ctest1%7C%7Ctest1sub1.
The breadcrumb link for the page above is http://mysite/%7C%7Ctest1 but the 'Up' url is http://mysite/dir/test1 while the link in the content pane is http://mysite/dir/%7C%7Ctest1
FILE UPLOAD:
Uploading a .txt file resulted in a white screen with the following:
{"main":"","block":"\u003Cdiv id=\u0022_odir_filelist_details_block_1\u0022 class=\u0022draggable_file\u0022 file=\u0022test1||test1sub2||README.txt\u0022\u003E\u003Ca href=\u0022\/odir\/download\/test1%7C%7Ctest1sub2%7C%7CREADME.txt\u0022\u003EREADME.txt\u003C\/a\u003E\u003C\/div\u003E","filecounter":1}
Uploading a .jpg file resulted in a white screen with the following:
{"main":"","block":"","filecounter":0}
In each case the file upload succeeded, the files were present in the correct directory.
I can't believe that such a complex module has no unit or web tests! Nor any exception handling and very little error handling. Flying without a safety net, imo! ;)
That is as far as I got for now. Interested to see how this progresses though, good luck! :)
Comment #45
zenlan commentedForgot to change status
Comment #46
luxpaparazzi commented@zenlan, thanks for your testing, well yes "Directory based access control" and "Field to directory" are actually missing some testing, I should probably put them into separate projects.
I've just corrected the bugs you mentioned.
You are right, I should put more error handling and unit testing into the module, but they would not have alarmed me of the bugs you mentioned.
Unit testing will be definetly a must for the access control module, which I'll have to implement before I can make a production release of that one.
Comment #47
zenlan commentedHi there,
I disabled, uninstalled, synced and re-enabled the module and found that my previous settings were still there... you have no uninstall() function, its not a major problem but good practice to remove variable settings when the module is uninstalled. See hook_uninstall().
The malformed links problem has been resolved, also the file upload error. I see files in the folders now! I can download text files and view image files. Only enabled the main module and Directory based image.
Interesting to compare the URLs in different browsers for filesystem path: E:\var\dbol\test1\test1sub2\test1sub2subsub1 :
Firefox: http://adlibtools.loc/dir/test1||test1sub2||test1sub2subsub1
Chrome: http://adlibtools.loc/dir/test1%7C%7Ctest1sub2%7C%7Ctest1sub2subsub1
IE9: http://adlibtools.loc/dir/test1%7C%7Ctest1sub2%7C%7Ctest1sub2subsub1
They look nice in FF but pretty messy in the others. Hardly a showstopper however.
I think this module has a lot of potential but it is very ambitious and I can't see it getting through the review process at this pace. I don't know what other people think but if I were you I would pare the whole thing down to a set of essentials and get that working well. Ditch the sub-modules that aren't finished and just concentrate on the core of your module functioning well... and build some tests! I would not recommend this module to clients as I could not guarantee the safety of their files. I would want to see tests that handle situations such as duplicates, forced overwriting, deletion, case-sensitivity and access control. Users can get a bit tetchy about their files, when bad stuff happens to them! ;)
Comment #48
zenlan commentedForgot to change status again.
Comment #49
aaronelborg commentedI'm trying to review your module. Did this:
git clone http://git.drupal.org/sandbox/luxpaparazzi/1301730.git directory_based_organisational_layer_....and it's all but empty. Only a .git file in there.
Perhaps you're working on it? Just putting it out there.......
Comment #50
luxpaparazzi commentedI now implemented hook_uninstall, and moved the optional modules to new projects.
I don't actually see any good solution for the separators ...
Comment #51
zenlan commentedLooks like they are busy restructuring the branch:
119 sec ago 7.x-1.x
http://drupalcode.org/sandbox/luxpaparazzi/1301730.git/tree/refs/heads/7...
Comment #52
zenlan commentedIs there a new git url for the main module?
(Don't worry about the URL separators for now, at least they are consistent within the application)
Comment #53
luxpaparazzi commentedok, I did a small misake with git commit after moving my files into a new directory and forgetting to move the hidden .git directory
The git-repo should now be ok, at least using
git clone --branch 7.x-1.x luxpaparazzi@git.drupal.org:sandbox/luxpaparazzi/1301730.git directory_based_organisational_layer_
Comment #54
luxpaparazzi commentedGoing back to status of AaronELBorg
Comment #55
luxpaparazzi commentedJust added the three related projects to the project page:
Related modules:
Directory based organisational layer - Adding nodes with fields
http://drupal.org/sandbox/luxpaparazzi/1535986
Directory based organisational layer - Access Control
http://drupal.org/sandbox/luxpaparazzi/1536040
Directory based organisational layer - Taxonomy Terms
http://drupal.org/sandbox/luxpaparazzi/1384398
Comment #56
zenlan commentedMuch better structure now imo, a bit less daunting to review. :)
When I disable the image module I get:
Perhaps choose a better 'default' directory than "D:/fotoen_new"? You could try the Drupal file paths set in admin/config/media/file-system instead?
Use a form_validate() function to check that the base directory actually exists and is writable. Currently it is possible to save a blank or non-existent path. You might also want to test the regex as a badly formed regex can blow up later on.
Defined ODIR_SYSTEM_TEMP but it doesn't seem to be used anywhere.
Permission to change the base directory setting could be custom.
Typo 'weigth' in menu array:
Paths could be formatted a bit better:
To avoid rtrimming the trailing separator every time consider stripping it on form_submit.
You might rename the function odir_set_breadcrump() to odir_set_breadcrumb() ;)
Try to notify the user before operations fail, e.g. I enabled the module without changing the "Base file-system directory", keeping the default which does not physically exist on my filesystem, the module appeared to create folders (no idea where, can't find them) and when I attempted to upload a file I got:
That's it from me for now! :)
Comment #57
zenlan commented... and forgot to change status again...
Comment #58
luxpaparazzi commentedThanks zenlan for evaluating and testing my module.
Here my comments:
Perhaps choose a better 'default' directory than "D:/fotoen_new"? You could try the Drupal file paths set in admin/config/media/file-system instead?Using admin/config/media/file-system is not a good idea, as all files would be shown twice in the file database table. I now set it to /tmp/odir_files which should be writable on every Unix box, and so should be easy for testing and evaluation.
I now added a validation function for the settings form:
Actually file_prepare_directory() is doing the rtrim() now.
I also added a global function odir_system_path which returns the phyiscal path, should be nicer than calling variable_get everywhere:
I suppose this won't be an easy task, writing controls for regex, and it is clearly noted that people should not touch them if they have no idea what they are doing.
I will have to find the right place for adding that code ...
I don't know what you mean with that one.
Comment #59
luxpaparazzi commentedforgot status change
Comment #60
luxpaparazzi commentedJust added some unit testing to the project.
Implementing DrupalWebTestCase-tests on the other side does not seem to be so easy ...
Comment #61
dark-o commentedReviewing....
Comment #62
dark-o commentedAutomated review:
see attached file in comment #64
Manual Review:
in the README.txt
typo:
Use the functionality *int* the activated blocks
I created folder in my files folder and set it up succesfuly as a root folder in
admin/config/odir/settings
I enabled blocks and created some sub folders
I tried to upload some .jpeg photos, photos were selected OK, but when I click Upload button nothing hapens.
I than manualy changed permision in new created sub folders to 777. I than clicked on one of the sub folders in drupal, but I got this:
Error
The website encountered an unexpected error. Please try again later.
Error message
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /home/darko/workspace/drupal7/includes/entity.inc).
EntityMalformedException: Missing bundle property on entity of type file. in entity_extract_ids() (line 7501 of /home/darko/workspace/drupal7/includes/common.inc).
I tried second folder and got same error.
I tried uploading photos with block after I changed permissions to 777 but still nothing happens
The module looks good conceptualy and will be useful tool
Comment #63
patrickd commented@Darko
Thanks for your efforts, but please don't paste these ugly automated reports in here, either provide a link or just attach it as txt file.
Comment #64
dark-o commentedAutomated review
Comment #65
luxpaparazzi commented@Darko Kantic, thanks for your review and for your testing.
I corrected the code formatting issues and the bug you reported.
I don't see why you needed to change permissions, did you create the subfolders with the module or manually?
Comment #65.0
luxpaparazzi commentedhttp://drupal.org/node/1281690#comment-5863540
Comment #66
dark-o commentedI create them with the module, but since upload did not work I thought it may be to do with permissions so I just 777 to test it. I'll re test .
Comment #66.0
dark-o commentedInstallation => README.txt
Comment #66.1
luxpaparazzi commentedadded review
Comment #66.2
luxpaparazzi commentedadded review
Comment #66.3
luxpaparazzi commentedhttp://drupal.org/node/1419502#comment-5899984
Comment #66.4
luxpaparazzi commentedhttp://drupal.org/node/1541718#comment-5900020
Comment #66.5
luxpaparazzi commentedhttp://drupal.org/node/1540804#comment-5900054
Comment #66.6
luxpaparazzi commentedhttp://drupal.org/node/1475274#comment-5900098
Comment #66.7
luxpaparazzi commentedhttp://drupal.org/node/1498566#comment-5900130
Comment #66.8
luxpaparazzi commentedhttp://drupal.org/node/1294332#comment-5900172
Comment #66.9
luxpaparazzi commentedhttp://drupal.org/node/1492608#comment-5900234
Comment #67
luxpaparazzi commentedI just splitted colorbox and ligthbox support to submodules implementing hooks.
This should make it easy for anyone to add other slideshow modules.
Comment #68
dark-o commentedreviewing...
Comment #69
dark-o commentedAutomatic review, couple of errors, see attached file
Manual Review:
-------------------------------------------------------------------------
1.
Typo: The tile of the add folders block is:
Foldernavigation
space is missing
-------------------------------------------------------------------------
2.
I created 2 folders using the create folder block and they were created OK
However, still no luck uploading files, when I click upload , below the block I get: "Array".
Files are not uploaded.
-------------------------------------------------------------------------
3.
When I click on the folder link on the Drupal page, say DIR1, after the image upload fails, I get the message:
Directory odir://DIR1 could not be created!
However, I can see the directory on the file-system.
When I click on the same link while browsing folder, it all works fine, this only happens after the image upload attempt.
-------------------------------------------------------------------------
4.
Folder navigation works fine, I created fey folders and navigated with the block. The -- Up --
link works fine, small problem is that the up link stays there when you are in the root, I would expect it to disappear.
Comment #70
dark-o commentedComment #70.0
dark-o commentedhttp://drupal.org/node/1403766#comment-5900278
Comment #71
luxpaparazzi commented@Darko, thanks alot for your bug reports, many of whom I inserted while adding controls in #67, i did not test correctly! Now everything should work fine. I did not correct the following:
Even drupal-core does not add comments to those functions.
Comment #71.0
luxpaparazzi commentedhttp://drupal.org/node/1309746#comment-5904620
Comment #71.1
luxpaparazzi commentedhttp://drupal.org/node/1455564#comment-5907598
Comment #71.2
luxpaparazzi commentedhttp://drupal.org/node/1540804#comment-5907646
Comment #72
dark-o commentedreviewing
Comment #73
dark-o commented----------------------------------------------------------------------------------------------------
Uploading jpegs
I tested upload an it did work. Well done. Couple of small enhancement request:
1. When I clicked the upload button I was not sure what was happening , so I clicked it again, resulting in photos uploaded twice. So some progress bar or hourglass or something is needed to indicate that upload is happening, after user clicks the upload button.
2. Also when files are finished uploading user would expect for the folder page to refresh automatically and files to be displayed on the page without the need to refresh the page by a user. May be drupal_goto function would do the trick, where you redirect to the same page you are on after upload is finished
I also tried uploading with drag and drop in Linux with Chrome, it did work.
----------------------------------------------------------------------------------------------------
Uploading other file types
I tried uploading .png file and it uploaded ok and displayed as the link in a block, as per README.txt
However when I clicked on a link to download the file I got:
Access denied
You are not authorised to access this page.
I was logged as admin
----------------------------------------------------------------------------------------------------
Colorbox and Lightbox
I enabled both Colorbox and Lightbox modules
Than I did chose each respectively on here:
admin/config/odir/settings_odir_image
but neither worked, when I went to the page with images they were displayed as before I enabled those modules
Also can you add to the Readme file a bit about this page:
fladmin/config/odir/settings_odir_image
---------------------------------------------------
keep going, nearly there....
Comment #74
luxpaparazzi commentedThanks @darko for your elaborated test.
> Uploading jpegs
images should be placed automatically at the bottom of the page, after upload... didn't this work?
did you get any error messages?
> Uploading other file types
Well it's seems that's a real bug, I have to check ...
> Colorbox and Lightbox
did you get any javascript errors?
which browser did you test with?
Comment #75
dark-o commented> Uploading jpegs
Images were placed on the page , see attachment screenshot
> Colorbox and Lightbox
no errors, just nothing hapens, see same screenshot, I was expecting lightbox or somthing to appear on the same page.
Or was something suposed to hapen?
Firefox and Crome
Comment #76
luxpaparazzi commented> Uploading jpegs
i mean javascript should add those images and files directly at the end of the list without any page reload ... didn't this work for you?
> Uploading other file types
Bug resolved
> Colorbox and Lightbox
i have to check that out ... as everything works at my machine
did you click on any image?
Comment #77
luxpaparazzi commentedI just added basic uploading status indicators, and fixed the download bug.
> Colorbox and Lightbox
Will only be lunched on clicking on an image.
> Missing function doc comment for test-classes
Even core does not have them...
Comment #77.0
luxpaparazzi commentedhttp://drupal.org/node/1505236#comment-5907726
Comment #77.1
luxpaparazzi commentedhttp://drupal.org/node/1455564#comment-5913166
Comment #77.2
luxpaparazzi commentedhttp://drupal.org/node/1538594#comment-5913256
Comment #77.3
luxpaparazzi commentedhttp://drupal.org/node/1538196#comment-5916780
Comment #77.4
luxpaparazzi commentedhttp://drupal.org/node/1512414#comment-5917052
Comment #77.5
luxpaparazzi commentedhttp://drupal.org/node/1447120#comment-5917222
Comment #77.6
luxpaparazzi commentedhttp://drupal.org/node/1536778#comment-5917502
Comment #77.7
luxpaparazzi commentedhttp://drupal.org/node/1483570#comment-5917628
Comment #78
klausiReview of the 7.x-1.x branch:
Errors parsing ./odir_web.test
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. Get a review bonus and we will come back to your application sooner.
manual review:
But apart from some minor issues I think this is ready.
Comment #79
luxpaparazzi commented@klausi, thanks for your review
I did correct those 4 issues.
Comment #80
dark-o commentedSorry, yes it works when you click on the immage
Nop, nothing happens at all on the page after clicking upload button, when uploading jpegs. When I refresh page manually images do appear in the center of the page, and Drupal message appears at the top of the page
SH01-13_1.jpg has been added (b).
SH01-19_1.jpg has been added (b).
When uploading other file types the files do appear at the bottom of the block.
Comment #81
luxpaparazzi commentedyour 2nd point is weired .... did you try clearing all caches?
Comment #82
dark-o commentedI cleared caches now, and it works, cool
jpeg images are uploaded on the center of the page, no refresh needed
Comment #83
luxpaparazzi commented@darko, thanks for your intensive testing
I suppose there was a theme being renamed and you got an older one somewhere in your drupal cache, i don't have any other idea ...
Comment #84
patrickd commentedThanks for your contribution and your work in the application queue! Welcome to the community of project contributors on drupal.org.
I've granted you the git vetted user role which will let you promote this to a full project and also create new projects as either sandbox or "full" projects depending on which you feel is best.
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
As you continue to work on your module, keep in mind: Commit messages - providing history and credit and Release naming conventions.
Thanks to the dedicated reviewer(s) as well.
Comment #85
luxpaparazzi commentedTank you klausi, patrickd, Atul Bhosale, ELC, pillarsdotnet, zenlan and Darko Kantic for there interesting comments and constructive critics. Especially as the project was definitely not the easiest one to evaluate, I am sure you did spend some time with it.
I promoted the project as full project @ http://drupal.org/project/odir and will release a Beta version soon.
I hope this will be an interesting contribution for the rest of the drupal community.
Comment #86.0
(not verified) commentedhttp://drupal.org/node/1485756#comment-5917798