I finally got the following to work in for weblinks combination with nodeformtemplate:
javascript:w=window;d=document;a=encodeURIComponent(d.location.href);t=encodeURIComponent(d.title);if(w.getSelection){s=w.getSelection();}else if(document.getSelection){s=document.getSelection();}else if(document.selection) {s=d.selection.createRange().text;}else{s='';};void(w.open('http://crossfeednews.com/nodeformpopup/add/weblink?&title='+t+'&url='+a+'&edit[body]='+s, null,'modal=0,status=1,scrollbars=1,toolbar=0,resizable=1,width=730,height=500'));
But when I create a new popup, I can post a weblink, but the author is listed as anonymous, even though I'm logged into my site. This is probably more likely a bug in my code than yours. The odd thing is that I can submit it, but only registered users have permission to post weblinks. The submitted node shows up in the log, but not in the "recent posts" list. Any ideas? (If a person isn't logged in, they should be redirected to a login page or the home page so they can log in and try again.)
Comments
Comment #1
Egon Bianchet commentedMhm, there's a problem in how I handle the page redirection .. I'm looking at it
Comment #2
Egon Bianchet commentedI reworked the login/redirect code, so please try again as soon as Drupal rolls an updated tarball (or use CVS). You may need to update your bookmarklets
Comment #3
Egon Bianchet commentedUpdates? Reopen this if the problem persist
Comment #4
doulos12 commentedOK, been trying different things, just downloaded the latest, and the problem persists. But the only way I can get it to recognize me as the author (even using the standard add weblink link in Drupal) is by disabling nodeformtemplate, so I'm thinking the problem is there instead of here. Also, it's adding a menu item for each new link. I don't want these added to the menu. Not sure which one's causing that.
Comment #5
Egon Bianchet commentedTry to download again nodeformtemplate, I've fixed some bugs that may be related (see http://drupal.org/node/87775)
Comment #6
doulos12 commentedThanks.
Comment #7
(not verified) commented