This is a simple module that wraps around a php translation of the reddit api. Upon activation, Redditview creates a block that will pull in a set number of the most popular items from the users subreddit of choice, including the item title, preview thumb (if available - with link to original image), and a link to the comments associated with the subreddit item. The api can be extended much further to include commenting from drupal, upvote count, etc.
Once activated, this module creates a db table that is populated with:
Reddit Username
Reddit password
subreddit name
Number of posts to return
The form is found here: admin/config/redditview/form-fill
I intend to develop this module more and add features to include upvote count, commenting, as well as views integration, and js prettifying. Right now, I'm placing this rudimentary implementation to gauge interest in this project / module.
Project page: http://drupal.org/sandbox/EthanT/1995950
Git clone command: git clone --branch 7.x-1.x EthanT@git.drupal.org:sandbox/EthanT/1995950.git redditview
Reviews of other projects:
http://drupal.org/node/1941608#comment-7421430
http://drupal.org/node/1984222#comment-7421454
http://drupal.org/node/1913916#comment-7421488
http://drupal.org/node/1997826#comment-7426482
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot - 05152013 - 09:16:09 PM.png | 120.88 KB | ethant |
Comments
Comment #1
PA robot commentedLink to the project page and git clone command are missing in the issue summary, please add them.
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #2
ethantAdded link to project page and git clone command.
Comment #2.0
ethantAdding project page and git clone command.
Comment #2.1
ethantAdding project review note
Comment #2.2
ethantanother project review added
Comment #2.3
ethantadded link to project review
Comment #2.4
ethantadded git branch info
Comment #3
ethantCompleted 3 reviews for high priority review.
Comment #4
ethantUpdating status
Comment #5
stefan lehmannThe automatic code review says that you should remove the .project file of your IDE from the repository, see http://ventral.org/pareview/httpgitdrupalorgsandboxethant1995950git-7x-1dev
Manual review of the 7.x-1.dev branch
And btw I think you didn't do any manual code review at all. So I'm not sure if you are even allowed to claim the PAReview: review bonus tag. But it's not to me to decide. :-)
Comment #6
ethantHey Stefan - thanks for the review. Before I address the items you found, I wanted to address your comment about me doing no manual review. After running the par script, I went through each of these modules manually, and tested them. The modules that I chose, per the instructions, were at the top of the list. It just happened that these modules happened to have all been towards the end of the review process, and have already addressed all relevant issues, leaving me very little to comment about. Sorry, but these are the cards I was dealt. Had there been newly submitted modules at the top of the queue, my comments would have been much more detailed.
Comment #7
molenick commentedFrom: https://drupal.org/node/1975228:
Pick the oldest application from the review bonus list and get started! (If it is empty pick the oldest from the "needs review" list)
After you did at least 3 manual reviews of other applications you have to reference them in the issue summary of your application issue. You can edit the first post (=issue summary) of an issue. Create a new section "Reviews of other projects" and add links to the exact review comment, e.g. like this one http://drupal.org/node/1381726#comment-5418942
My interpretation is that if you don't have anything to contribute beyond what has already been contributed, you should move on to the next project that needs a contribution.
I've been digging through the application queues for the past few days and there are a lot of applications that need manual review by people of different experience levels and skill sets.
Like Stefan, I'm not to judge but running pareview.sh and testing the module do not strike me the same as being a manual code review.
Comment #8
molenick commentedA few review notes:
1) You're using branch 7.x-1.dev, when you should probably be using something like 7.x.-1.x. Read this for more information about release naming conventions.
2) I echo Stefan's concerns about protecting the settings forms with custom permissions.
3) You should avoid storing login details for other sites and services in plain text, while this isn't a security problem for the Drupal site itself, it is for the greater internet. Are there are auth options available via Reddit's API?
Comment #9
ethantThank you for your critiques, molenick - I will be working on these this evening.
Comment #9.0
ethantadding comment numbers
Comment #10
ethant1) Master branch deleted.
2) Config page added.
3) Table is necessary - I plan to add to it as I extend the module with reddit account options user can store in drupal.
4) Libraries dependency added.
5) Permissions requirement added to menu hook - now user must be logged in to use form.
6) Tpl added.
7) .project file removed
Comment #11
ethant1) Switched to 7.x-1.x
2) Pass now stored as hash.
Comment #11.0
ethantchanging git version clone command
Comment #12
ethantAdded 4th project review: http://drupal.org/node/1997826#comment-7426482
Comment #12.0
ethantadded project review http://drupal.org/node/1997826#comment-7426482
Comment #12.1
ethantCorrected description.
Comment #13
delta commentedMy review:
line 47 .module
why are you creating an array $base, and then concat with another array, since there are no condition, the two array declaration can be merged into one.
.module redditview_form
The form that you expose to authenticated user, may need a validation before inserting user submitted values in db.
.install line 25, 32, 39 and 46
the description values are not really helpful ;)
.tpl.php
Your template is full of php code, move it into a theme preprocess function,
truncate_utf8() must not be in a template, poor themer :)
example $the_title must already be defined and prepared in the template.
Happy to see a reddit module in here :)
good luck
Comment #14
delta commentedComment #15
ethantWill update shortly - waiting for api author to get back to me regarding a functionality q.
Comment #16
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #16.0
PA robot commentedtypo