Adding automatic redirect to already submitted stories?
Posted July 9th, 2008 by jcaligori
As my site has grown this is the number one request I have received. Anyone have any ideas how to do this? or how to atleast add a link to the existing scoop?
Let me preface - Drigg is great. I launched a site with it just about two weeks ago, and I am loving it. Thanks for all of your work on it. I'm not much of a coder, but if you ever need help from a novice - let me know.
My issue. This thread (and the thread over at the Drupal site) indicate that the bookmarklet does automatically redirect to the duplicate scoop. My bookmarklet doesn't. Users get an error message and a redirect to the front page. If the scoop is upcoming or otherwise buried, they don't get taken to it.
Can you please replicate the problem on http://www.drigg.org?
This implies adding a scoop to Drigg.org, and then adding a link somewhere (ala bookmarklet) that points to it.
I just joined drigg.org. Once I set up my account, I tried to submit a story to replicate the problem, but when I try to add a scoop - it says "Access Denied"
3. The ideal way for the bookmarklet to work would be to take me to the node page in (1), when I try and use the bookmarklet to submit the permalink in (2).
4. However, that's not what happens. When I try and submit the permalink in (2) - it takes me here... http://www.sympoze.com/node/
So, to replicate the problem. Drag the link "Sympoze This!" link from the post linked to in (5). Go to the link in (2) and submit it with the bookmarklet. You'll see that you are redirected to (4) not (1). I assume that (1) is what the ideal redirect would be. Also, to replicate in sympoze - you'd need a sympoze account. Let me know if you need one.
Also, I appreciate your prompt replies on this. Let me know if giving you this information is what you meant by replication. Also, let me know if you ever need help with drigg (keep in mind that my coding skills are weak, but if there are grunt work things that someone with very little coding skills can do, let me know)
This report got me to spend all day programming! :-D
I had to rewrite a big chunk of Drigg. Sort of scary, but also necessary -- especially since the D6 port is just about to start, and these sort of changes won't be possible for a while.
I fixed the problem. The only issue is that it's only available in CVS, or the nightly snapshot. I think i ought to make a release shortly, especially since there's Drupal 5.10 available (ugh) and I need to recreate drigg_distr.tgz.
With the new version of Drigg, you will have to actually ALLOW anonymous users to post drigg nodes. However, drigg will be smart enough to prevent them to do that :-D (But, I added a switch so that some can still allow anonymous posting).
Thanks for working on this. Since I'm kind of new to drupal (and drigg) - I'm not sure what 'CVS' or 'nightly snapshot' means.
More generally, does thIs mean there some way for me to install the patches that you worked on so I can get the bookmarklet working now, or do I have to wait until the next release of drigg?
Doing this is possible, but it's an existing feature request and right now we are "stuck" with bug fixing...
We have 10 outstanding bugs we need to squash before we move on to features. I agree thought, it's important -- and it's quite trivial to do too...
Drigg has the Ajax handler to check a URL already. You could potentially do this at theme level quite easily (and then, if you do, please send me the code so that I add it at Drigg level...)
I am going to give it a try at the theme level. I wish I knew php, I could help out so much more. I really am looking forward to figuring this one out as well as adding the EVB in the future (this is the main thing my sites only competitor has on me right now).
If I figure it out I will report back what I know.
Also, if you ever open this (assuming I can't do it on my own) or EVB up for bounties again let me know. I would be more than happy to pitch in what I can.
I didn't notice if was you who wrote the message in the first place john :-D
I am starting to doubt this is possible at theme level. The theme could know that the story has already been submitted, but wouldn't probably be able to redirect to the right spot. This is an existing feature request in Drigg :-(
It isn't as important to have it done right now as I thought. It is built in to redirect automatically for already submitted sites when using the bookmarklet. Which is what I needed right this second. Luckily you are awesome and already did that. Thanks for this again Merc, I am having a blast with my new site and trying to build it up.
I can't tell if this has been implemented or not, but I am begging you - DO NOT IMPLEMENT ANY DRIGG LOGIC AT THE THEME LEVEL!
This is the reason so many people are coming over to Drigg from Pligg. Any theme customizations you do in Pligg means you'll have to redo them every time a patch is released. It's a nightmare!
My Bookmarklet Doesn't Redirect
Hi Merc,
Let me preface - Drigg is great. I launched a site with it just about two weeks ago, and I am loving it. Thanks for all of your work on it. I'm not much of a coder, but if you ever need help from a novice - let me know.
My issue. This thread (and the thread over at the Drupal site) indicate that the bookmarklet does automatically redirect to the duplicate scoop. My bookmarklet doesn't. Users get an error message and a redirect to the front page. If the scoop is upcoming or otherwise buried, they don't get taken to it.
Best,
Andrew Cullison
www.sympoze.com
Can you please...
Hi,
Can you please replicate the problem on http://www.drigg.org?
This implies adding a scoop to Drigg.org, and then adding a link somewhere (ala bookmarklet) that points to it.
That will allow me to debug it.
Merc.
I just tried - access denied
I just joined drigg.org. Once I set up my account, I tried to submit a story to replicate the problem, but when I try to add a scoop - it says "Access Denied"
username: andycullison
Definition of "replication"
Hi,
Sorry, maybe I wasn't clear enough.
Please provide an _exact_ list of instructions, with _all_ the necessary links, to reproduce this.
By "precise", I mean something precise enough that my grandma could easily follow your instructions.
This includes the bookmarket's link, the story link.,.. _everything_.
Thanks,
Merc.
Got it...
Sorry...I'm kind of new to this whole thing. I'll do that.
1. Here's an archived link that never got popular
http://www.sympoze.com/node/194
2. Here's the permalink for the post that the above node links to
http://www.sciam.com/article.cfm?id=how-snoozing-makes-you-smarter&print...
3. The ideal way for the bookmarklet to work would be to take me to the node page in (1), when I try and use the bookmarklet to submit the permalink in (2).
4. However, that's not what happens. When I try and submit the permalink in (2) - it takes me here...
http://www.sympoze.com/node/
5. The bookmarklet in Firefox was created by dragging the link titled "Sympoze This!" from the blog post below into the FireFox toolbar.
http://www.andrewcullison.com/2008/07/sympoze-bookmarklet/
So, to replicate the problem. Drag the link "Sympoze This!" link from the post linked to in (5). Go to the link in (2) and submit it with the bookmarklet. You'll see that you are redirected to (4) not (1). I assume that (1) is what the ideal redirect would be. Also, to replicate in sympoze - you'd need a sympoze account. Let me know if you need one.
Also, I appreciate your prompt replies on this. Let me know if giving you this information is what you meant by replication. Also, let me know if you ever need help with drigg (keep in mind that my coding skills are weak, but if there are grunt work things that someone with very little coding skills can do, let me know)
It needed a rewrite..
Hi,
This report got me to spend all day programming! :-D
I had to rewrite a big chunk of Drigg. Sort of scary, but also necessary -- especially since the D6 port is just about to start, and these sort of changes won't be possible for a while.
I fixed the problem. The only issue is that it's only available in CVS, or the nightly snapshot. I think i ought to make a release shortly, especially since there's Drupal 5.10 available (ugh) and I need to recreate drigg_distr.tgz.
With the new version of Drigg, you will have to actually ALLOW anonymous users to post drigg nodes. However, drigg will be smart enough to prevent them to do that :-D (But, I added a switch so that some can still allow anonymous posting).
Bye,
Merc.
Thanks
Thanks for working on this. Since I'm kind of new to drupal (and drigg) - I'm not sure what 'CVS' or 'nightly snapshot' means.
More generally, does thIs mean there some way for me to install the patches that you worked on so I can get the bookmarklet working now, or do I have to wait until the next release of drigg?
I'd wait...
Hi,
I would wait for the next stable release, due in 1 week or so.
Bye!
Merc.
This is a feature request...
Hi,
Doing this is possible, but it's an existing feature request and right now we are "stuck" with bug fixing...
We have 10 outstanding bugs we need to squash before we move on to features. I agree thought, it's important -- and it's quite trivial to do too...
Drigg has the Ajax handler to check a URL already. You could potentially do this at theme level quite easily (and then, if you do, please send me the code so that I add it at Drigg level...)
Bye,
Merc.
I'll give it a try
Hey Merc,
I am going to give it a try at the theme level. I wish I knew php, I could help out so much more. I really am looking forward to figuring this one out as well as adding the EVB in the future (this is the main thing my sites only competitor has on me right now).
If I figure it out I will report back what I know.
Also, if you ever open this (assuming I can't do it on my own) or EVB up for bounties again let me know. I would be more than happy to pitch in what I can.
Regards,
John Campbell
http://www.designbump.com
John!
Hi,
I didn't notice if was you who wrote the message in the first place john :-D
I am starting to doubt this is possible at theme level. The theme could know that the story has already been submitted, but wouldn't probably be able to redirect to the right spot. This is an existing feature request in Drigg :-(
Merc.
No worries
It isn't as important to have it done right now as I thought. It is built in to redirect automatically for already submitted sites when using the bookmarklet. Which is what I needed right this second. Luckily you are awesome and already did that. Thanks for this again Merc, I am having a blast with my new site and trying to build it up.
Regards,
John
I can't tell if this has
I can't tell if this has been implemented or not, but I am begging you - DO NOT IMPLEMENT ANY DRIGG LOGIC AT THE THEME LEVEL!
This is the reason so many people are coming over to Drigg from Pligg. Any theme customizations you do in Pligg means you'll have to redo them every time a patch is released. It's a nightmare!
Please keep presentation and site logic separate!