Active
Project:
nodeformpopup
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Dec 2006 at 05:39 UTC
Updated:
12 Apr 2007 at 15:49 UTC
Jump to comment: Most recent
I'm using this module with nodeformpopup in conjunction with vote_storylink. When the selected text has an apostrophe or a quote, the form is populated only till the apostrophe or quote. It somehow acts as a terminator.
Comments
Comment #1
drupalzack commentedThis doesn't happen on all sites, but on some
Comment #2
Egon Bianchet commentedI am not able to reproduce this issue. Does this happen in the URL field? in the body?
Try to delete your nodeformpopup bookmarklet and add it again after updating the module to the latest 4.7 version. Make sure to have the latest nodeformtemplate too
Comment #3
drupalzack commentedHi!
Sorry for the long delay. Here's how to reproduce this:
Download the latest nodeformpopup and nodeformtemplate (4.7-dev, not head) for drupal 4.7
Enable nodeformpopup for Blogs, set template for blogs as %title and %description (for selected text)
The idea is you should be able to go to any external webpage, select a text and submit it to a blog via nodeformpopup. (for purpose of illustrating this bug).
Goto http://www.dnaindia.com/report.asp?NewsID=1075610
Select the first paragraph.
This para has quotes in them which is where this module doesn't work as expected. Now, submit via nodeformpopup.
The title field is properly filled
The description field(selected text) only has the word 'With'. Barfs when it finds an apostrophe or quote.
Comment #4
Anonymous (not verified) commentedI'm reporting this so that you know this problem doesn't just happen with nodeformtemplate. I created a simple module that creates nodes by importing the body of an html page. When it get's to an apostrophe, it stops importing.
Comment #5
Egon Bianchet commentedIt's very likely that it's the bookmarklet fault, since it's not url-encoding the selected text ...
Comment #6
drupalzack commentedAnyone had any luck fixing this?
I was looking at the wordpress bookmarklet and it correctly handles quotes. Here's what it does:
The only diff between this and our module is, wp doesn't open another window. For some reason a similar code isn't working. I'm not a js guy
Comment #7
drupalzack commentedNever mind fixed it. Takes a little while to get used to javascript. As suspected, encoding was the problem.