PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Web Site Design > Content Management Systems > Portals
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools Rate Thread
Old 7-26-05, 10:24 AM   #1
ToI2n_knIgHt
 
Join Date: Mar 2004
Location: Indiana
Posts: 71
Reputation: 5
PHP NUKE Question

Does anyone know how to delete the link from the downoads secition for users to be able to add downloads? I do not want this feature but do not know exactly where to delete on the downloads.php in modules (assuming this is the right file)

Any help is greatly appreciated... Thanks!

Running PHP Nuke 7.7
__________________
If it is to be then it is up to me
ToI2n_knIgHt is offline  
Old 7-26-05, 11:47 PM   #2
who
 
Join Date: Sep 2003
Location: Southern California
Posts: 87
Reputation: 5
I dont know how to do it the "right" way, the way it was intended but...

OPEN: /modules/Downloads/index.php

FIND:
PHP Code:
if ($user_adddownload == 1) {
    echo 
"<a href=\"modules.php?name=$module_name&amp;d_op=AddDownload\">"._ADDDOWNLOAD."</a>"
        
." | ";
    } 
REPLACE WITH
PHP Code:

/* if ($user_adddownload == 1) {
    echo "<a href=\"modules.php?name=$module_name&amp;d_op=AddDownload\">"._ADDDOWNLOAD."</a>"
        ." | ";
    } */ 
i know this works with 7.5, i donno about 7.7 but if you can find that code blurb, take it away,

*note* dont come crying to me if you mess your site up, use common sense and backup your files before modifying the code */note*
who is offline  
Old 7-27-05, 09:20 AM   #3
ToI2n_knIgHt
 
Join Date: Mar 2004
Location: Indiana
Posts: 71
Reputation: 5
Thanks! That did the trick.. I also removed add link... Thanks again!
__________________
If it is to be then it is up to me
ToI2n_knIgHt is offline  
Closed Thread

Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT -4. The time now is 05:05 AM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.