I have a website that has multiple URLs. The result of this is that a Digg story submitted on one URL, isn't visible on the other URL. So my request is that it would be nice if I could set the default URL for the Digg this module. You can see the problem yourself on, for example, http://coccinella.im/node/42 (this one shows some diggs) and http://thecoccinella.org/node/42 (this one does not show any digg, though it is the same story).

Comments

yaph’s picture

Assigned: Unassigned » yaph
Status: Active » Closed (won't fix)

You should really not post the same content on two different URLs. Simply set a redirect from on domain to the other.

yaph’s picture

Status: Closed (won't fix) » Closed (fixed)
dfgfdgdfgdfg’s picture

This is not possible. Both thecoccinella.org and coccinella.im are official URLs that point to the same web space. Both domains are also of the same importance. Contents of both domains are thus 100% similar. When people access the site using thecoccinella.org to post pages, it will also be visible when another user uses coccinella.im and vice versa.

You may wonder why we do this instead of a redirect. The reason is simple: we want to drastically reduce the risk we get f*cked again (we had an awful experience last summer; story will be posted in December) by an ISP by limiting the dependence of all ISPs. So, the registrar of coccinella.im is different from the registrar of thecoccinella.org, as well as different from our web hoster. Besides that we also make regular backups of the contents of our project website at another hosting solution. The result of this is that none of the ISPs we do business with has the power to take our project website out the air in order to blackmail us. If we would redirect one domain to the other, this would mean the later registrar has more power and we don't want this after we had an *awful* experience last summer...

Having 2 domains pointing to the same web space works without issues for all Drupal plugins and our Gallery2 installation, except the Digg this plugin. So, I hope you see why this feature request is very important for us and why we think it should be re-opened and hopefully be fixed of course ;-)

Thanks in advance.

PS: sorry for the duplicate bug report; I already forgot I reported the bug before.

yaph’s picture

Status: Closed (fixed) » Closed (won't fix)

For me Digg has one very simple rule: One story has exactly one URL. That's why this feature won't be part of a Digg this release, as long as I maintain this project.
The module is open source and GPL. So you are free to adjust it to your needs. Thanks for your understanding.

dfgfdgdfgdfg’s picture

"For me Digg has one very simple rule: One story has exactly one URL." <-- Well, that's why I would like the Digg module to *always* us 1 domain, whatever domain the visitor is using to access the website.

So what I'm requesting is an advanced option called something like "Force domain: ". If I enter in this field for example "http://coccinella.im", all conections etc with Digg.com will be done using this URL; even when a visitor access our website using the thecoccinella.org domain.

dfgfdgdfgdfg’s picture

With the help of a coder that doesn't know PHP, I could make this patch:

// always use coccinella.im for Digging
$url2 = preg_replace("/^http:\\/\\/thecoccinella.org\\//", "http://coccinella.im/", $url);
$url3 = preg_replace("/^http:\\/\\/www\\.thecoccinella\\.org\\//", "http://coccinella.im/", $url2);

digg_url = '$url3';

So, now only a nice GUI for this feature is missing...