Clan Adverts

PHP Web Host - Quality Web Hosting For All PHP Applications

 

www.clan-themes.co.uk :: View topic - Download module hack

 Welcome To Clan Themes 

As the board grows please remember the Search Option and we hope you find our community useful.

We also monitor Private Messages to stop members from abusing our sites system.
If you are asking for assistance please provide your site link and nuke version, Thanks.

Download module hack

2 Replies / 391 Views


Post new topic   Reply to topic  

   www.clan-themes.co.uk Forum Index » Modules

View previous topic :: View next topic


cupoftea
Reputation: 9.6
Local time: 1:40 AM
Location: Behind My Computer
belgium.gif

Status: Offline
0.46 posts per day
Medals: 0

Joined: Apr 30, 2008
Last Visit: 16 Aug 2008
Posts: 60
Points: 416 

Post Download module hack Posted: Sat May 03, 2008 12:49 pm   

I downloaded a hack for the download module, but I don't understand how to install it...
This is the readme file:
[font=Courier New]Original Download Module with Upload Feature v1.0 for Phpnuke 6.5

ENGLISH

I was looking for an upload module that can manage downloads and uploads, so I decided to modify the original one.
The users can upload files, and the admin has to accept them, in the same way of the original module.

Features:
works on the original download module
no download database rebuild needed
upload on existent categories
admin can enable/disable upload feature
uploads are sorted in folders, reflecting categories
folders are created when at the first upload in that category
Tested on phpnuke 6.5 but it can work also in other versions


INSTALLATION
After the backup of your modules/downloads, you have to extract the archive in that directory.
Edit the file d_config.php and set the variables $uppath e $upbaseurl needed for upload.

$uppath must contain the absolute path of the upload base dir (ex. c:/inetpub/wwwroot/uploads or /web/htdocs/phpnuke/upload)

$upbaseurl must contain the URL path to resolve the same dir

Write permission must be enabled on the dir for web users.
If you want to host .exe files on IIS you have to control that execute permission are disabled.

$enable_upload permit to disable upload feature.

If you want to use a language different than english and italian, you have to import downloads/language/other_lang.php in your language file that is in /modules/downloads/language/xxx-lng.php and translate it



You can send suggestions and bugs to: alessior@tiscali.it



TO-DO
improve folder management to use cat names and their order
do a pop-up window with the upload state
manage the movement of the file, if it is moved to an other category
Improve the visualization of categories in the main pages (as other scripts does) [/font]

if you need more information plz ask
 

Grtz, CupOfTea --- My Nuke Version: 7.5 ---  
View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote

DoC
Reputation: 163
votes: 4
Local time: 1:40 AM
Location: Wiltshire, UK
uk.gif

Status: Offline
0.67 posts per day
Medals: 1 (View more...)
Dedication (Amount: 1)
Very Important Person
Very Important Person
Joined: Feb 07, 2007
Last Visit: 02 Sep 2008
Posts: 390
Points: 1239 

Post Re: Download module hack Posted: Sat May 03, 2008 4:00 pm   

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

cupoftea wrote:
INSTALLATION
After the backup of your modules/downloads, you have to extract the archive in that directory.
Edit the file d_config.php and set the variables $uppath e $upbaseurl needed for upload.

$uppath must contain the absolute path of the upload base dir (ex. c:/inetpub/wwwroot/uploads or /web/htdocs/phpnuke/upload)

$upbaseurl must contain the URL path to resolve the same dir

Write permission must be enabled on the dir for web users.
If you want to host .exe files on IIS you have to control that execute permission are disabled.

$enable_upload permit to disable upload feature.


Ok for the paths they need to be like the following (using your actual details, ask your host if you are unsure of what these are):

$uppath: /home/YOURDOMAIN/modules/downloads/upload
$upbaseurl: http://www.YOURDOMAIN.com/modules.php?name=Downloads&file=uploads <--- This is guessing and should not be following to the letter.

For the write permission (also known as CHMOD) you can use an FTP Client to do this or the web -based File Manager if using CPanel by right clicking then Permissions/Properties and set as needed.

Hope this helps clarify a few things for you bro Wink

DoC
 

Play EVE Online? Go To: www.go-pdi.com & Join The Best Corp In The Universe!  
View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger Reply with quote

cupoftea
Reputation: 9.6
Local time: 1:40 AM
Location: Behind My Computer
belgium.gif

Status: Offline
0.46 posts per day
Medals: 0

Joined: Apr 30, 2008
Last Visit: 16 Aug 2008
Posts: 60
Points: 416 

View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote
Post new topic   Reply to topic  
   www.clan-themes.co.uk Forum Index » Modules


 
2 Replies / 391 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
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
You cannot attach files in this forum
You can download files in this forum