Quote:
Originally Posted by project-Buckfas
Hey,
Some of my downloads link to the download page on another site (link to file), but they open in the same page after clicking download meaning users are leaving my site to view that page.
How can I make it open in a new window after clicking download?
Thanks
|
I found this occurs when clicking on the on the download link located on the page that lists a summary of the files in the category but not when looking at the detailed listing for one file.
To fix it, in downloads.php around line 300 -
FIND:
PHP Code:
if ($db->num_rows($result) > 0)
{
while ($file = $db->fetch_array($result))
{
$date = vbdate($vbulletin->options['dateformat'],$file['date'],true);
$downloads = vb_number_format($file['downloads']);
BELOW that ADD:
PHP Code:
// added to open links in a new window Aug 1, 06
if ($file['link'] == 1)
{
$target = 'target="_blank"';
}
else
{
$target = 'target="_self"';
}