PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
eagleone
New Member
New Member


Joined: Mar 27, 2006
Posts: 1

PostPosted: Thu Jun 08, 2006 9:55 am Reply with quote Back to top

i have the enhanced downloads module- how do you allow all users to view downloads but only group members to download
View user's profile Send private message Send e-mail
devil_me
New Member
New Member


Joined: Jan 14, 2007
Posts: 2

PostPosted: Fri Jan 19, 2007 2:00 am Reply with quote Back to top

Code:
<?php

/********************************************************/
/* NSN GR Downloads                                     */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2005 by NukeScripts Network         */
/********************************************************/
/* Based on Journey Links Hack                          */
/* Copyright (c) 2000 by James Knickelbein              */
/* Journey Milwaukee (http://www.journeymilwaukee.com)  */
/********************************************************/

$module_name = basename(dirname(__FILE__));
if (!stristr($_SERVER['PHP_SELF'], "modules.php") AND !stristr($_SERVER['SCRIPT_NAME'], "modules.php")) {
    Header("Location: ../../modules.php?name=$module_name");
}
require_once("mainfile.php");
get_lang($module_name);
$pagetitle = _DOWNLOADS;
include("modules/$module_name/includes/functions.php");
$result1 = $db->sql_query("SELECT * FROM ".$prefix."_nsngd_config");
$dl_config = gdget_configs();
if (!$dl_config OR $dl_config=="") {
    include("header.php");
    title(_DL_DBCONFIG);
    include("footer.php");
    die();
}
$index = 1;

if(isset($d_op)) { $op = $d_op; unset($d_op); }
if($op == "viewdownload") { $op = "getit"; }
if($op == "viewdownloaddetails") { $op = "getit"; }

switch($op) {

    default:
    case "index":include("modules/$module_name/public/index.php");break;

    case "NewDownloads":include("modules/$module_name/public/NewDownloads.php");break;
    case "NewDownloadsDate":include("modules/$module_name/public/NewDownloadsDate.php");break;
    case "MostPopular":include("modules/$module_name/public/MostPopular.php");break;
    case "brokendownload":include("modules/$module_name/public/brokendownload.php");break;
    case "brokendownloadS":include("modules/$module_name/public/brokendownloadS.php");break;
    case "modifydownloadrequest":include("modules/$module_name/public/modifydownloadrequest.php");break;
    case "modifydownloadrequestS":include("modules/$module_name/public/modifydownloadrequestS.php");break;
    case "getit":include("modules/$module_name/public/getit.php");break;
    case "go":include("modules/$module_name/public/go.php");break;
    case "search":include("modules/$module_name/public/search.php");break;
    case "gfx":include("modules/$module_name/public/gfx.php");break;

}

?>


Thats how my index.php at modules/downloads looks like . cant find function line there.. plz helpp raven
View user's profile Send private message
devil_me
New Member
New Member


Joined: Jan 14, 2007
Posts: 2

PostPosted: Fri Jan 19, 2007 2:01 am Reply with quote Back to top

also i changed functions.php a lil as u said..
View user's profile Send private message
st247
New Member
New Member


Joined: Apr 19, 2006
Posts: 19

PostPosted: Fri Apr 13, 2007 3:17 am Reply with quote Back to top

I also wanted to change this (I'm using Ravennuke 7.6 v.2.1 with NSN GR Downloads). I looked around a bit and I found something in includes/nsngd_func.php.
In the function showlisting($lid) I changed
Code:
if (($lidinfo['sid'] == 0) || ($lidinfo['sid'] == 1 AND is_user($user))  || ($lidinfo['sid'] == 2 AND is_admin($admin)) || ($lidinfo['sid'] > 2 AND of_group($priv)) || $dl_config['show_download'] == '1') {

to
Code:
//    if (($lidinfo['sid'] == 0) || ($lidinfo['sid'] == 1 AND is_user($user))  || ($lidinfo['sid'] == 2 AND is_admin($admin)) || ($lidinfo['sid'] > 2 AND of_group($priv)) || $dl_config['show_download'] == '1') {

and
Code:
} else {
        restricted2($lidinfo['sid']);
    }

to
Code:
/*    } else {
        restricted2($lidinfo['sid']);
    }*/

It works, I just hope this is the right way to do it (I'm a newbie Wink )
View user's profile Send private message
utssace
Worker
Worker


Joined: Feb 18, 2006
Posts: 155
Location: Virginia

PostPosted: Sun Apr 29, 2007 2:40 pm Reply with quote Back to top

Raven,

I have RN 2.10. This code at the start of the thread doesn't work for me. Is there a change to get it to work in latest RN?

thanks
View user's profile Send private message Visit poster's website
st247
New Member
New Member


Joined: Apr 19, 2006
Posts: 19

PostPosted: Mon Apr 30, 2007 2:39 am Reply with quote Back to top

You could try the changes I posted above your post. I also have RN 2.10 Wink
View user's profile Send private message
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum