bookmarklet for submission of scoops only works if user already logged in

simillibus - September 28, 2008 - 20:21
Project:Drigg
Version:5.x-1.36
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Noted on my own site, and replicated on Drigg.org

If the user is not already logged in to the Drigg site, the bookmarklet (see http://www.drigg-code.org/node/127) for submission of scoops takes the user to the user account page, with the "create a new account" tab active.
When the "login" tab is then made active and the user logs in, one is not directed to a "submit" page with the scoop information filled out. On the Drigg.org site, I am redirected to the "Published scoops" main page; on my site, I am redirected to my User Profile page. Either way, the attempt to submit an article is aborted.

All works fine, if the user is already logged in to the Drigg site prior to using the bookmarklet to submit an article.

Note that in Pligg, the very similar bookmarklet does work if not already logged in - if submitting an article using the bookmarklet when not already logged in to the Pligg site, the user is directed to a login page, and on logging in, is redirected to a submit page, with the title and URL of the nicely filled out.

On my own site, I'm using the 9/25/08 release of Drigg (drigg module release 5.x-1.36), using the Drigg/Drupal ("express install") distribution from the Drigg downloads page; with Access Permission set for Scoop submission by anonymous users (but with "Allow anonymous posting of Drigg stories" denied in the Drigg module configurations). This problem is replicated on the drigg.org site.

The bookmarklet I'm using (configured here for drigg.org) is
javascript:q=(document.location.href);t=(document.title);s=(document.getSelection());void(open('http://drigg.org/node/add/drigg?url='+escape(q)+'&title='+escape(t)+'&body='+escape(s),'',''));

The "official" bookmarklet (below, again configured for drigg.org) does the same.
javascript:q=(document.location.href);t=(document.title);void(open('http://drigg.org/node/add/drigg?url='+escape(q)+'&title='+escape(t),'','resizable,location,menubar,toolbar,scrollbars,status'));

#1

ajayg - September 29, 2008 - 04:16

This is interested since elsewhere in drupal, if you goto a page which shows login page first to login, it redirects automatically to the page you intended to go. I always thought it is provided by core default but looks perhaps module developers need some extra goto.

#2

simillibus - October 26, 2008 - 08:26

nudge nudge -
any progress w this?

#3

mercmobily - October 28, 2008 - 16:01

Hi,

Drigg is in code freeze, since the port to D6 is in pre-testing.
So, no, not yet!

Merc.

 
 

Drupal is a registered trademark of Dries Buytaert.