bittorrent.module assumes that Drupal is installed in the web root. The download URLs in the torrent nodes are written as http://example.com/torrent/download/12.

CommentFileSizeAuthor
#1 bittorrent_base_url.patch592 bytesChristefano-oldaccount

Comments

Christefano-oldaccount’s picture

Status: Active » Needs review
StatusFileSize
new592 bytes

The theme_bt_torrent_link function needs to use $base_url like this:

function theme_bt_torrent_link($node) {
global $base_url; 
$output = '<div class="torrent-link"><a href="' . $base_url . '/torrent/download/'. $node->nid .'">'. t('Download the Torrent') .'</a></div><br />';
  
  return $output;
}

Attached is a patch.

Christefano-oldaccount’s picture

Wow, this module is cool. I've been playing with it for a half hour now and I love it. Thanks for sharing it.

bradfordcp’s picture

Assigned: Unassigned » bradfordcp
Status: Needs review » Fixed

Applied the patch and it is now committed.

~Chris

Anonymous’s picture

Status: Fixed » Closed (fixed)