Closed (outdated)
Project:
Doubleclick for Publishers (DFP)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2012 at 17:51 UTC
Updated:
20 Jul 2025 at 13:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
hypertext200Comment #2
hypertext200Ignore the #1
Comment #4
bleen commentedDOH!! I had this open so I cross posted ... ignore this review.
Comment #5
bleen commentedI havent even looked at the JS files yet (other than to say that there are LOTS of coding standards issues in there - I recommend you install Dreditor so you can see them more easily)...
That said, this is an interesting idea, and I'm open to learning a bit more about how this might work but I'm not sure yet that this is something I would include. If I did it would * definitely* be an option that would need to be turn-off-able. That might be as easy as saying that the user could choose not to turn on the button in the WYSIWYG configuration, but I want to be clear that this has to be optional to even be considered.
One thing that stood out immediately is that you are creating a wysiwyg directory for the plugin ... that folder should definitely live in dfp/plugins/wysiwyg. I'm also concerned about naming in general. It appears you are calling your button "advertisement" instead of "DFP Tag" or "DFP Ad" or something like that. I'm weary of name space collisions with other advertising modules.
Plenty of other comments below...
Violates Drupal coding standards
Why are you removing spaces here?
why are you adding spaces here?
Violates Drupal coding standards
Violates Drupal coding standards
Why are we using query strings here instead of a proper menu callback?
Comment #6
hypertext200Thanks for the review. This essentially is an optional one and you never know unless you install WYSIWYG and you see the button option there. Thanks for the coding standard issue those happened due to auto correct on TextMate Drupal Coding standards plugin. I'll fix them when I get some time. Add/Removing spaces defensively from the editor, it auto correct most of them while I type. For the last query string, It's my bad, I'm using something else for url callback in the original code I made and I removed just that code.
We can name this as DFP Ad Unit for namespace problems. Thanks again for reviewing I'll roll a new patch with those changes soon.
Comment #8
kalyanik commentedThis plugin doesn't seem to be working for Filtered HTML.
Comment #9
vladimirausThank you for your contributions.
Drupal 7 is no longer supported.
Closing issue as outdated.