Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Got A Few Questions About TBDev (http://www.bvlist.com/showthread.php?t=1073)

dusco 28th September 2008 09:10

Got A Few Questions About TBDev
 
Hey guys just installed TBDev Modded Edition v1.2 everything is running fine I just want to change a few things..

When it comes to uploading, how can i remove the requirement for a NFO. Also is there a mod out that will allow users to upload a image or 2 for the upload ?

And one more question how do i go about setting up threads in the forum

Thanks alot

Fynnon 28th September 2008 11:47

Making NFO Optional ;)

In upload.php find the old line :

Code:

tr("NFO file", "(Required. Can only be viewed by power users.)\n", 1);
replace it with :
Code:

tr("NFO file", "(optional. Can only be viewed by power users)\n", 1);
In takeupload.php comment the lines out , so should look like this :

Code:

$nfofile = $_FILES['nfo'];
//if ($nfofile['name'] == '')
  /*bark("No NFO!");*/

//if ($nfofile['size'] == 0)
 /* bark("0-byte NFO");*/

if ($nfofile['size'] > 65535)
  bark("NFO is too big! Max 65,535 bytes.");

$nfofilename = $nfofile['tmp_name'];

//if (@!is_uploaded_file($nfofilename))
 // bark("NFO upload failed");

Taken from here: Board Message


All times are GMT +2. The time now is 22:50.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.