CVS edit link for pwaterz

I have many motivations for wanting to become a planned contributor. I have been involved with Drupal now for about a year and have been loving every minute of it. Without Drupal I may not have my current job as the Lead Web Developer at Chicago Public Radio. I freelanced my first Drupal site for them which was inisdeandout.chicagopulicradio.org. They were please with my work and gave me the opportunity to do the famous This American Life site(www.thislife.org). In the middle of completing that project they offered me the position. Sense then I have been working with Drupal almost every single day. We are currently in the final stages of releasing www.chicagopublicradio.org as our 3rd Drupal site. One major contrib module that I will be wanting to contribute back to the community is the NPR Api module. I custom built a module that allows internal staff to pull any story or piece of content from npr api's and create nodes from that data. The module is currently customized for Chicago Public Radio, but once the new site get's launch I will be modifying it to work as a contrib module. The module I currently want to upload is a module that allows you to select a input filter for comments. This was implemented by the 'filter by node type' module but I felt it should be separated from that module and live on it's own. I have also done consulting work with Palantir and more specifically Larry Garfield. All in all I would really love to contribute to the Drupal. I am heavy follower of Linux(Debian is my flavor of choice :)) and enthusiastic about the power the open source world has gained over the past few years and will love to add to it.

Comments

pwaterz’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new2.27 KB

This is my comment input filter module. This module adds the ability to restrict and set the default for the input filter on comments. The settings are added to the content types comment settings.

svendecabooter’s picture

Status: Needs review » Needs work

Can you elaborate on the differences between this module and the Better formats module, which seems to provide similar functionalities (based on your brief description).

pwaterz’s picture

I did not know about that module. But after playing around with it for a bit I found a few differences. One difference is in configuration. On the content type settings page it forces you to share the allowed types for the node and for the comments. My module is specifically for comments. Second in my use case, Better Formats is way more than I needed. I just need control of the comments input filters and not the content types. Third it doesn't seperate the control between comments and node types, you have to enable the node type control to get control of the comment filters. Which is the same issue that I had with Filter by Node type.

The main reason that I really would like a CSV account is for the NPR module that I have developed. I can setup a demo for that if that would help the process along.

avpaderno’s picture

Hello, and thank you for applying for a CVS account.

The main reason that I really would like a CSV account is for the NPR module that I have developed.

In that case, you should use that module for the CVS application.

pwaterz’s picture

That module is not complete yet. Won't be for a month or two.

pwaterz’s picture

StatusFileSize
new5.77 KB

Alright so I have a new module. Filefield audio insert. The module allows a user to embed audio into the body of nodes. This module is a CCK widget that extends the filefields functionality by adding an insert button after upload. This module is somewhat similar to insert expect it is for audio. It uses mp3player to handle the audio play back. On the settings for the cck widget you will be able to choose which mp3player settings you wish to use. It will also decompress gracefully if javascript is not enabled by just displaying a link to the piece of audio. Supports fckeditor, ckeditor, tinymce and all other wysiwygs. I still consider the module beta, but everything works thus far and would like to get some user feedback.

avpaderno’s picture

Status: Needs work » Needs review
Issue tags: +Module review
pwaterz’s picture

StatusFileSize
new6.98 KB

I added some new functionality:
-Added the ability to choose if the file name is linked or not when you setup the field
-Added the option to upload an image to use to insert instead of printing the name of the file
-added some t()'s
-fix a bug with some of the javascript embed code.

pwaterz’s picture

StatusFileSize
new10.34 KB

Alright so I have a stable version of the npr module now to. The description is in the first post.

svendecabooter’s picture

Status: Needs review » Needs work

Please decide which of the 2 submitted modules should be up for review, so we can focus on one in particular.

pwaterz’s picture

Please focus on filefield audio insert. Thanks.

svendecabooter’s picture

Status: Needs work » Needs review
avpaderno’s picture

Status: Needs review » Needs work
  1.   require_once dirname(__FILE__) . '/filefield_audio_insert_widget.inc';
    

    There is a Drupal function to use in such cases.
    It's not a good idea to unconditionatelly include a file; it's better to include the file when necessary, or use the Drupal features that allow to report to Drupal which files need to be loaded in some cases (before a menu callback or a theme implementation is invoked, for example).

  2. Check you are using the correct indentation character; the currently set one is the tab character, which is not the one suggested in http://drupal.org/coding-standards.
  3. Some of the files use the short PHP tag <?, when it is suggested to use the standard one (<?php).
  4. 		$form['audio_insert']['audio_insert_image_fieldset']['default_image_thumbnail'] = array(
    			'#type' => 'markup',
    			'#value' => t('<img src="/'.$widget['default_image']['filepath'].'" width=150 />'),
    		);
    

    The first argument of t() is a literal string, not a dynamic value like the value returned from a function, or the concatenation of two strings.
    In that case is not even necessary to pass the string to t(). The purpose of the function is to translate strings, and HTML tags are not translated.
    Since the argument passed to the function is not the correct one, the argument will not translated, though.

  5. See http://drupal.org/coding-standards to understand how a module should be written; in particular see how the code should be formatted (control structures and functions).
pwaterz’s picture

I will get on the asap. Should have something by tonight or tomorrow.

pwaterz’s picture

StatusFileSize
new11.29 KB

Alright, I think I have made all the correction that you have asked. As far as the include goes, I actually just borrowed that method from the imagefield module, but I changed it to module_load_include. Thanks so much for your time.

avpaderno’s picture

Status: Needs work » Needs review
pwaterz’s picture

Hey guys, just wondering if anyone has had a chance to take a look? I understand it's the holidays and everyone has lots to do. Just excited to see if this can get contributed.

pwaterz’s picture

Is there anyone out there that can please please review my module?

pwaterz’s picture

Component: Miscellaneous » miscellaneous

This has become very discouraging. I think this module would be very useful for a handful of people.

pwaterz’s picture

Component: miscellaneous » new project application
lorinpda’s picture

Hi,
I installed your module on a fresh Drupal 6.20 installation.

This is not a complete review, however I did find some issues that are easy to fix.

  1. I ran you source code through Coder and found that you have a number of formatting issues with the file listing filefield_audio_insert_widget.inc
  2. These are couple "take or leave them" suggestions :) -- Consider including a small audio file that folks can use to test their installation. Most sites are going to have a very small php file upload limit and they might be scratching their heads on how to increase it. If you supply folks (or supply a link) to an audio file you know they can test with. My guess is you will save yourself a lot of installation support work. Along with that I'm implying it would really nice to give folks an extended installation and setup guide. I had to scramble to find an audio file that was under 2 megs. Another example, if you don't set the input filter the "full html" your player is not going to render. In testing, even I got confused for a moment. Again, all optional. Just a thought.
  3. Going along with point 2, I would also consider implementing hook_help() to provide administrators with some guidelines.
  4. On my installation, I was getting issues with paths. After much debugging I found that the path on both the server side and client script side needed the Drupal base path.
    • I used Firebug and found that you 2 javascript listing were producing http 404 errors. All I did was change
         '/filefield_audio_insert/embed/'
      

      to

        Drupal.settings.basePath + 'filefield_audio_insert/embed/'
      

      That was in filefield_audio_insert_all.js . And the in filefield_audio_insert.js I changed:

      'filefield_audio_insert/file_link/'
      

      to

      Drupal.settings.basePath + 'filefield_audio_insert/file_link/'
      
    • On the server side, same issue with the path. I changed in the file listing file_field_insert_audio.module method ilefield_audio_insert_embed(). Changed:
      $embed = theme('mp3player', $player, '/' . $file->filepath);
      

      to

      $embed = theme('mp3player', $player,  base_path() . $file->filepath);
      

    Those changes got the players to render and play the audio files.

  5. I didn't realize at first that you were inserting the audio player in the body of the node. Therefore, if the user has entered text in the body before invoking the "Insert Audio" button, the player is inserted right after the last text character. Might be nice to prepend a &nbsp; or something to give it some padding between the player and text.
  6. This may be redundant with my comments about an extended setup. If you click on the "Insert Audio" button multiple times, your module inserts multiple players for the same audio file (in a single node body). I don't know if that is by design?, or a bug. If it's design. then I would let folks know the player is not going to be replaced when editing a node.

I hope this helps.

I live in Chicago myself. A couple of my friends have been featured on "vocala". Thus I really wanted to reach out and help a fellow Chicagoan who is doing great work!

I gave the rest of your code a cursory review, didn't see any other issues. Please see if any of the changes I suggested make sense. The folks who review the Druapal cvs application truly have a daunting task. I'm also in the application queue. My recommendation is, help the folks out on Drupal.org by reviewing some of the other applications. I know that they are trying to recruit more folks to do the reviews:) Therefore, why not help out and review some of your fellow applicants : )

Again, hope that helps, Lorin.

avpaderno’s picture

Status: Needs review » Needs work

I am changing status as per previous comment.

pwaterz’s picture

StatusFileSize
new12.02 KB

1. Fixed formatting issues.

2. As far as including an audio file goes, I feel that is unnecessary a quick google search of 'test mp3' returns all kinds of results.

3. Hook help has been implemented. Also did a screen cast located here http://www.lightondesigns.com/filefield_audio_insert_screen_cast.mov if the quality is to high let me know.

4. All code changes have been implemented

5. I don't want to insert any unnecessary text into the post. This might annoy some users. I don't believe it is that hard to just enter a space after it has been inserted.

6. Yes wrote the code to insert it multiple times. What if someone wants the audio at the top of the post and the bottom?

Thanks so much for your time. I really do appreciate it. I never thought to review other peoples module. I thought it was only up to the reviewers, but I will definitely take your advice and try and offer some support for others as well.

Again THANK YOU SO MUCH! :)

lorinpda’s picture

Hi,
I reviewed the version posted in comment #23 on a Drupal 6.20 installation. Nice job, but still a few issues:

  • Still getting the 404 errors as detailed in my comment #21. You added the Drupal base bath to the server side code, but not to the client side javascript JQuery. On my installation I again applied the changes detailed in comment #21 to the javascript listings. Bingo, that cleared the 404 errors and got the player to work.
  • Please make sure you set Coder (Selection Form) to "minor" and "Internationalization". Once those options are set, Coder still reports formatting issues and strings not being passed to t(). Easy to fix, once identified.
  • Your README.txt file has a typo in it. Please change "suer" to "sure"

Again, nice job, really close.
Hope that helps.
Lorin

pwaterz’s picture

Sorry about that. Here you go all fixed up :)

pwaterz’s picture

StatusFileSize
new12.05 KB

Woops forgot to upload here yea go.

pwaterz’s picture

StatusFileSize
new12.04 KB

Woops again, lol...I noticed I missed a base path line. Here you go.

lorinpda’s picture

Status: Needs work » Reviewed & tested by the community

Hi,
I reviewed the version of your module posted in comment #27. Please check the last line of your README.txt file (so minor, I'm giving this a go :) ).
.....
All issues fixed. Coder reports no issues. Module works as expected. This code passes my inspection.
....
Great job.
.....
Hope that helps.
Lorin

pwaterz’s picture

Thanks again. I really appreciate your help. Any module reviewers out there want to take a quick look ;)

avpaderno’s picture

Status: Reviewed & tested by the community » Postponed

Please read all the following and the links provided as this is very important information about your CVS Application.

Drupal.org has moved from CVS to Git! This is a very significant change for the Drupal community and for your application. Please read the following documentation on how this affects and benefits you and the application process:Migrating from CVS Applications to (Git) Full Project Applications.

  • If your application has been "needs work" (or "postponed (maintainer needs more info)"), your application will be marked as "closed (won't fix)". You can still reopen it, by reading the instructions above.
  • if the status of this application is a different one, it will be changed to "postponed"; you will be able to reopen it by following the instructions in the above link.
pwaterz’s picture

Title: pwaterz [pwaterz] » Filefield Audio Insert
Project: Drupal.org CVS applications » Drupal.org security advisory coverage applications
Status: Postponed » Needs review

Link to my git sand box http://drupal.org/sandbox/pwaterz/1077332. Thanks for everyones time!

pwaterz’s picture

What does a guy have to do to get his module looked at? This process is so discouraging. I have like 5 other great modules that I really would love to give back to the drupal community but I can't. Having a hard time seeing the light at the end of the tunnel. Can some please please look at my module?

Poieo’s picture

pwaterz - Your audio insert module was exactly what I was looking for. But...can't get it to work.

I've installed your module and mp3player. If I print the audio insert filed on the node view set to display via mp3player, it works just fine. However, the actual file inserted into the node body just displays "You may need: Adobe Flash Player."

Any thoughts?

G Gavitt’s picture

I tired your module from comment # 27 and I am having the same exact problems as Poieo. I tried rolling back my version of the mp3player module with no luck. I am also assuming the field insert is supposed to work when it is set to hidden via the content type display EG like the insert module.

pwaterz’s picture

This is because of a recent change in the new version of the mp3player module. I am currently working on a fix. I will post it as soon as I figure it out.

Poieo’s picture

Thanks!

Drupal.org just finished a redesign, the community just launch Drupal 7, they just migrated to Git, and this week is DrupalCon. So you may need some extra patience for them to respond to your request for your module review...they'll get to it.

Thanks again for the great contribution!

Poieo’s picture

@pwaterz - Any timeline for this fix?

Obviously no pressure to do so. But I have to make a decision between this module or taking another route asap.

pwaterz’s picture

I'll see if I can get it done tonight.

pwaterz’s picture

StatusFileSize
new12.51 KB

Here is the fixed verision that now works with mp3player 6.1. I have also updated the git repo as well.

Poieo’s picture

Works like a charm! Thanks for your work. Look forward to your contributions.

G Gavitt’s picture

Working great here as well... Thank you pwaterz!

lorinpda’s picture

Hi.
I took a snapshot from git. Really minor:

  • Coder reports one formatting isssue:
    • Line 49: Use an indent of 2 spaces, with no tabs
      $embed = str_replace('mp3player_1', 'mp3player_' . $delta, $embed);
  • Please remove the CVS markers on your file listings (// $Id$).

I assume the CVS markers issue is the reason why the status on applications like yours was changed from "Reviewed and Tested by the Community" to "needs review" :) Thus please take care of formatting issues and I'll be happy to change the status back to "Reviewed and Tested by the Community" .

Hope that helps.
Lorin

pwaterz’s picture

Done. Thanks for your time.

pwaterz’s picture

Status: Needs review » Reviewed & tested by the community
lorinpda’s picture

Hi,
I inspected the latest snapshot of your git sandbox. You removed the CVS marker from one file listing (you main .module file). However, you did not remove the CVS markers from the rest of the file listings.

Hope that helps.

pwaterz’s picture

Sorry I had made those changes, still getting use to git. It should be good now.

Poieo’s picture

@pwaterz - Not sure it's appropriate to ask for a feature request when this isn't actually a module yet. But, if you could get this working with FileField Sources so you could attach files then insert them, that would round this thing out.

pwaterz’s picture

I did get it approved. But that is not a problem to make it work with filefield sources. I already have written 2 extentions to that module. I will be submitting those next to project. http://drupal.org/project/filefield_audio_insert, that donwload hasn't appeared yet but I have been told that can take up to 12hours to show up. Make a feature request on the module.

wookjr’s picture

Category: task » bug
Status: Reviewed & tested by the community » Needs work
StatusFileSize
new8.06 KB

I'm happy you created this module, it's exactly what I needed. I have one problem. I followed the installation instructions and watched the video. All went fine, but when I load up the page, the player says "file not found". Is there a setting I'm missing?

pwaterz’s picture

Please go and download the project release at http://drupal.org/project/filefield_audio_insert. If you still are having problem please post an issue and I will be more than happy to take a look.

pwaterz’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

rfay’s picture

Status: Closed (fixed) » Needs review

Somehow this application fell off the radar and got marked "fixed" by the requester (pwaterz) but it never was even RTBC. So setting to "needs review" and perhaps this can get done.

The sandbox somehow became a project and is at http://drupal.org/project/filefield_audio_insert

rfay’s picture

Status: Needs review » Reviewed & tested by the community

This was RTBC after a reasonable review in #28, right before the git migration. As a result, should be RTBC.

rfay’s picture

Status: Reviewed & tested by the community » Fixed

Git vetted user role granted.

Thanks for your patience in this, and we welcome your contributions. Thanks so much.

And don't forget to come back and review somebody else's application every day :-) We have a terrible backlog.

sreynen’s picture

Category: bug » task

Just correcting the category.

temelkoff’s picture

pwaterz , what happens to your 2 extensions to filefield_sources module?
Filefield sources taxonomy and filefield sources node title.

Please give more info. I need exactly this kind of extension

Status: Fixed » Closed (fixed)
Issue tags: -Module review

Automatically closed -- issue fixed for 2 weeks with no activity.

avpaderno’s picture

Title: Filefield Audio Insert » [D6] Filefield Audio Insert
Component: new project application » distribution/profile
Issue summary: View changes
Status: Closed (fixed) » Fixed
Issue tags: -Module review

I am giving credits to the users who participated in this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.