» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 71
0 members and 71 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Oral Chelation - initial cleansing of your veins & arteries

Register Now! Contact Us

About this Page
This is a discussion on Download -Registered members only,can view by outsider within the Nuke 7.x - Modules forums, part of the PHP-Nuke 7.x category; can i know how you all did that "downloads" only can be download by registered members ?but in ...


Go Back   Nukemods Forum » PHP-Nuke 7.x » Nuke 7.x - Modules

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-12-2004, 02:16 PM
Junior Member
 
Join Date: Dec 2004
Posts: 2
Download -Registered members only,can view by outsider
can i know how you all did that "downloads" only can be download by registered members ?but in the same time .. outsider still can view the content !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-12-2004, 03:13 PM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
EDL v2.1 from http://www.nukestyles.com
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-13-2004, 01:52 AM
Junior Member
 
Join Date: Dec 2004
Posts: 2
here

http://ravenphpscripts.com/modules.p...etit&lid=70#dl
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-16-2004, 11:41 AM
Junior Member
 
Join Date: Dec 2004
Posts: 2
i having some ddificulty with it
some how whenever i clicked the download .. i jumped to mainpage.

can someone help me ?
------------------------------------------------
function getit($lid) {
// Add a new line of code for each $lid to block for registered users only
$lidArray[] = intval;

global $prefix, $dbi,$user,$admin;
if (!is_user($user)&&in_array($lidarray)&&!is_admin($ admin)) {
$pagetitle = "-"._ACCESSDENIED."";
include("header.php");
title("$sitename: "._ACCESSDENIED."");
opentable();
echo"<center"._RESTRICTEDAREA."

"
.""._MODULEUSERS.""
.""._GOBACK."";
closetable();
include("footer.php");
die();
}
sql_query("update".$prefix."_downloads_downloads set hits=hits+1 WHERE lid=$lid",$dbi);
$result = sql_query("SELECT url FROM ".$prefix."_downloads_downloads WHERE lid_$lid",$dbi);
Header("Location: $url");
}

//function getit($lid) {
//global $prefix,$dbi;
//$lid=intval($lid);
//$hits=intval($hits);
//sql_query("update".$prefix."_downloads_downloads set hits=hits+1 WHERE lid=$lid",$dbi);
//update_points(17);
//$result = sql_query("SELECT url FROM ".$prefix."_downloads_downloads WHERE lid='$lid'", &dbi);
//list($url)=sql_fetch_row($result,$dbi);
//header("Location:$url");
//}
-----------------------------------------------

the one with "//" are original coding.

can anyone help me here ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-16-2004, 04:27 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Try contacting the author of that script. Or at least post your problem in his forum. :wink:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
forums view on ARMY theme thesalesman Theme packs 3 12-30-2005 08:58 AM
View Topic Width Help mortician Theme packs 8 12-17-2005 07:16 PM
Home Modules for Anonymous and Registered Users Sarmaul Nuke 7.x - General 0 02-23-2005 06:52 AM
User Info Block doesnt display users registered today or Yes Banzai Nuke 6.5 to 6.9 - Blocks 7 06-22-2003 05:21 PM
Forum registered user problem BabyJade Purged Topics 9 04-26-2003 12:46 PM


All times are GMT -5. The time now is 07:41 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31