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

Egon Bianchet’s picture

Assigned: Unassigned » Egon Bianchet
Category: support » bug

Mhm, there's a problem in how I handle the page redirection .. I'm looking at it

Egon Bianchet’s picture

I 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

Egon Bianchet’s picture

Status: Active » Fixed

Updates? Reopen this if the problem persist

doulos12’s picture

Status: Fixed » Active

OK, 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.

Egon Bianchet’s picture

Try to download again nodeformtemplate, I've fixed some bugs that may be related (see http://drupal.org/node/87775)

doulos12’s picture

Status: Active » Fixed

Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)