Google

NukeCoder


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 726

PostPosted: Sat Feb 24, 2007 10:43 am Reply with quote

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)
 case "getit":
    
getit($lid);
    break; 


Replace with....
 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.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT + 10 Hours
Forums ©