Closed (fixed)
Project:
nodeformtemplate
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2006 at 14:05 UTC
Updated:
24 Oct 2006 at 14:15 UTC
Picking up from the nodeformpopup issue: even when logged in, a popup submitted weblink will be from Anonymous unless I manually add the author name.
Also, when I add a weblink using nodeformtemplate/popup, it adds the weblink to the menu and must be removed manually by the admin.
When using nodeformpopup without nodeformtemplate (using the prepopulate module), I don't have these problems, and nodeformpopup works great, except prepopulate seems unable to fill the url field, but I'm still looking into that one.
Comments
Comment #1
doulos12 commentedAll fixed, although I've bypassed nodeformpopup as it won't fill in the URL, but that likely has something to do with my sketchy knowledge of JavaScript. Here's the code I'm using for anyone else interested:
[code]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/node/add/weblink?&title='+t+'&url='+a+'&edit[body]='+s, null,'modal=0,status=1,scrollbars=1,toolbar=0,resizable=1,width=730,height=500'));[/code]
Now if I could only get it to pop up instead of under in Firefox....
Comment #2
(not verified) commented