Clan Adverts

How to allow guests to browse downloads but not download

Description: This simple trick can help increase search engine exposure and show potential members what they can get when they register.
Version: 1.0
Added on: 20 June 2007
Author: Gotcha
Difficulty Level: Very Easy
Views: 879
Rating: 9.3 (4 Votes)
Detailed ProfileView Comments (2)

This simple trick can help increase search engine exposure and show potential members what they can get when they register.

Open modules/Downloads/index.php

Find....(its toward the bottom of the file)

Code:
case "getit":
    getit($lid);
    break;


Replace with....

Code:
case "getit":
    if (is_user($user)) {
        getit($lid);
    } else {
        $pagetitle = "- "._RESTRICTEDAREA;
        include("header.php");
        OpenTable();
        echo "<center><b>"._RESTRICTEDAREA."</b></center><br>";
        echo "<center>"._GOBACK."</center>";
        CloseTable();
        include("footer.php");
        die();
    }
    break;


Thats all! Now you can open up your downloads module to all users but only members will be able to download.

This tutorial is courtesy of Gotcha from http://www.nukecoder.com