PDA

View Full Version : ecDownloads 3.2 Legacy


Pages : 1 [2] 3 4

AuroraMike
03-11-2005, 12:55 AM
site has been working fine for me and just worked fine now. Maybe you hit the page while he was working on it.

k40tic
03-11-2005, 05:12 PM
Though I like this addon it seems it is not going to be developed any further so while looking around I found a script that will work with vbulletin, or so it says on the site. It pulls usernames and passwords from the vbulletin database from what I read so that your members wont have to register for it. The only version that will work though costs $50. The free version does not come with this feature. I wont post a link to it here because that would be rude. If you're interested you can pm me for it or go find it at hotscripts.com

Rids
03-13-2005, 12:42 PM
its probably the one I purchased several months ago but RC1 was so buggy I abandoned it in favor of this, now I may have to go back and try it again :D

nuveen
03-14-2005, 08:32 AM
When I try accessing downloads.php I get the following error.Any help will be appreciated

"Invalid SQL: SELECT * FROM usergroup WHERE usergroupid='6' AND candl='0'
mysql error: Unknown column 'candl' in 'where clause'

mysql error number: 1054"

Thanks in advance

calvinnguyen
03-14-2005, 08:43 AM
how big the size that it allow members to upload files?

T3MEDIA
03-14-2005, 01:52 PM
not big. dont bother.

Ron1n
03-18-2005, 10:19 PM
not big. dont bother.

there is no size limit for uploading files in this mod, that is in PHP.INI (your server settings)

Joe Pimms
03-19-2005, 08:38 PM
wow this is quike an awsome hack, very usefull for many other websites

Blackbeard
03-20-2005, 02:16 PM
Iam getting a few errors here if someone can help

when saving settings i get

cannot find phrase vbdown_setting have been edited succefully

When i try to upload anything i get error shown in attachment

no files get uploaded to there

here is my settings

Upload URL: ./home/public_html/forums/downloads
Download URL: http://www.learnall-forum.com/forums/downloads

what have i done wrong??

lasto
03-20-2005, 03:17 PM
have to do a full database restore as this dropped some tables that where used for my attachments hack.

Should ask really if it finds the tables if you want to drop them.

Ron1n
03-20-2005, 06:02 PM
have to do a full database restore as this dropped some tables that where used for my attachments hack.

There is no reason for you to do a full database restore because my hack only uses 5 tables and modifies 2 others. Maybe in the future you should find out what your installing before you install it? :rolleyes:

when saving settings i get

cannot find phrase vbdown_setting have been edited succefully

I did those admincp stop messages at the last minute, sorry I must have screwed that one up. Heres the fix: search in downloadadmin.php for 'vbdown_settings have been edited successfully' or whatever the EXACT error message you get is, and change it to vbdown_settings_edited. Then, in your admincp, add a 'control panel stop message' named 'vbdown_settings_edited', and have the content be 'Settings edited successfully.'

here is my settings

Upload URL: ./home/public_html/forums/downloads
Download URL: http://www.learnall-forum.com/forums/downloads

what have i done wrong??

You need a trailing slash / at the end of downloads. In addition, you dont need to have anything besides ./downloads/ in BOTH fields, because your downloads directory is in the /forums/ directory.

Blackbeard
03-20-2005, 07:06 PM
I did those admincp stop messages at the last minute, sorry I must have screwed that one up. Heres the fix: search in downloadadmin.php for 'vbdown_settings have been edited successfully' or whatever the EXACT error message you get is, and change it to vbdown_settings_edited. Then, in your admincp, add a 'control panel stop message' named 'vbdown_settings_edited', and have the content be 'Settings edited successfully.'

did this now getting error saying vbdown_settings_edited phrase not found

the other sorted

is there a way to refresh counts as i have only one file uploaded but i have a count of 11 due to failed attempts.

cheers for support

lasto
03-20-2005, 07:15 PM
There is no reason for you to do a full database restore because my hack only uses 5 tables and modifies 2 others. Maybe in the future you should find out what your installing before you install it? :rolleyes:



I did those admincp stop messages at the last minute, sorry I must have screwed that one up. Heres the fix: search in downloadadmin.php for 'vbdown_settings have been edited successfully' or whatever the EXACT error message you get is, and change it to vbdown_settings_edited. Then, in your admincp, add a 'control panel stop message' named 'vbdown_settings_edited', and have the content be 'Settings edited successfully.'



You need a trailing slash / at the end of downloads. In addition, you dont need to have anything besides ./downloads/ in BOTH fields, because your downloads directory is in the /forums/ directory.
not calling your hack at all m8 - it installed fine on test board but when took it to live site it messed up my attachments on the board as they where using a table called download from another hack.
Also i do check everythin i install - hence why always install to blank board first.

Ron1n
03-20-2005, 11:12 PM
did this now getting error saying vbdown_settings_edited phrase not found

the other sorted

is there a way to refresh counts as i have only one file uploaded but i have a count of 11 due to failed attempts.

cheers for support
Did you remember to add the phrase "vbdown_settings_edited?" All you have to do is add that... and it will work.

About resetting stats... I will do that. I hadn't thought of it before, but its a good idea.

Itachi0009
03-21-2005, 01:08 AM
OK.. i do have a problem actually, it keeps saying i can't upload a file type but it says it must be so and so.. and its one of those types..

http://unlimitedgamer.net/mpeg.htm

rjordan
03-21-2005, 02:57 AM
I installed v2 and I cannot seem to reorder categories. Anyone else?

Nam
03-21-2005, 03:37 AM
The files link to other server is great, but I'm wonder what is "semi-antileech" means, would anyone please clarify this for me?

Would I be able to see the files location by looking up at the "Temp" folder in IE?

elastomaniac
03-21-2005, 03:44 AM
vBDownloads 2:

It seems that it isnt working because of my vb_ table prefix. The tables all exist but i still get:

Database error in vBulletin 3.0.7:

Invalid SQL: SELECT * FROM file_main
mysql error: Table 'elma2_one.file_main' doesn't exist

mysql error number: 1146

Date: Monday 21st of March 2005 05:35:32 PM
Script: http://www.elastomaniac.com/downloads.php
Referer:

It should not be looking for elma2_one.file_main it should be looking for elma2_one.vb_file_main

Need help!

Ron1n
03-21-2005, 11:39 AM
OK.. i do have a problem actually, it keeps saying i can't upload a file type but it says it must be so and so.. and its one of those types..
That is because .mpeg is a four letter extension, and I didnt know those were common. In this case, just remove the dot and it will work. I will add an actual support for this next time.

EDIT: I fixed this for you in version 2.0b

I installed v2 and I cannot seem to reorder categories. Anyone else?

Never had this problem, but I will check it out today.

EDIT: I tested this on my board and it worked fine. I think you need to go to downloads->setttings-> and then set 'Order' to `order`

Hopefully that works. If it doesn't, message me again and take some screenshots of before and after. Thanks :D


The files link to other server is great, but I'm wonder what is "semi-antileech" means, would anyone please clarify this for me?

Would I be able to see the files location by looking up at the "Temp" folder in IE?

Yes, as you would with basically any download script. This just prevents people from knowing the file location of uploaded files unless they have a full brain. What I did on my test server is password protect the directory that the files are in, so that even if they did know the file location, they would be unable to download. If you have any suggestions for antileech systems please tell me and link me to a tutorial/example.

It should not be looking for elma2_one.file_main it should be looking for elma2_one.vb_file_main

Need help!

I thought I fixed that this version, I will look into it and fix it today.

EDIT: I fixed this for you in version 2.0b

rjordan
03-21-2005, 11:46 AM
Der ... yeah, I guess that would help! Sorry for being a noob!

Ron1n
03-21-2005, 05:17 PM
Bugs updated Bugs:
- Counts can be messed up due to failed upload attempts
- Files with the following characters in the name (author, filename, etc) can cause errors: :;'"<,>?/|\}]{[+=)(*&^%$#@!~` This has already been fixed on my boards, but i dont think it is important enough to do another release. I will wait for version 2.5 to release the fix for this.
- Parse error: parse error, unexpected T_STRING in dl_manage.php on line 17 (FIX THIS NOW (https://vborg.vbsupport.ru/attachment.php?attachmentid=24960&stc=1))

danrak
03-21-2005, 05:52 PM
again, hate to do this, no disrespect to Ron1n but if you need a supported fully functioning downloader that integrates flawless w/ VB - http://www.securedownloads.net. Yes, it costs $$$ but until someone else picks this up and runs with it 100% or Ron1n comes back, your options are limited.


Doesn't look like the product is fully function. Sadly there is no mention of it not working when the forums are on the root directory, there is no manual and the support is lacking. It would be nice if it worked, has lots of potential, but I think its still a long way away from being worth the money.

Ron1n
03-21-2005, 06:19 PM
Doesn't look like the product is fully function. Sadly there is no mention of it not working when the forums are on the root directory, there is no manual and the support is lacking. It would be nice if it worked, has lots of potential, but I think its still a long way away from being worth the money.

Just to clarify your not talking about my mod, but this one: http://www.securedownloads.net correct? If you are having a problem with my mod just mention it and I will try to help.

danrak
03-21-2005, 06:34 PM
Just to clarify your not talking about my mod, but this one: http://www.securedownloads.net correct? If you are having a problem with my mod just mention it and I will try to help.


That is correct yes. I would love to give yours a shot, but I haven't seen a mass upload feature yet. As I have 2.19 gigs, 2,230 files and 884 directories I would be adding them all for a year. I would be willing to donate if the feature was added to add the files and categories automatically.

lasto
03-21-2005, 06:54 PM
Doesn't look like the product is fully function. Sadly there is no mention of it not working when the forums are on the root directory, there is no manual and the support is lacking. It would be nice if it worked, has lots of potential, but I think its still a long way away from being worth the money.
i brought secure downloads - its looks good but to me aint worth the money.it does`nt integrate deep enough i think and i swear the problems people are having getting it installed is a joke and like you say - support is bad.You can only ask install questions if you buy support which for a program dont install to well in the first place is very laughable.

Ron1n
03-21-2005, 08:39 PM
That is correct yes. I would love to give yours a shot, but I haven't seen a mass upload feature yet. As I have 2.19 gigs, 2,230 files and 884 directories I would be adding them all for a year. I would be willing to donate if the feature was added to add the files and categories automatically.

Well, I don't know about adding a feature to do that... but I would consider doing something where you can add 100 files at a time via links. The only thing you would have to fill in, if you wanted to, would be authors and descriptions, and for authors you could just fill in one for all of them. I dont plan to create something to read a files right off of the server anytime soon.

If you are willing to pay about $100 I can make you a mod that has nothing to do with this that just reads in whatever is on your FTP and gives you links to the downloads... but I doubt thats what you want.

joshg
03-21-2005, 08:54 PM
I am in the process of installing this mod, looks so nice.

Unfortunately though I am running into an error message when I attempt to run downloadinstall.php

"Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/mobiled/public_html/discuss/admincpanel/downloadinstall.php on line 76"

Please help! I really want to get this mod working. Any help is appreciated greatly!

joshg
03-21-2005, 10:37 PM
Nevermind.

I fixed it myself by commenting out line 76 and adding " );" to line 75 and then running the installer, and then adding the commented out phrase manually.. works perfect.

Ron1n
03-21-2005, 11:15 PM
I am in the process of installing this mod, looks so nice.

Unfortunately though I am running into an error message when I attempt to run downloadinstall.php

"Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/mobiled/public_html/discuss/admincpanel/downloadinstall.php on line 76"

Please help! I really want to get this mod working. Any help is appreciated greatly!

Fixing. Will post result in a few min.

EDIT: I fixed it, along with several other non-bugs that irked me. 2.0c is available for download.

P.S. I hope everyone realizes that upgrading from things like 2.0 to 2.0b or 2.0c only requires 1-2 edits + uploading 2-3 files. It doesnt require any major installs or anything like that.

rjordan
03-22-2005, 12:40 AM
You say your next release will have "images". Are you refering to screenshots?

If I may submit a few requests...

- The ability to enter a file size for those linked items since you cannot seem to detect their file sizes.

- Have an admin selectable sort order for the downloads themselves.

- Have category/download items where they can have an icon beside them

I have a great interface design that would only be suitable if there were screenshots available for this.

Ron1n
03-22-2005, 12:57 AM
You say your next release will have "images". Are you refering to screenshots?

If I may submit a few requests...

- The ability to enter a file size for those linked items since you cannot seem to detect their file sizes.

- Have an admin selectable sort order for the downloads themselves.

- Have category/download items where they can have an icon beside them

I have a great interface design that would only be suitable if there were screenshots available for this.
good ideas, ill probably incorporate filesizes for linked downloads and an admin selectable sort for downloads. In addition, I may include icons for categories (and descriptions). As to what images means, yes, you will be able to upload multiple images per file (like comments) and see them right below the file. However, I do not plan to add images for each file. Your other ideas were great, and will be included by version 2.5.

AuroraMike
03-22-2005, 02:05 AM
I have to admit it, I really like what you've done ron1n. Again, sorry for the secure downloads links, I thought this hack dead in the water but you've (thankfully) proven me very wrong. I like the changes very much.

Viks
03-22-2005, 03:24 AM
Hi Ronin,
here is the message i get after upgrade from v1.0e to v2.0c.
i click on setting/category in admincp

Database error in vBulletin 3.0.3:

Invalid SQL: SELECT * FROM file_cats WHERE parent = '0' ORDER BY
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

Date: Tuesday 22nd of March 2005 12:22:22 AM
Script: http://bc.com/forums/downloadadmin.php?do=settings
Referer: http://bc.com/forums/index.php?do=nav
Username: yahoo

:ermm:

CosmicBlend
03-22-2005, 03:36 AM
i get the following errors when i upload files..

Warning: move_uploaded_file(/home/web/htdocs/downloadsimage uplo lo-fidelity test ++++ [73148].jpg): failed to open stream: Permission denied in /includes/dl_add.php on line 67

Warning: move_uploaded_file(): Unable to move '/var/tmp/phpu25Wxn' to '/home/web/htdocs/downloadsimage uplo lo-fidelity test ++++ [73148].jpg' in /includes/dl_add.php on line 67

how can i solve this problem.

my download dir is chmod 777

Ron1n
03-22-2005, 03:53 AM
I have to admit it, I really like what you've done ron1n. Again, sorry for the secure downloads links, I thought this hack dead in the water but you've (thankfully) proven me very wrong. I like the changes very much.
Thanks for the kind word. Now rate the file 5/5? :D

Hi Ronin,
here is the message i get after upgrade from v1.0e to v2.0c.
i click on setting/category in admincp

Database error in vBulletin 3.0.3:

Invalid SQL: SELECT * FROM file_cats WHERE parent = '0' ORDER BY
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

Date: Tuesday 22nd of March 2005 12:22:22 AM
Script: http://bc.com/forums/downloadadmin.php?do=settings
Referer: http://bc.com/forums/index.php?do=nav
Username: yahoo

:ermm:
You failed to follow directions, but no problem, i can fix it. Upload the new config file download_config.php into forum/includes/ and you will be all set. I changed the variable name for ordering from d_order to order.

If you still have the same problem, download your download_config.php and paste the contents.

i get the following errors when i upload files..


Warning: move_uploaded_file(/home/web/htdocs/downloadsimage uplo lo-fidelity test ++++ [73148].jpg): failed to open stream: Permission denied in /includes/dl_add.php on line 67

Warning: move_uploaded_file(): Unable to move '/var/tmp/phpu25Wxn' to '/home/web/htdocs/downloadsimage uplo lo-fidelity test ++++ [73148].jpg' in /includes/dl_add.php on line 67


how can i solve this problem.

my download dir is chmod 777

Which is your download folder? htdocs or downloadsimage? Remember to add a trailing slash to the end of BOTH urls in your settings. Also, are you sure the file had ++++ in it? I thought I set up file_prep() to remove all funky characters. :O

Blackbeard
03-22-2005, 04:00 AM
think i missed 2.0b, can i go from 2.0 to 2.0c without installer just upload and follow txt file?

Ron1n
03-22-2005, 04:05 AM
think i missed 2.0b, can i go from 2.0 to 2.0c without installer just upload and follow txt file?

of course, just follow what upgrade.txt says

CosmicBlend
03-22-2005, 04:27 AM
Which is your download folder? htdocs or downloadsimage? Remember to add a trailing slash to the end of BOTH urls in your settings. Also, are you sure the file had ++++ in it? I thought I set up file_prep() to remove all funky characters. :O


ok so i fixed all my problems except.. when i goto download the file i get:

The requested URL /home/web/htdocs/downloads/image uplo lo-fidelity testing [76299].jpg was not found on this server.

now i checked my ftp and the file IS there.. so whats wrong?

Ron1n
03-22-2005, 04:48 AM
Take a screencapture of your settings panel in the admincp and then a screencapture of your FTP program that shows that image uplo lo-fidelity testing [76299].jpg is there. I'll figure it out from there.

CosmicBlend
03-22-2005, 05:11 AM
Take a screencapture of your settings panel in the admincp and then a screencapture of your FTP program that shows that image uplo lo-fidelity testing [76299].jpg is there. I'll figure it out from there.

ok here they are

CosmicBlend
03-22-2005, 05:12 AM
for reference the board is located at www.centralillinoisimports.org/forums/

Ron1n
03-22-2005, 05:20 AM
AHA!

your download URL is wrong. it needs to be /downloads/, not whatever it is now. :)

CosmicBlend
03-22-2005, 05:26 AM
Thanks! got it working now. btw your hack rocks. I rated it 5 stars :)

Ron1n
03-22-2005, 05:32 AM
thanks m8 :) I had sortof a low rating before :P

Blackbeard
03-22-2005, 04:14 PM
of course, just follow what upgrade.txt says

thanks m8

k40tic
03-22-2005, 04:34 PM
Again I like it and rated it a 4. I would have given it a full 5 if not for the links in it to your site which includes game hacks. As I said before as a clan leader and honest gamer I cannot except having links on my site anywhere that would lead to a hack site. Maybe something else can be arranged and I can link to somewhere else. Let me know. By the way you're famous. They are talking about you at the steam forums. I didn't give your name but they are saying someone at this site creates vbulletin mods and runs a hack site. Some little kids are saying how your site needs to be shut down and bla bla bla. Funny stuff. I have no problems with your site or what you do. It's your business how you spend your time. I just wont link to it or support it. I know it has to be you cause your the only person I know of here that runs a hack site. :cool:
Once the link thing has been sorted out I will make this mod public on my board. I already seen someone request a file size for linked files and that's all I would ask for to be added. Nice work!!

Viks
03-22-2005, 05:16 PM
Ron1n buddy.
Thanks for the help. Yes, my bad, i was able to fix the problem by editing the config file. As I have told you in the past and will say again, I REALLY like this mod and fiind it very useful, especially the layout AND the features.

$ a fully functional anti-leach system is really all what I think is needed....everything else is 5 stars *****

twoseven
03-22-2005, 06:06 PM
there is a problem when i try to use the file feature it doesnt allow for x.x.x for the file versions if i have ver1.1.4.zip it will say it isnt a valid extention

k40tic
03-22-2005, 07:03 PM
Under edit file Cheat Name should be changed to File Name.

Ron1n
03-22-2005, 09:31 PM
By the way you're famous. They are talking about you at the steam forums. I didn't give your name but they are saying someone at this site creates vbulletin mods and runs a hack site.Oh don't I love it.. fame, fortune, glory! I am branching out into several new fields this month and next (plug: http://www.imagehost.org).

Some little kids are saying how your site needs to be shut down and bla bla bla.Those poor, mininformed children. I remember when an AA guy posted that it was a federal crime to hack AA games... people have no clue what they are talking about. I agree, fun fun.

Once the link thing has been sorted out I will make this mod public on my board. I already seen someone request a file size for linked files and that's all I would ask for to be added. Nice work!!Well, give me $9 to register a new domain at www.domains4you.com via paypal and I will buy a new domain. Until then, I think the link will remain the same. Paypal: raven24542 [at] yahoo [dot] com

there is a problem when i try to use the file feature it doesnt allow for x.x.x for the file versions if i have ver1.1.4.zip it will say it isnt a valid extentionI haven't had this problem, but I will look at it and test it out. I thought I used the right command to find the LAST occurance of a '.' in the filename, but I might have messed up. I am on vacation now but I will try to test it out this evening.

Under edit file Cheat Name should be changed to File Name. Or should it.... Fine, i'll change that next version. :bandit:

$ a fully functional anti-leach system is really all what I think is needed....everything else is 5 stars ***** I just need a link to a tutorial or example.

k40tic
03-22-2005, 09:38 PM
Or should it.... Fine, i'll change that next version. :bandit:

You knew what I meant. I'm sorry to hear you say that about the link. I wont be buying another domain for you because I feel if you were serious about wanting to make an addon everyone could use then something could be agreed upon. I'm honest or I would remove the link myself. It's still a fine addon though so good luck with it.

Rids
03-22-2005, 09:57 PM
I seem to have botched up the upgrade from 1.0e to 2.0c somehow.
I edited the config file, copied the rest of the files over, ran the installer and updated the phrases, templates and mysql, all of which went with no error reports. I also setup the cron job as shown. However, what I have now seems to be half v1 and half v2 with stats, search, and my files all still just showing "coming soon", it still says "vBDownloads 1.0" on the bottom of the main page yet it shows vBDownloads 2.0 below the side panel on all other pages but there is just the "coming soon" message in the content area of all those that do. The add file page still appears to work and I can still download files, however the "files" page seems to have gone missing so I can't validate any uploads. Any ideas what I've done and if so, what can I do to put it right?

The Equivocate
03-22-2005, 10:30 PM
I'm getting the following error when I try and upload a file:

Fatal error: Call to undefined function: prep_file() in /home/rapfxco/public_html/includes/dl_add.php on line 66

Ron1n
03-22-2005, 11:36 PM
I seem to have botched up the upgrade from 1.0e to 2.0c somehow.

Correct. I think that your problem here is just the templates. Try uploading the installer again, uninstalling 2.0, and reinstalling 2.0. This should fix all your problems. Tell me if it doesnt.

I'm getting the following error when I try and upload a file:

Fatal error: Call to undefined function: prep_file() in /home/rapfxco/public_html/includes/dl_add.php on line 66

Search in dl_functions.php for prep_file, and it should be there. If it is, upload it to your server again. If it isnt, then you probably overwrote dl_functions.php with your old file and you need to download 2.0c and get the file again.

Rids
03-22-2005, 11:48 PM
Try uploading the installer again, uninstalling 2.0, and reinstalling 2.0. This should fix all your problems. Tell me if it doesnt

Will that affect the data or the database as I have quite a few files in the system and would hate to lose them?

The Equivocate
03-23-2005, 12:15 AM
Correct. I think that your problem here is just the templates. Try uploading the installer again, uninstalling 2.0, and reinstalling 2.0. This should fix all your problems. Tell me if it doesnt.



Search in dl_functions.php for prep_file, and it should be there. If it is, upload it to your server again. If it isnt, then you probably overwrote dl_functions.php with your old file and you need to download 2.0c and get the file again.

This was a clean install, no previous versions. I searched in dl_functions and could not find a "prep_file" but was able to find "file_prep":

// --------------------------------------------------------------------
// Prepare for renaming
// --------------------------------------------------------------------
function file_prep($text) {
$patterns = array("~","`","!","@","#","$","%","^","&","*","(",")","{","}","|","\\",":",";","\"","'","<",",",">","?","/");
return str_replace($patterns, "", $text);
}

Well I obviously see the problem now, so I guess its just an error in your new files, because I changed "file_prep" to "prep_file" and it works fine now. :cool:

Juanito
03-23-2005, 01:58 AM
You may only upload or link to the following extensions...

The system can't detect the extension of the file I'm trying to upload/link. Whatever settings or file I try I always get the mesasge above.

What should I look for to fix this?

Thanks for this gert addon, hope I'll get it to work for me.

tpr
03-23-2005, 10:54 AM
I encountered a rather wired bug with the installation
The install created tables with the table prefix appearing twice so if my prefix was frm i recived frm_frm_files_etc....
had to change it manually.

Anyone encountered this bug ?
Tpr

xtreme-mobile
03-23-2005, 12:42 PM
how do you install this????

there are no instructions in the zip file

cheers

Marco van Herwaarden
03-23-2005, 12:49 PM
how do you install this????

there are no instructions in the zip file

cheersSee the file Dowload System 2.0b.txt

xtreme-mobile
03-23-2005, 12:53 PM
sorry i posted in the wrong hack :( was trying to find out about the flag pm hack

please delete (Sorry :()

xtreme-mobile
03-23-2005, 04:19 PM
im a little confused with the uploading of files :(


it says up load all files to /forum

yet they are in folder in the zip like admin cp and includes and cron???

do i upload them to where ever they are in the zippeddownload or just upload all files to forum root?

cheers fellas

rjordan
03-23-2005, 04:57 PM
I have two more suggestions.

1- When you go to edit categories and you have multiple instances if a subcategory, it seems to group them together as so (pulled directly from my list):

Battlezone
Deathmatch Maps
Deathmatch Maps
Instant Action Maps
The Red Odyssey
Instant Action Maps
Strategy Maps
Strategy Maps
Off-Site Links
Patches
Patches
Add-Ons
Add-Ons
Mods
Mods

Can this be modified so that the subcategories are listed under the main in a fashion like so by adding dashes to the drop-down list for subcategories:

Battlezone
-- Deathmatch Maps
-- Instant Action Maps
-- Strategy Maps
-- Patches
-- Add-Ons
-- Mods
The Red Odyssey
-- Deathmatch Maps
-- Instant Action Maps
-- Strategy Maps
-- Patches
-- Add-Ons
-- Mods
Off-Site Links

This would make life so much easier for me when I have a gaming site and the same sub-category names for each game. Not to mention easily selecting any subcategory under the appropriate main category. I also noticed that when adding files, you get somewhat like the above, but the drop-down list is not ordered by how you have them set to be ordered.



2- Multiple (unlimited?) levels of sub-categories. Right now, you can have only one subcategory. In conjuntion with the above example, something like this:

Battlezone
-- Deathmatch Maps
-- Instant Action Maps
-- Strategy Maps
---- 2 Player Maps
---- 3 Player Maps
---- 4 Player Maps
-- Patches
---- Official
---- Unofficial
-- Add-Ons
-- Mods
---- Weapons
---- Ships
------ Tanks
------ Bombers
------ Turrets

Your thoughts?

xtreme-mobile
03-23-2005, 05:10 PM
ive done everything asked in the instructions but when i go to

http://www.extreme-mobile.com/forums/downloads.php i just get this error (see screenshot) any ideas?

rjordan
03-23-2005, 05:14 PM
You may only upload or link to the following extensions...

The system can't detect the extension of the file I'm trying to upload/link. Whatever settings or file I try I always get the mesasge above.

What should I look for to fix this?

Thanks for this gert addon, hope I'll get it to work for me.
Since updating to 2.0c, I can no longer upload or link files either. I am still looking into it, but thought I would mention it.

Gottcha
03-23-2005, 05:43 PM
OK i installed and not able to upload anything...i set the usergroups so they can all upload and download. I created a catagory but when i access the dowloads.php i dont see anythig.

http://www.fragtraders.com/forums/downloads.php?

Im sure its something simple...any help please

k40tic
03-23-2005, 05:56 PM
OK i installed and not able to upload anything...i set the usergroups so they can all upload and download. I created a catagory but when i access the dowloads.php i dont see anythig.

http://www.fragtraders.com/forums/downloads.php?

Im sure its something simple...any help please

Your looking for the vbdownload area thread. This is vbdownloads by ron1n. I don't think that the one you have installed is supported any more by the author. Could be wrong though.

xtreme-mobile
03-23-2005, 06:01 PM
right ok guys im getting the following errs now :(

when i try to go to the downloads.php file i get errors ( see screenshot and when i go to admin cp and try and add a category i get the following

Fatal error: Call to undefined function: fetch_result() in /home/admin/public_html/forums/includes/db_mysql.php on line 307

The Equivocate
03-23-2005, 06:14 PM
Since updating to 2.0c, I can no longer upload or link files either. I am still looking into it, but thought I would mention it.

The problem lies in dl_functions.php:

// --------------------------------------------------------------------
// Prepare for renaming
// --------------------------------------------------------------------
function file_prep($text) {
$patterns = array("~","`","!","@","#","$","%","^","&","*","(",")","{","}","|","\\",":",";","\"","'","<",",",">","?","/");
return str_replace($patterns, "", $text);

Should be changed to:

// --------------------------------------------------------------------
// Prepare for renaming
// --------------------------------------------------------------------
function prep_file($text) {
$patterns = array("~","`","!","@","#","$","%","^","&","*","(",")","{","}","|","\\",":",";","\"","'","<",",",">","?","/");
return str_replace($patterns, "", $text);

Juanito
03-23-2005, 06:24 PM
The problem lies in dl_functions.php:

// --------------------------------------------------------------------
// Prepare for renaming
// --------------------------------------------------------------------
function file_prep($text) {
$patterns = array("~","`","!","@","#","$","%","^","&","*","(",")","{","}","|","\\",":",";","\"","'","<",",",">","?","/");
return str_replace($patterns, "", $text);

Should be changed to:

// --------------------------------------------------------------------
// Prepare for renaming
// --------------------------------------------------------------------
function prep_file($text) {
$patterns = array("~","`","!","@","#","$","%","^","&","*","(",")","{","}","|","\\",":",";","\"","'","<",",",">","?","/");
return str_replace($patterns, "", $text);

Didn't worked for me... :(

Is it me or the content seems identical in both fileds of your post? Copy paste error maybe?

xtreme-mobile
03-23-2005, 06:29 PM
i give up :(

clicks uninstall

DS MrSinister
03-23-2005, 06:59 PM
kewl hack. I dont care for your site much Cheats. :(

Gottcha
03-23-2005, 06:59 PM
ok i got it installed but when i try to upload i get this error:

Fatal error: Call to undefined function: prep_file() in /home/fragtrad/public_html/forums/includes/dl_add.php on line 66

phreak420
03-23-2005, 07:32 PM
^^^^
thats the same error im getting

heres my settings...any suggestions

http://img178.exs.cx/img178/4572/downloads7tq.th.jpg (http://img178.exs.cx/my.php?loc=img178&image=downloads7tq.jpg)

Rids
03-23-2005, 07:56 PM
For some reason when I updated from 1.0e to 2.0c not all of the templates were updated and not all of the mysql fields were set either. I eventually put the templates and mysql right (I think) manually from the installer file but what I have now is a mess:

Main page:

pages full of these: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/forums/includes/dl_main.php(24) : eval()'d code on line 2

None of the categories are now visible

When I manually set the downloads_cat_filebit template I got the following error message: Parse error: parse error, unexpected T_STRING, expecting ']' in /home/xxxxxxxx/public_html/forums/includes/adminfunctions_template.php(3096) : eval()'d code on line 3
This is likely caused by a malformed conditional statement.


Manage files page

even more pages full of these: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxxxx/public_html/forums/includes/dl_manage.php(97) : eval()'d code on line 2

None of the actual data is visible

When I tried setting the downloads_man_edit template I got the following error: Parse error: parse error, unexpected $ in /home/xxxxxxxx/public_html/forums/includes/adminfunctions_template.php(3096) : eval()'d code on line 91
This is likely caused by a malformed conditional statement.

I am also getting errors on the add file page: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxxxx/public_html/forums/includes/dl_add.php(94) : eval()'d code on line 1

I'm now completely stumped with nothing working :(

rjordan
03-23-2005, 10:10 PM
i give up :(

clicks uninstallGheez, give the man a chance! He may not have been online for the past 24-48 hours! :confused:

rjordan
03-23-2005, 10:16 PM
Ok, I made the change (file_prep to prep_file) but it did not help. Same thing.

SupraT
03-23-2005, 10:21 PM
tekram,

I think that answer was posted out of frustration by the author. Personally, I would not take the same request again and again as people pressuring me, but I can understand how the author might interpret it that way.

I think most of the time we just get all excited about great hacks and think we are encouraging the hacker by expressing our wants and needs ... even if it is the same thing posted by others.

Anyway, welcome! and I'm sure we both agree that this is a great hack and thank Ron1n for his generosity in sharing his hard work with us. ;)

Agreed and this is a great COMPLETE download hack. I am installing and converting over!

phreak420
03-24-2005, 12:37 AM
alright well i got the uploading part to work...now i get some errors with downloading it...it doesnt use the right file name

elastomaniac
03-24-2005, 01:44 AM
I just upgraded from vBDownloads 2 to the latest version but when i try to upload a file i get:

Fatal error: Call to undefined function: prep_file() in /home/elma2/public_html/includes/dl_add.php on line 66

EDIT: Fixed it by changing prep_file to file_prep :D

Osiris2k
03-24-2005, 02:11 AM
Could users be able to upload files larger in size than 2mb (my host has a max 2mb for php)

Juanito
03-24-2005, 02:41 AM
alright well i got the uploading part to work...now i get some errors with downloading it...it doesnt use the right file name

Can you explain how you fixed your problem, amybe this could help...

I still can't upload or link anything, keep telling me I can only upload the extension I'm already trying to upload!

Ron1n
03-24-2005, 03:43 AM
I have two more suggestions.
1- When you go to edit categories and you have multiple instances if a subcategory, it seems to group them together as so (pulled directly from my list):
Can this be modified so that the subcategories are listed under the main in a fashion like so by adding dashes to the drop-down list for subcategories:
Sounds good.

2- Multiple (unlimited?) levels of sub-categories. Right now, you can have only one subcategory. In conjuntion with the above example, something like this:

This would be a tad tricky and would slow down forums even for people without many subcats. To be honest, just including one level of subcats requires Order(cats+1) more queries, and unlimited subcats would require Order(cats(depth)+1). Currently, if you have 5 cats you make 1 query. If you have 5 cats with 5 subcats, you make 5+1 queries. If you have 5 cats with 5 subcats and the possibility of another level of subcats you make 25+5+1 queries.

I tried my best to optimize queries and only perform stat-gathering queries when needed (file changes etc) and as a result, I think I may be able to incorporate this... but I will have to think about it.

ok i got it installed but when i try to upload i get this error:

Fatal error: Call to undefined function: prep_file() in /home/fragtrad/public_html/forums/includes/dl_add.php on line 66

Change file_prep to prep_file in dl_functions.php

For some reason when I updated from 1.0e to 2.0c not all of the templates were updated and not all of the mysql fields were set either. I eventually put the templates and mysql right (I think) manually from the installer file but what I have now is a mess: ... I'm now completely stumped with nothing working :(

I really don't know what to say. I haven't ever recieved those errors with this script or any other webprogram I have written or used. I know you had some data in your tables, but I would suggest a complete reinstall. If you want to save your old data, export it to a .sql file, and do a complete reinstall of EVERYTHING. If it works, I will help you manually add back the mysql data.

Good luck, and keep me posted.

Could users be able to upload files larger in size than 2mb (my host has a max 2mb for php)

No. That is why I added the link-to-file feature. The only way to upload larger files is change your php config.

I still can't upload or link anything, keep telling me I can only upload the extension I'm already trying to upload!Did you remember to add a . before your extension? (.rar, .jpg, .exe, .php) Also, if you are doing one with 2 or four letters (or more) and it doesnt work... I could have a bug. Please tell me what extension you are trying to upload and what you entered into the admincp.

I think I covered all the problems... if not just repost it.

There was someone who said uploading files with a . in the name didnt work...and I havent been able to produce the same error.

Allan
03-24-2005, 05:27 AM
thanks Ronin, very nice hack :)

(click Install) ;)

Allan
03-24-2005, 05:40 AM
I have this error in localhost when I click on "order the files"

error:

Parse error: parse error in c:\program files\easyphp1-8\www\forum\includes\dl_manage.php on line 36


ligne 36 (in red) of file "dl_manage.php":

if ($file['link'] == 0)
{
if (!" . TABLE_PREFIX . "file_exists($INFO['url'].$file['url'])) {
eval('$filebits .= "' . fetch_template('downloads_man_filebits') . '";');
}
}

rjordan
03-24-2005, 09:54 AM
Try removing the ] at the front of the line you highlighted.

Marco van Herwaarden
03-24-2005, 09:58 AM
Change:
]if (!" . TABLE_PREFIX . "file_exists($INFO['url'].$file['url'])) {
to: if (!" . TABLE_PREFIX . "file_exists($INFO['url'].$file['url'])) {

But double check your edit, because that ] must have come from somewhere (unless hack instructions have an error, which i didn't check).

Allan
03-24-2005, 10:00 AM
Change:
]if (!" . TABLE_PREFIX . "file_exists($INFO['url'].$file['url'])) {
to: if (!" . TABLE_PREFIX . "file_exists($INFO['url'].$file['url'])) {

But double check your edit, because that ] must have come from somewhere (unless hack instructions have an error, which i didn't check).


nono, it's a error of me for the color ligne juste, rectified :o

phreak420
03-24-2005, 10:00 AM
Can you explain how you fixed your problem, amybe this could help...

I still can't upload or link anything, keep telling me I can only upload the extension I'm already trying to upload!

well what i did was in the dl_add i had the error on line 66...so i changed the code a little bit

fromprep_file tofile_prep and now it says its uploaded atleast but then when i go to download the file name is changed

Marco van Herwaarden
03-24-2005, 10:53 AM
nono, it's a error of me for the color ligne juste, rectified :oWhat is the meaning of the " . TABLE_PREFIX . "

Looks to me that don't belong there

Ron1n
03-24-2005, 01:31 PM
What is the meaning of the . TABLE_PREFIX .

Looks to me that don't belong there

TABLE_PREFIX is the vB mysql database prefix, but correct, it does not belong there. I dont think it exists there - or has existed there, in all the latest versions. He must be using an old copy.

However, I did update this file last night from my laptop, and the files could be reverted to their prior state. Could someone please clarify whether the TABLE_PREFIX thing exists before file_exists in 2.0d? I would check myself, but I cant open .zip files atm.

well what i did was in the dl_add i had the error on line 66...so i changed the code a little bit from
prep_file
to
file_prep
and now it says its uploaded atleast but then when i go to download the file name is changed

1. change file_prep back to prep_file. Open dl_functions.php and change file_prep to prep_file (around line 34)

2. It SHOULD change the name of the file to {cat abbrev} {author} {file}.{extension}

Aren't you still able to download the file?

Allan
03-24-2005, 03:20 PM
I have this error in localhost when I click on "order the files"

error:

Parse error: parse error in c:\program files\easyphp1-8\www\forum\includes\dl_manage.php on line 36


ligne 36 (in red) of file "dl_manage.php":

if ($file['link'] == 0)
{
if (!" . TABLE_PREFIX . "file_exists($INFO['url'].$file['url'])) {
eval('$filebits .= "' . fetch_template('downloads_man_filebits') . '";');
}
}



Hey Ron1n, you does not have idea for my problem :rolleyes:

Marco van Herwaarden
03-24-2005, 03:37 PM
Alan,

Like i suggested above, start by removing that ". TABLE_PREFIX ."

Allan
03-24-2005, 05:55 PM
Alan,

Like i suggested above, start by removing that ". TABLE_PREFIX ."


veiled, I did it and it is similar, even error

The Realist
03-24-2005, 06:31 PM
If this sounds dull Im sorry :)

But how do you or members upload files? I can see the download php file but thats it?

The Realist
03-24-2005, 07:51 PM
Ignore my above post, all working.

Also make sure that Php open_basedir is off for the URL this hack is being used for, I was getting permission errors with it on.

Laters

If this sounds dull Im sorry :)

But how do you or members upload files? I can see the download php file but thats it?

rjordan
03-24-2005, 09:20 PM
Ok, I have an off-site link:

http://www.battlezoneclub.org/BZClubDL/AntilagXP.zip (http://www.battlezoneclub.org/BZClubDL/AntilagXP.zip)

and place it in the link field for adding. When I try to submit, I get the error about only submitting certain file types.

If I do:

/BZClubDL/AntilagXP.zip

it is added to the database fine. The problem here, of course, is I cannot use this for off-site links.

Additionally, when I try to delete this, I am getting the following error:

Warning: unlink(./downloads//BZClubDL/AntilagXP.zip): No such file or directory in /includes/dl_manage.php on line 141

The Realist
03-24-2005, 09:24 PM
Remove the dot from the begining of the upload path. Also make sure that you have disabled Php open_basedir.

Laters

rjordan
03-24-2005, 09:37 PM
The problem is, I do not think that it is supposed to put anything in the downloads folder if it is a link. This is not an uploaded file. I should not see that error at all on a link... right?

Oh, and how WOULD you disable open_basedir if that were an issue?

Ron1n
03-24-2005, 09:53 PM
rjordan: Ok, read the delete message: unable to delete (file) or whatever... it makes perfect sense that you wouldn't be able to delete a file that isnt on your server etc. That being said, the hack shouldnt TRY to delete a linked file, so I will fix that. Its a bug, but not a problem. Its just one of those anoying things that doesnt effect performance. Seeing as it cannot effect performance, I will fix it in the next general release.

Allan: your using an old version or failed to reupload the files you edited.

rjordan: about linking to files on other servers, i get the same thing. im not sure whether its a . issue, a : issue or a / issue. I will look into it. For now... just dont leech.

rjordan
03-24-2005, 10:19 PM
I understood the error and came to the same conclusion. IT could not delete what was not there. Just bringing it up.

Perhaps the off-site linking can be solved by only looking for the extension of what follows the last slash in the URL...

lol ... Oh, yeah ... I only link with permission! Thanks for looking into it!

Ron1n
03-24-2005, 10:22 PM
OFFSITE LINK FIX

Find in dl_add.php (45) and dl_edit.php (38):

if ($_FILES['upload']['name'] != '')
strstr($_FILES['upload']['name'], '.');
else
strstr($_POST['link'], '.');
change to:


if ($_FILES['upload']['name'] != '')
$ext = substr($_FILES['upload']['name'], strrpos($_FILES['upload']['name'], '.'));
else
$ext = substr($_POST['link'], strrpos($_POST['link'], '.'));


Find in dl_manage.php (139):
$url = $DB_site->query_result("SELECT url FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
unlink($INFO['uurl'].$url);

change to:


$file = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
if (!$file['link'])
unlink($INFO['uurl'].$file['url']);

Find in dl_manage.php (192):

foreach($_POST['id'] as $id => $value) {
$url = $DB_site->query_result("SELECT url FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
unlink($INFO['uurl'].$url);
}

change to:

foreach($_POST['id'] as $id => $value) {
$file = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
if (!$file['link'])
unlink($INFO['uurl'].$file['url']);
}

phreak420
03-24-2005, 10:31 PM
i still have problems with it...i still have to go in to ftp...change the filename to whatever it changes it to...then i also have to upload the file because it doesnt upload the file anywhere

Ron1n
03-24-2005, 11:04 PM
i still have problems with it...i still have to go in to ftp...change the filename to whatever it changes it to...then i also have to upload the file because it doesnt upload the file anywhereYou will have to explain yourself more. What errors does it give you? The hack works fine for me and it uploads everything well. It does rename the file, but thats what it should do.

You might want to check some of your server settings and chmod the directory you upload to correctly.

Good luck :)

BamaStangGuy
03-25-2005, 03:20 AM
No matter what I try it will not order my categories via what I put into the admincp Categories section... It is inseting it into the database but it is not sorting by what is in the database. Can anyone else confirm this?

Juanito
03-25-2005, 07:07 AM
I tried this but I still can't link urls, only works when I put in local "/directory/filename"...

But! I can upload files when they have no characters like "-" or "." in the filename... At least it starts to be funcionnal to me!

Thanks

OFFSITE LINK FIX

Find in dl_add.php (45) and dl_edit.php (38):

if ($_FILES['upload']['name'] != '')
strstr($_FILES['upload']['name'], '.');
else
strstr($_POST['link'], '.');
change to:


if ($_FILES['upload']['name'] != '')
$ext = substr($_FILES['upload']['name'], strrpos($_FILES['upload']['name'], '.'));
else
$ext = substr($_POST['link'], strrpos($_POST['link'], '.'));


Find in dl_manage.php (139):
$url = $DB_site->query_result("SELECT url FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
unlink($INFO['uurl'].$url);

change to:


$file = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
if (!$file['link'])
unlink($INFO['uurl'].$file['url']);

Find in dl_manage.php (192):

foreach($_POST['id'] as $id => $value) {
$url = $DB_site->query_result("SELECT url FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
unlink($INFO['uurl'].$url);
}

change to:

foreach($_POST['id'] as $id => $value) {
$file = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
if (!$file['link'])
unlink($INFO['uurl'].$file['url']);
}

phreak420
03-25-2005, 09:52 AM
what happens is that i click upload...everything works fine from what it looks like....it says file was uploaded...but then when u go to click on download file there is no file there...brings u to the error page...so then i go in...manually upload it through ftp...rename it to the name it gave me and then it works...but i would like it so that everybody can upload files not just me because i have ftp

rjordan
03-25-2005, 01:25 PM
Minor modification request:

When clicking on the download button, can you make it so it opens the link in a new window? Sounds trivial I know, but I am linking to other posts where the author does not mind downloading, but because it is a beta release he does not want it mirrored yet. As it stands, when I link to a forum post, it is leaving my site. This could also benefit other unknown situations too where you may end up leaving the site by clicking on the download link. I am going to make the change on my site as it is really simple, but thought I would share.

The change I made:

In includes/dl_file.php (around line 123) change:

$download = '<a href="./downloads.php?do=file&id='.$file['id'].'&act=down">Download Here</a>';
to
$download = '<a href="./downloads.php?do=file&id='.$file['id'].'&act=down" target="File'.$file['id'].'">Download Here</a>';
Just thought I would contribute a little! Oh, thanks for the link fix. Worked like a charm!

The Realist
03-25-2005, 02:21 PM
What are the upload limits and how do you increase it?

Laters

AuroraMike
03-25-2005, 06:41 PM
uploads via http/php are limited by 2 settings in your php.ini file (assuming UNIX, I'm sure its the same in Windoze though). By default, max_post_size and max_upload_size are 2M. Increase them to a value you want but also realize that this consumes extra memory and *could* later be used for some random exploit or DoS. None exist that I know of that affect the current versions but potentially someone could attempt to repeatedly post 8MB strings and chew up all your available RAM and swap a lot faster since they use 8MB blocks.

but again, no such evil exists...today.

Maximum Fu
03-25-2005, 08:01 PM
I am trying to modify the panels across the top with the user info, the latest file info, and the most popular files info.

The template downloads_panel_top seems to create each of the fieldsets that contains all the info.

But, within each of the fieldsets, they reference what sounds like it is in another template.

Does anyone know where the templates are for the following:

$panel_user_bit
$panel_latest_bits
$panel_popular_bits

Maximum Fu
03-25-2005, 08:18 PM
On a similar topic, where can I access the nav links?

mikaelweb
03-25-2005, 08:25 PM
in includes/dl_panel.php $panel_user_bit
$panel_user_bit = " <div>Your logged in as $bbuserinfo[username]</div>
<div>Files downloaded: $bbuserinfo[downloads] files</div>
<div>Files submitted: $bbuserinfo[uploads] files</div>
<div>Last File: $last</div>
<div>Downloaded On: $date</div>";
} else {
$panel_user_bit = " <div>You are <b>not</b> currently logged in.</div>
<div>You <b>cannot</b> download files</div>
<div>You <b>cannot</b> upload files</div>
<div>You <b>cannot</b> post comments</div>";
}
in includes/dl_panel.php $panel_latest_bits

// --------------------------------------------------------------------
// Construct the Latest File Bits
// --------------------------------------------------------------------

for($i = 1; $i <= 4; $i++) {
$name = $main['latest['.$i.']'];
$id = $main['latestid['.$i.']'];
//$value = vbdate($vboptions['dateformat'],$main['latestval['.$i.']'],true);
eval('$panel_latest_bits .= "' . fetch_template('downloads_panel_bit') . '";');
in includes/dl_panel.php $panel_popular_bits

// --------------------------------------------------------------------
// Construct the Popular File Bits
// --------------------------------------------------------------------

for($i = 1; $i <= 4; $i++) {
$name = $main['popular['.$i.']'];
$id = $main['popularid['.$i.']'];
$value = $main['popularval['.$i.']'];
eval('$panel_popular_bits .= "' . fetch_template('downloads_panel_bit') . '";');
}
in includes/dl_panel.php nav links

// --------------------------------------------------------------------
// Construct the Navigation Bit
// --------------------------------------------------------------------
$panel_links = 'Welcome';

if ($permissions['downloadpermissions'] & CANDOWNLOADFILES) {
$panel_links = '<a href="downloads.php?">Main</a>';
}
if ($permissions['downloadpermissions'] & CANUPLOADFILES) {
$panel_links .= ' | <a href="downloads.php?do=add">Add</a> | <a href="downloads.php?do=util&act=my">My Files</a>';
}
if ($permissions['downloadpermissions'] & CANMANAGEFILES) {
$panel_links .= ' | <a href="downloads.php?do=man&act=viewfile">Manage Files</a>';
} l

Maximum Fu
03-25-2005, 08:26 PM
I thank you kindly. I will give this a whirl!

BamaStangGuy
03-25-2005, 11:13 PM
I thank you kindly. I will give this a whirl!
If you get this can you tell me what you did to the templates?

banuchi2
03-26-2005, 01:44 AM
Will this work on vb 3.6

memobug
03-26-2005, 10:24 AM
I have probably done something wrong. However, I can't figure it out. I can see the top level of the download categories but when I browse into any of the categories I get a blank page.

1. I ran downloadinstall.php
2. I uploaded the files
3. I have made the required changes to the files and checked them.
4. I put the download directory under /forum like /forum/downloads
5. I have made the permissions changes
6. I created the cron job.
5. I can see and create categories and they show up when I browse the top level. I can see also phrases and templates
BUT:
6. If I click any category nothing shows up, just a blank page.

I think it might have to do with the paths?

I tried leaving them as-is
./downloads/
./downloads/

and I tried putting in the correct absolute server path and http:// address to same. But the results weren't any different.

I think the instructions are a little vague on this point as they seem to use the terms "path" and "URL" interchangeably; asking for a "full path" and then specifying a relative path "./downloads/"; asking for a "web path" or URL and then specifying a relative path "./downloads/"

Regards,

Matt

Ron1n
03-26-2005, 01:55 PM
Will this work on vb 3.6
Read the features list :)

I have probably done something wrong. However, I can't figure it out. I can see the top level of the download categories but when I browse into any of the categories I get a blank page.

The only thing I can think of is that your side panel template isnt working/showing up. The main page is run off of a vertical alignment, but the rest are run off of a standard header-sidebar-content alignment. This is all I can think of for the moment. If you know a little about php or even html try some testing and see if the side panel template is called. If you dont, try reinstalling the templates (dont need to wory about the others) but remember to uninstall first. I know i built it in to overwrite, but sometimes it doesnt work. If you still have problems, I will try to help you again so that you dont have to do a complete reinstall. I could just have you insert a couple echo statements in the category view.

No matter what I try it will not order my categories via what I put into the admincp Categories section... It is inseting it into the database but it is not sorting by what is in the database. Can anyone else confirm this?

I tried sorting by different things and didnt have that problem. If you want I will look at your setup and try it on your board... that might help me figure out whats wrong. On my demo board it works fine though.

I tried this but I still can't link urls, only works when I put in local "/directory/filename"...

But! I can upload files when they have no characters like "-" or "." in the filename... At least it starts to be funcionnal to me!

Thanks

I dont think that a . in the filename would cause any problems, but a - might. I will go see what I do to linked files in a few minutes and try to fix it later today if I find any problems like that. Check back around 5-6pm.

what happens is that i click upload...everything works fine from what it looks like....it says file was uploaded...but then when u go to click on download file there is no file there...brings u to the error page...so then i go in...manually upload it through ftp...rename it to the name it gave me and then it works...but i would like it so that everybody can upload files not just me because i have ftp

I know your file uploads are supposedly going to the correct directory, but the only thing that could cause this problem that I have thought of is if you are uploading to a different directory. Double check that your settings are correct.

Minor modification request:

When clicking on the download button, can you make it so it opens the link in a new window?

Yes, i can do that. (or at least make it an option in settings)

bluetrain
03-26-2005, 02:20 PM
This is either a stupid question or I did something wrong with the installation. I've triple check the installation instruction, cmod folder, but I can't see any thing such as Manage, Add Files and such. Please help me, I have spent half an hour before posting this question.

SupraT
03-26-2005, 02:24 PM
This is either a stupid question or I did something wrong with the installation. I've triple check the installation instruction, cmod folder, but I can't see any thing such as Manage, Add Files and such. Please help me, I have spent half an hour before posting this question.

You need to go to the permissions for each user group and the ability to add and change etc. You can control which group gets access to view, download, add and manage.

You should find this in the cp ---> usergroups

bluetrain
03-26-2005, 02:29 PM
Thanks SupraT, that was a stupid question, indeed, but I did read the instruction and no mention of Usergroup changing. Peharps the authors should put that line for noobs like me.

thanks very much again.

Bhuwan
03-26-2005, 02:44 PM
Uninstall doesnt workl the page is blank :(
try to go to /admincp/downloadmin.php and it is blank :(

AlexUK
03-26-2005, 04:40 PM
Question:

How to only allow users that have 5-10 posts before they can download?
Is this possible?

Thanks

SupraT
03-26-2005, 05:16 PM
Question:

How to only allow users that have 5-10 posts before they can download?
Is this possible?

Thanks

That would be pretty simple. Create a usergroup called, register 10+, that group would have users with 10 or more posts. Use the promotion system to automatically move your members as they post more. example:

non-registered
registered 10+
registered 20+
so on, you can name them anything you like, these are just examples.

Also, you could allow only uploads to your most active users, using the same system.

Hope that helps.

memobug
03-26-2005, 06:50 PM
I uninstalled and reinstalled everything (phrases, templates, db changes) with the identical result. I still get a blank page when I try to browse into a category. I don't know how to verify what might be happening with that sidebar template, so if you can give me some PHP echo statements to insert I would be happy to try. I put a print statement in there and I could see it makes it down to where the header comes out and somewhere in the call to render DOWNLOADS is the problem.

Thanks for your support!

Regards,

MattThe only thing I can think of is that your side panel template isnt working/showing up. The main page is run off of a vertical alignment, but the rest are run off of a standard header-sidebar-content alignment. This is all I can think of for the moment. If you know a little about php or even html try some testing and see if the side panel template is called. If you dont, try reinstalling the templates (dont need to wory about the others) but remember to uninstall first. I know i built it in to overwrite, but sometimes it doesnt work. If you still have problems, I will try to help you again so that you dont have to do a complete reinstall. I could just have you insert a couple echo statements in the category view.

I tried sorting by different things and didnt have that problem. If you want I will look at your setup and try it on your board... that might help me figure out whats wrong. On my demo board it works fine though.
I have probably done something wrong. However, I can't figure it out. I can see the top level of the download categories but when I browse into any of the categories I get a blank page.

ShawnV
03-26-2005, 06:53 PM
I dont see a downloads link in the navbar after install of this mod, how do I add one?

Thanks in advance.

memobug
03-26-2005, 07:09 PM
I dont see a downloads link in the navbar after install of this mod, how do I add one?

Thanks in advance.

I can help with this one I think. You need to manually put the link in the navbar by going into your template manager under Styles & Templates->Style Manager->Edit Templates-> Expand Navigation / Breadcrumb templates->Edit Navbar template, and copy one of the existing links like the one for FAQ and the surrounding <td class="vbmenu_control">link</td> stuff. Change the text anchor to "Downloads" and the link path to wherever you put Downloads.php and you should be fine.

Regards,

Matt

ShawnV
03-26-2005, 08:26 PM
Thanks, I also had to add in a phrase to make it work.

Ron1n
03-26-2005, 09:09 PM
Thanks, I also had to add in a phrase to make it work.

What phrase did you have to add to make the dl section work?

Ron1n
03-26-2005, 09:21 PM
UPDATES:

BrentWilson: ordering works fine for me when I set it to `order` in the settings... im not sure exactly whats causing the problem. If anyone else has this problem please tell me.

Juanito: worked fine for me, can you give me the exact url you tried to add?

phreak420: still waiting for your reply to the previous post

memobug: Add some subcats and files under one category, and then add the following edits.


FIND:
$result['subs'] = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "file_cats WHERE parent = '".$_GET['id']."' ORDER BY ".$INFO['order']."");

BELOW:
echo "CONSTRUCTING SUB BITS<br>";

FIND:
eval('$subbits .= "' . fetch_template('downloads_cat_subbit') . '";');

BELOW:
echo "-- ADDING TO SUB BITS<br>";

FIND:
eval('$subcats .= "' . fetch_template('downloads_cat_subs') . '";');

BELOW:
echo "FINISHED SUB BITS<br>";

FIND:
$result['files'] = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "file_files WHERE approved = '1' AND catid = '".$_GET['id']."' ORDER BY pin DESC, ".$sortbystr." DESC LIMIT ".$limit.",".$perpage);

BELOW:
echo "CONSTRUCTING FILE BITS<br>";

FIND:
eval('$filebits .= "' . fetch_template('downloads_cat_filebit') . '";');

BELOW:
echo "-- ADDING TO FILE BITS<br>";

FIND:
$DB_site->free_result($result['files']);

ABOVE:
ECHO "FINISHED FILE BITS<br>";

If you see a bunch of stuff (started, adding, finished) then do the following edits:

FIND:

eval('$dmain_jr = "' . fetch_template('downloads_cat') . '";');
eval('$dpanel = "' . fetch_template('downloads_panel_side') . '";');
eval('$dmain = "' . fetch_template('downloads_wrapper_side') . '";');

CHANGE TO:

eval('$dmain = "' . fetch_template('downloads_cat') . '";');

Do you see anything?

memobug
03-26-2005, 10:42 PM
<i>Deleted some long debug sequence that ultimately led to the discovery of a space after the final ?> in dl_category.php that had been causing blank page problems.</i>

Ron1n
03-27-2005, 12:42 AM
ALL the referenced templates are there and look good. The only odd thing I saw was the main heading is "Downloads Templates Templates"

Regards,

Matt

1) what do you mean by Download Templates Templates
2) do you have msn or AIM? i could talk with you and sort this out much faster fi we spoke on a message service
3) I still have no clue what the cause could be, but i will continue to think about it.

rjordan
03-27-2005, 01:15 AM
Although purely cosmetic, I noticed that when you add a new link (and/or file) and you get the redirect page, at the top you see EXT: followed by the extension uploaded. It seems that it might have beem used as a troubleshooting line. If anyone wants to get rid of that, I believe the line to comment out or remove is in dl_add.php at about line 50. The line to remove is:

echo "EXT: ".$ext;

memobug
03-27-2005, 03:33 AM
1) what do you mean by Download Templates Templates
2) do you have msn or AIM? i could talk with you and sort this out much faster fi we spoke on a message service
3) I still have no clue what the cause could be, but i will continue to think about it.

1. The name of the template group in the Template manager is "Downloads Templates Templates"
2. Sorry no, I got rid of AIM when they started spybotting (http://www.dslreports.com/shownews/39958) with that Wild Tangent junk.
3. Thanks I would like to get this to work!

Regards,

Matt

memobug
03-27-2005, 04:23 AM
3) I still have no clue what the cause could be, but i will continue to think about it.

I found it!!! There is a single space after the closing ?>
in dl_category.php!!

:banana:

memobug
03-27-2005, 05:54 AM
Although purely cosmetic, I noticed that when you add a new link (and/or file) and you get the redirect page, at the top you see EXT: followed by the extension uploaded. It seems that it might have beem used as a troubleshooting line. If anyone wants to get rid of that, I believe the line to comment out or remove is in dl_add.php at about line 50. The line to remove is:

echo "EXT: ".$ext;

It's not purely cosmetic on my server/browser combo. With this "echo" line in place I will get blank pages if the upload file or link extension are unsupported types. I believe this happens because once something is printed to an output device it can mess up the headers that are sent subsequently.

So it should come out of the download.

It is line 50.

Regards,

Matt

memobug
03-27-2005, 06:47 AM
Did someone already point out a problem with the date formatting? on the Stats page I get Date showing up as

987654321

Regards,

Matt

Ron1n
03-27-2005, 05:50 PM
Although purely cosmetic, I noticed that when you add a new link (and/or file) and you get the redirect page, at the top you see EXT: followed by the extension uploaded. It seems that it might have beem used as a troubleshooting line. If anyone wants to get rid of that, I believe the line to comment out or remove is in dl_add.php at about line 50. The line to remove is:

echo "EXT: ".$ext;

Yes, that is for debugging.

Did someone already point out a problem with the date formatting? on the Stats page I get Date showing up as

987654321

Regards,

Matt

I dont get that... i just send it to the vB date formatter, so I dont see why you get a timestamp instead of a date. Point me to your download section.


I found it!!! There is a single space after the closing ?>
in dl_category.php!!

:banana:

Glad you fixed it, but that 1 space is not a problem. If it were, that would mean your webserver doesnt support integrating php into regular html pages, which is probably not the case. If it is, it means that something on your server is VERY strange.

It's not purely cosmetic on my server/browser combo. With this "echo" line in place I will get blank pages if the upload file or link extension are unsupported types. I believe this happens because once something is printed to an output device it can mess up the headers that are sent subsequently.
Your server is messed up... wow.

Rids
03-28-2005, 02:49 AM
Originally Posted by Rids
For some reason when I updated from 1.0e to 2.0c not all of the templates were updated and not all of the mysql fields were set either. I eventually put the templates and mysql right (I think) manually from the installer file but what I have now is a mess: ... I'm now completely stumped with nothing working

Originally Posted by Ron1n
I really don't know what to say. I haven't ever recieved those errors with this script or any other webprogram I have written or used. I know you had some data in your tables, but I would suggest a complete reinstall. If you want to save your old data, export it to a .sql file, and do a complete reinstall of EVERYTHING. If it works, I will help you manually add back the mysql data.

Good luck, and keep me posted.

I backed up the database tables and then uninstalled and deleted everything, even removed all the file edits. I then reinstalled the mod using the latest version and then imported the data back into the database. Everything seems to be working properly now except the stats page. The stats page is just showing one member (same one for every day) and the same date (03-25-05) day after day and no other figures. I checked the cron job setup and its the same as in the screenshot so I currently have no idea why its not working.

memobug
03-28-2005, 05:54 AM
Yes, that is for debugging.
I dont get that... i just send it to the vB date formatter, so I dont see why you get a timestamp instead of a date. Point me to your download section.

Sorry it was a misunderstanding What I was seeing as an unformatted date 986574321 was actually a username somebody used! So the date formatting is fine. It was just the way the table lined up.

A. HTML issues: However, there seems to be a problem in the table layout of the stats panel. There are several issues where the column counts don't line up. If you turn border="1" on in the template called downloads_util_stats, you'll see it quite obviously. That is why I thought this username was a date problem.. There are also some headings missing.

in the template called downloads_util_stats

1. The table heading "Stats" doesn't cover all the columns beneath it.
It covers 3 columns in a span with the word Stats
<td class="thead" width="100%" colspan="3">Stats</td></tr>

2. Then it has headings for "Date" and "Downloads" at one column each
<tr><td class="alt2" align="center">Date</td><td class="alt2" align="center">Downloads</td> So there is a mismatch there

However next it sends out the template downloads_utils_statsbit, which has 6 columns!
<tr>
<td class="alt2">$name</td>
<td class="alt2">$date</td>
<td class="alt2">$author</td>
<td class="alt2">$downloads</td>
<td class="alt2">$grade</td>
<td class="alt2">$status</td>
</tr>

So

1 needs a span of 6
2 needs to have the missing headings put in or have the spans adjusted.

I was able to sort this all out if you want me to send you the templates let me know, but my hack is probably not as good as what you could do. I think the gist of the problem is that this downloads_utils_statsbit template is used for tables of different column counts; ($_GET['act'] == 'my') where the column count is six, ($_GET['act'] == 'stats') where it appears it should have two columns, and ($_GET['act'] == 'my') where the column count look like it will be three. That means that either separate templates, blank columns or a dynamic downloads_utils_statsbit template are needed.

Just a couple more things I noticed:

C.The stats thing has a little bug where it will report top downloaders as people who have never downloaded anything, so the query should probably be adjusted to not report people who haven't downloaded anything.

D. Similarly it will report top downloaders as people who don't have any downloads.

E. It will report some blank lines in Most Popular. Maybe for the same reason.


Glad you fixed it, but that 1 space is not a problem. If it were, that would mean your webserver doesnt support integrating php into regular html pages, which is probably not the case. If it is, it means that something on your server is VERY strange.

Your server is messed up... wow.

No not really. In PHP, anything that is included after the final ?> is output to the browser. Once you've begun sending output, in this case, a space, or in the other example of a diagnostic "echo" output to the browser, it can be a big problem if you follow up with trying to send http headers or cookies. Some browsers can get confused and not know how to process them.

Anyway examples like this are all over the web:
http://www.xoops.org/modules/newbb/viewtopic.php?topic_id=12854&forum=4&post_id=51514

Therefore, there are numerous bits of instructions in PHP coding and installation instructions exhorting people to be sure not to include extraneous lines or spaces following the closing tag.

Many thanks for this excellent hack,

Matt

memobug
03-28-2005, 06:01 AM
The stats page is just showing one member (same one for every day) and the same date (03-25-05) day after day and no other figures. I checked the cron job setup and its the same as in the screenshot so I currently have no idea why its not working.

I have exactly this same problem but I did not want to mention it for fear that Ron1n might think I was trying to rip the hack, which I think is a great hack.

But I can confirm the problem.

Also, I became aware of this hack from another site which has the same thing displayed. I don't have any users downloading anything or any files to download, but I see the same user 3 times as downloading yesterday.

Regards,

Matt

Ron1n
03-28-2005, 01:48 PM
I miscoppied the statsbit into the installer script.

downloads_util_stats_bit:

<tr><td class="alt1">{$stat['date']}</td><td class="alt1">{$stat['downloads']}</td></tr>
The stats thing has a little bug where it will report top [uploaders] as people who have never [uploaded] anything, so the query should probably be adjusted to not report people who haven't [uploaded] anything.

Similarly it will report [the most popular files as files that] don't have any downloads.

This is not a bug, and I do not think it needs to be fixed. When I was making this I also considered making no numbers (0's) show up if the board had fewer than 4 members, but doing things like that is just a complete waste of time. The stats work perfectly if the following are true: the board has more than 4 users, more than 4 files, more than 4 users with uploads, more than 4 files with downloads. Since no boards except for test boards are in this situation, its pointless.

About the 'headers already sent' errors, 99% of users on the web aren't effected by it. You should use FireFox (the best browser) www.getfirefox.com.

The following is an example of one of the smaller pages on a website I made, and as you can see, I print as follows: HTML - php generated content - HTML and it works fine for every user who has viewed it so far. If it hadn't I would have been contacted as I know everyone who has gone to this website.
<?
switch($_GET['do']) {
case 'hw':
$content = '<strong>Harbor Walk Association Resources</strong>
<br>
<br>
<a href="files/HWA of Incorporation.pdf">HWA Articles of Incorporation (pdf doc)</a>
<br>
<a href="files/HWA By Laws.pdf">HWA By Laws (pdf doc)</a>
<br>
<a href="files/HWA Joint Venture Declaration.pdf">HWA Joint Venture Declaration (pdf doc)</a>
<br>';
break;
default:
$content = '<strong>Community Association Resources</strong>
<br>
<br>
<a href="files/OCA By Laws.doc">OCA By Laws(word doc)</a>
<br>
<a href="files/OCA Covenants.doc">OCA Covenants (word doc)</a>
<br>';
break;
}
?>

<HTML><!-- InstanceBegin template="/Templates/single.dwt" codeOutsideHTMLIsLocked="false" -->
<HEAD>
<!-- InstanceBeginEditable name="Title" --><TITLE>Resources</TITLE><!-- InstanceEndEditable -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<style type="text/css">
<!--
td {
text-align: left;
vertical-align: top;
font-family:Tahoma;
font-size:10px;
color:#7E7E7E;
}
form
{
margin:0px;
}
a {
text-decoration: underline;
color:#7E7E7E;
}
a.1 {
text-decoration: none;
color:#7E7E7E;
}
a.2 {
text-decoration: none;
color:#4F6B75;
}

a.m1 {
text-decoration: none;
color:#ffffff;
}
.t11 {
font-family: Tahoma;
font-size: 11px;
font-style: normal;
}

-->
</style>

<script language="JavaScript" type="text/JavaScript">
<!--

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<A.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].SRC=a[i];}}
}
//-->
</script>





</HEAD>
<BODY BGCOLOR=#F0F0F0 LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN="0" BOTTOMMARGIN="0" MARGINWIDTH=0 MARGINHEIGHT=0>
<CENTER>
<TABLE WIDTH=766 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD><IMG SRC="images/structure/1.jpg" WIDTH=766 HEIGHT=18 ALT=""></TD>
</TR>
<TR>
<TD>
<TABLE WIDTH=766 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD> <IMG SRC="images/structure/6.jpg" WIDTH=18 HEIGHT=249 ALT=""></TD>
<TD VALIGN="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" WIDTH="249" height="249">
<param name="movie" value="flash/menu.swf">
<param name="quality" value="high">
<embed SRC="flash/menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" WIDTH="249" height="249"></embed>
</object></TD>
<TD> <IMG SRC="images/structure/7.jpg" WIDTH=17 HEIGHT=249 ALT=""></TD>
<TD>
<TABLE WIDTH=463 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" WIDTH="463" height="116">
<param name="movie" value="flash/big.swf">
<param name="quality" value="high">
<embed SRC="flash/big.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" WIDTH="463" height="116"></embed>
</object></TD>
</TR>
<TR>
<TD> <IMG SRC="images/structure/10.jpg" WIDTH=463 HEIGHT=17 ALT=""></TD>
</TR>
<TR>
<TD BACKGROUND="images/structure/2t1.jpg" WIDTH=463 HEIGHT=35 ALT="">
<TABLE WIDTH="463" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD WIDTH="240"><DIV STYLE="padding-top:15px;padding-left:16px "><IMG SRC="images/structure/2text1.jpg"></DIV></TD>
<TD WIDTH="223"></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD>
<TABLE WIDTH=463 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD BACKGROUND="images/structure/bak2.jpg" WIDTH=4 HEIGHT=77 ALT=""></TD>
<TD bgcolor="#F5F5F5" width=453 height=77 alt=""><DIV STYLE="padding-left:0px;padding-top:2px; padding-right:2px; padding-bottom:2px ">
<iframe frameBORDER="0" SRC="inews.php" WIDTH="453px" height="72px"></iframe></DIV></TD>
<TD BACKGROUND="images/structure/bak4.jpg" WIDTH=4 HEIGHT=77 ALT=""></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD> <IMG SRC="images/structure/2t2.jpg" WIDTH=463 HEIGHT=4 ALT=""></TD>
</TR>
</TABLE>
</TD>
<TD> <IMG SRC="images/structure/8.jpg" WIDTH=19 HEIGHT=249 ALT=""></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD> <IMG SRC="images/structure/2.jpg" WIDTH=766 HEIGHT=17 ALT=""></TD>
</TR>


<TR>
<TD BACKGROUND="images/structure/1t1.jpg" WIDTH=766 HEIGHT=35 ALT="">
<TABLE WIDTH="766" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<td WIDTH="481"><DIV STYLE="padding-top:16px;padding-left:16px "><IMG SRC="images/structure/1text4.jpg"></DIV></TD>
<td WIDTH="285"><DIV STYLE="padding-top:16px;padding-left:33px "><IMG SRC="images/structure/1text3.jpg"></DIV></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD BACKGROUND="images/structure/1bak1.jpg" WIDTH=766 HEIGHT=210 ALT="">
<TABLE WIDTH="766" height="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<td WIDTH="18">&nbsp;</TD>
<td WIDTH="249"><DIV STYLE="padding-top:15px;padding-left:17px ; padding-right:12px">
<!-- InstanceBeginEditable name="Navigation_SS" -->
<img src="images/structure/spacer.gif" height="10px"><br>
<strong><img src="images/structure/arr2.jpg" align="absmiddle">&nbsp;
<a href="resources.php" class="2">OCA</a></strong><br>
<img src="images/structure/spacer.gif" height="10px"><br>
<strong><img src="images/structure/arr2.jpg" align="absmiddle">&nbsp;
<a href="resources.php?do=hw" class="2">Harbor Walk</a></strong><br>
<!-- InstanceEndEditable -->
<br><br>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="229" height="185">
<param name="movie" value="flash/picture.swf">
<param name="quality" value="high">
<embed src="flash/picture.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="229" height="185"></embed></object>
<br><br>
</DIV></TD>
<td WIDTH="17">&nbsp;</TD>
<td WIDTH="482" CELLPADDING="2"><DIV STYLE="padding-top:15px;padding-left:15px; padding-right:30px ">
<!-- InstanceBeginEditable name="Content_SS" -->
<? echo $content ?>
<!-- InstanceEndEditable -->
</DIV></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD WIDTH=766 HEIGHT=4 ALT=""><IMG SRC="images/structure/1t3.jpg"></TD>
</TR>
<TR>
<TD> <IMG SRC="images/structure/1t2.jpg" WIDTH=766 HEIGHT=17 ALT=""></TD>
</TR>


<TR>
<TD BACKGROUND="images/structure/5.jpg" WIDTH=766 HEIGHT=34 ALT=""><DIV STYLE="padding-top:9px; padding-left:300px; color: #FFFFFF;"><strong><A HREF="index.html" CLASS="m1">home</A>&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;<A HREF="about.php" CLASS="m1">about
us </A> &nbsp; &nbsp;:&nbsp;&nbsp;&nbsp;<A HREF="associations.php" CLASS="m1">associations</A>&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;<A HREF="neighbors.php" CLASS="m1">neighbors</A>
&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp; <A HREF="resources.php" CLASS="m1">resources</A>&nbsp;&nbsp;&nbsp;:
&nbsp;&nbsp;<A HREF="information.php" CLASS="m1">information</A></strong></DIV></TD>
</TR>
<TR>
<TD BACKGROUND="images/structure/bak1.jpg" WIDTH=766 HEIGHT=51 ALT=""><DIV STYLE="padding-top:10px; padding-left:300px " ><A HREF="#" CLASS="2">-.com</A>
&copy; 2004 &bull; <A HREF="mailto:-" CLASS="2">Contact</A> &bull;
<A HREF="sitemap.html" CLASS="2">Site Map</A></DIV></TD>
</TR>
</TABLE>
</CENTER>
</BODY>
<!-- InstanceEnd --></HTML>

Rids
03-28-2005, 03:24 PM
thats odd, my board has over 1000 users, there are well over a hundred files in the download section, there have been over 7000 downloads and at least 20 people have uploaded files. I'm wondering if its because the upload count got zeroed when I reinstalled and imported the tables?

Ron1n
03-28-2005, 05:45 PM
thats odd, my board has over 1000 users, there are well over a hundred files in the download section, there have been over 7000 downloads and at least 20 people have uploaded files. I'm wondering if its because the upload count got zeroed when I reinstalled and imported the tables?

just change the downloads_util_stats_bit template

Rids
03-28-2005, 10:46 PM
alrighty, that sorted the layout nicely but the figure for the daily downloads is always zero and it should be at least a couple of hundred per day.

Blam Forumz
03-29-2005, 08:05 AM
Could it be possible to upload an image for each download

and one thing ineed desperately, i have alot of subcategories, and it says "0 Files" for each of my main categories, but I have subcats, and i want all the downloads within those to appear

intrigue
03-29-2005, 12:10 PM
thanks works a treat
.matt

ShawnV
03-29-2005, 02:23 PM
I’m sure this has been asked before, and I didn’t have time to dig though 27 pages today while at work 

How do you have it recalculate the download file if you delete old ones, we have no downloads at the moment yet it says:

We have a total of 3 files in 10 categories.

Thanks in advance for any help.

Ron1n
03-29-2005, 03:45 PM
alrighty, that sorted the layout nicely but the figure for the daily downloads is always zero and it should be at least a couple of hundred per day.

the downloads per day takes a full runthrough to actually get correct data. if it has been more than 1 day and you still have a zero then type the location of your dl script and I will check it out.

Could it be possible to upload an image for each download

and one thing ineed desperately, i have alot of subcategories, and it says "0 Files" for each of my main categories, but I have subcats, and i want all the downloads within those to appear

i thought it did... ill check it out (it does on my own personal one, but im not sure about the released version) www.elitecoders.org

about the images: read the main post

I?m sure this has been asked before, and I didn?t have time to dig though 27 pages today while at work 

How do you have it recalculate the download file if you delete old ones, we have no downloads at the moment yet it says:

We have a total of 3 files in 10 categories.


Thanks in advance for any help.

Does it recount the # of files in the category view (i.e. tells you that the category has the correct number of files). I might have forgotten to reset total files, but I think they are recounted after files are uploaded.

Thanks for bringing this to my attention.

lasto
03-29-2005, 03:52 PM
the stats bar on the downloaders nav menu is this for an updated version as at moment all my stats are empty even though i have some downloads

Date Downloads
Today
Today

thats all i see - nothing else - also the boxes aint aligned up proper

ShawnV
03-29-2005, 05:00 PM
Does it recount the # of files in the category view (i.e. tells you that the category has the correct number of files). I might have forgotten to reset total files, but I think they are recounted after files are uploaded.

Thanks for bringing this to my attention.

Yeah it reads correct in cat view all 0's , just the (We have a total of 3 files in 10 categories.) at the bottom is wrong.

A nice little CP controll to reset / re caulculate all downloads and files would be handy :smoke:

Itachi0009
03-29-2005, 05:44 PM
well maybe not something you want to mod now, but maybe for a later version (unless i am wrong and this feature is built in) but require posting, because i notice with my high google ranking i am getting tons of new members joining and dlin... but none postin :'(

Blam Forumz
03-29-2005, 06:03 PM
another thing, i would love to see subcats of subcats, this would be useful, as well as an easier subcat/cat navigation in the admincp? :/

Ron1n
03-29-2005, 07:08 PM
the stats bar on the downloaders nav menu is this for an updated version as at moment all my stats are empty even though i have some downloads

Date Downloads
Today
Today


thats all i see - nothing else - also the boxes aint aligned up proper

look at the top post on each page and you will see a fix

another thing, i would love to see subcats of subcats, this would be useful, as well as an easier subcat/cat navigation in the admincp? :/

read the top post

well maybe not something you want to mod now, but maybe for a later version (unless i am wrong and this feature is built in) but require posting, because i notice with my high google ranking i am getting tons of new members joining and dlin... but none postin :'(

me too, I get about a thousand+ users per week that register to download but dont post. i have a suggestion: add another user group and for users with more than three posts and allow them to download but dont allow the original user group access to the download section.

Yeah it reads correct in cat view all 0's , just the (We have a total of 3 files in 10 categories.) at the bottom is wrong.

A nice little CP controll to reset / re caulculate all downloads and files would be handy :smoke:

Ill just built it in to reduce the count on delete -- im glad you found this bug.

lasto
03-29-2005, 07:48 PM
cheers m8 all tidy now - except is no stats so just ran the cron job and it still says

Date Downloads
Today 0
Today 0
Yesterday 0

yet ive had quite a few downloads today and yesterday.Besides this though hacks works fine

ricker
03-29-2005, 09:18 PM
Quick question, is there any way to set up permissions per category?

i.e.
Registered users have access to registered user downloads
Administrators have access to admin downloads

TIA
Sarah

Ron1n
03-30-2005, 01:38 AM
cheers m8 all tidy now - except is no stats so just ran the cron job and it still [doesnt work]

Ill see if I can fix it and get back to you tomarrow

Registered users have access to registered user downloads
Administrators have access to admin downloads

nope, sorry

xtreme-mobile
03-30-2005, 03:55 PM
does any one know why i would be getting this error?

Blam Forumz
03-30-2005, 04:39 PM
Ron1in, you got an ETA on next update?

Ron1n
03-30-2005, 07:55 PM
does any one know why i would be getting this error?

No

Ron1in, you got an ETA on next update?

2-3 weeks? I'll actually start coding again in a week or two and i'll finish it within a week.

funfone
03-31-2005, 07:32 PM
Can anyone point me in the direction of where the navigation menues are created to actually use this - i.e. upload files etc I have a custom Navbar so nothing appears.

The Realist
03-31-2005, 07:38 PM
Go into which ever usergroups you want access to the downloads and set permissions, then go to blah blah/forums/downloads.php.

You will see the options show up.


Can anyone point me in the direction of where the navigation menues are created to actually use this - i.e. upload files etc I have a custom Navbar so nothing appears.

funfone
03-31-2005, 07:43 PM
Your a star thankyou :)

dt~
03-31-2005, 07:58 PM
It would be good if users that can manage files were able to download non-approved files.
Now you have to approve it, then download, then disprove until you checked it :(.

Everything else works great.

Blam Forumz
03-31-2005, 08:03 PM
How about reminders for when downlaods are added and a quick approve system with check boxes for the admincp?

dt~
03-31-2005, 08:08 PM
Something else: re-ordering root categories does not work for me.

dt~
03-31-2005, 09:16 PM
Yet another problem: if you use bbcode in the file description, and then edit the description again, it is in HTML. If you save it again, the HTML isnt interpreted.

Ron1n
04-01-2005, 12:30 AM
It would be good if users that can manage files were able to download non-approved files.
Now you have to approve it, then download, then disprove until you checked it :(.

I never thought an admin would download it before approving... the system wasnt really built with that in mind. It was more of a "check to make sure its appropriate and in the right category" thing, but I guess I could enable that. It would be very easy.

Yet another problem: if you use bbcode in the file description, and then edit the description again, it is in HTML. If you save it again, the HTML isnt interpreted.

Thanks Captain Obvious! Read the post you see at the top of every page under "future." Thankyoucomeagain.

Something else: re-ordering root categories does not work for me.

Works for me, make sure you set it up properly (select `order` from the settings) and it will work swimmingly.

How about reminders for when downlaods are added and a quick approve system with check boxes for the admincp?

I'm not interested... i think its fine the way it is. I really dont want any more in the admincp than is already there.

Viks
04-01-2005, 12:52 AM
Hi Ron1n,

I upgraded to thew new version v2.0c and then today I also upgraded to version 2.0f - but im having same issue.

on trying to upload the file - it does not show me the categories... so i cannot choose in which category should the new file go .. and therefore the upload fails.

I made a test category and even that new TEST category did not show up.

can u kindly help??

thanks

Vik

Ron1n
04-01-2005, 02:00 AM
on trying to upload the file - it does not show me the categories... so i cannot choose in which category should the new file go .. and therefore the upload fails.

The category options are actually saved to a database, but they are used by the templates. This could be one of two things:

1) you arent using the right templates
2) your uploaded files are not the right ones

laeth
04-01-2005, 03:02 AM
Heya,

Cool hack. When I tried to upgrade, I get the following error when trying to upgrade the mysql:

Database error in vBulletin 3.0.3:

Invalid SQL: ALTER TABLE `vb3_file_downloads` ADD `time` int(10) unsigned NOT NULL default '0' AFTER `file`
mysql error: Table 'gothtopic.vb3_file_downloads' doesn't exist

mysql error number: 1146

Date: Thursday 31st of March 2005 08:58:29 PM
Script: http://gothtopic.com/forum/admincp/downloadinstall.php?do=upgrade&act=mysql
Referer: http://gothtopic.com/forum/admincp/downloadinstall.php?do=upgrade


Any ideas?

Blam Forumz
04-01-2005, 06:09 AM
I'm not interested... i think its fine the way it is. I really dont want any more in the admincp than is already there.

Ok fair enough, but how about an auto approve system? or a reminder that gets sent via PM or Email to the admins /mods?

funfone
04-01-2005, 04:49 PM
Error post can be deleted

dt~
04-01-2005, 06:14 PM
I never thought an admin would download it before approving... the system wasnt really built with that in mind. It was more of a "check to make sure its appropriate and in the right category" thing, but I guess I could enable that. It would be very easy.

would be cool


Thanks Captain Obvious! Read the post you see at the top of every page under "future." Thankyoucomeagain.

sry didnt read that, looking forward to a fix for that

Works for me, make sure you set it up properly (select `order` from the settings) and it will work swimmingly.

thank you

funfone
04-01-2005, 07:25 PM
I think this was mentioned before howevr I didnt see an answer.

i have 4 main Categories and under each of these I have subcategories - now each subcategory shows the amount of files correctly - however on the Main Page where it shows the top level categories is shows "0 Files" which is technically correct as there are no files under the main categories only sub cats - however it would be great to either

1) Remove the File count from the main cat page

or even better

2) Add up the files under each sub cat and display this on the Main Cat page

Any ideas please Ronin

banuchi2
04-01-2005, 09:18 PM
My download section is at http://www.physicianassistant.net/forums/downloads.php? After I download, everything seems to be ok. However, If I click on the catgory to view the files within it, I get a blank page. Any ideas on this? Thanks.

banuchi2
04-01-2005, 09:43 PM
My download section is at http://www.physicianassistant.net/forums/downloads.php? After I download, everything seems to be ok. However, If I click on the catgory to view the files within it, I get a blank page. Any ideas on this? Thanks.
Figured it out....read another post. There is an extra space in dl_category after the final ?> that is causing this problem.

SupraT
04-02-2005, 12:09 AM
I think this was mentioned before howevr I didnt see an answer.

i have 4 main Categories and under each of these I have subcategories - now each subcategory shows the amount of files correctly - however on the Main Page where it shows the top level categories is shows "0 Files" which is technically correct as there are no files under the main categories only sub cats - however it would be great to either

1) Remove the File count from the main cat page

or even better

2) Add up the files under each sub cat and display this on the Main Cat page

Any ideas please Ronin

Yes same experience here, I actually changed the structure becuase of that. Be great if it totalled everything in that cat.

Viks
04-02-2005, 01:40 AM
The category options are actually saved to a database, but they are used by the templates. This could be one of two things:

1) you arent using the right templates
2) your uploaded files are not the right ones

Problem Fixed.

Issue was with the templates.

thanks Ronin

:Super:

JohnBee
04-02-2005, 02:55 AM
I installed this but I don't see any of the nav controls.
I have a heavilly modified forum so im not suprized.

Could someone help me out by posting the action links [urls] for this hack?
ex: download/ upload etc etc.

thanks in advance

SupraT
04-02-2005, 03:00 AM
I installed this but I don't see any of the nav controls.
I have a heavilly modified forum so im not suprized.

Could someone help me out by posting the action links [urls] for this hack?
ex: download/ upload etc etc.

thanks in advance

you are accessing the hack at http:/www.yoursite.com/yourforumdirectory/downloads.php ?

If you are and don't see any Nav check your group persmissions from the admincp. You need to grant access before you can do anything there.

funfone
04-02-2005, 08:22 AM
Hi Supra - is your site Clanspy - i see you have implemented a change on the front end so that it shows cats/files - what did you change to do that ?

Actually please ignore I see your running a different hack...

Back to the original info if anyone can help please.

AlexUK
04-02-2005, 08:45 AM
Anyone know what this error means:

PHP Warning: unlink(/home/lounge/public_html/forums/downloads/psps Alex PSP Video 9 v1.24 Full Install [36284].exe): No such file or directory in /home/lounge/public_html/forums/includes/dl_manage.php on line 142

funfone
04-02-2005, 08:49 AM
Look like your download paths are wrong in the settings

first one should be /home/lounge/public_html/forums/downloads/
second one ./downloads/

AlexUK
04-02-2005, 09:05 AM
Look like your download paths are wrong in the settings

first one should be /home/lounge/public_html/forums/downloads/
second one ./downloads/

Yes this is what I have. But I still get that error

Satana666
04-02-2005, 09:07 AM
Ronin your mod seems to have some problem in istallation, I thank for your work it's fantastic.
For my forums I corrected some errors in downloadinstall.php
when create table you put in hack two times TABLE_PREFIX and it's wrong 4 my database, so I corrected and cut one.
Ah I'm Italian and I'm doing complete translation, can I put under your copyright my copyright? (Full Translated in Italian by Satana666)

Thanks a lot 4 jour work I wait your answer

SupraT
04-02-2005, 01:53 PM
Hi Supra - is your site Clanspy - i see you have implemented a change on the front end so that it shows cats/files - what did you change to do that ?

Actually please ignore I see your running a different hack...

Back to the original info if anyone can help please.

Yes, but I am switching to this hack after updating all my downloads from the previously installed one. I prefer this release much more. :)

Ron1n
04-02-2005, 02:59 PM
Look like your download paths are wrong in the settings

first one should be /home/lounge/public_html/forums/downloads/
second one ./downloads/

in this case it should just be:

./downloads/
./downloads/

Ah I'm Italian and I'm doing complete translation, can I put under your copyright my copyright? (Full Translated in Italian by Satana666)

No, I dont think so.

Yes, but I am switching to this hack after updating all my downloads from the previously installed one. I prefer this release much more. :)

Glad you like it.

Marky
04-02-2005, 04:36 PM
I have a next release idea:
How about an option for all downloads to be 'auto-approved' so all downloads that are added are approved immediatly ?

- Marky

funfone
04-02-2005, 05:07 PM
I think this was mentioned before howevr I didnt see an answer.

i have 4 main Categories and under each of these I have subcategories - now each subcategory shows the amount of files correctly - however on the Main Page where it shows the top level categories is shows "0 Files" which is technically correct as there are no files under the main categories only sub cats - however it would be great to either

1) Remove the File count from the main cat page

or even better

2) Add up the files under each sub cat and display this on the Main Cat page

Any ideas please Ronin

Hey Ronin any ideas on this please....

Ron1n
04-02-2005, 08:43 PM
Hey Ronin any ideas on this please....

What do you mean "any ideas"

I have a next release idea:
How about an option for all downloads to be 'auto-approved' so all downloads that are added are approved immediatly ?

- Marky

I might make it a usergroup setting. I mean, do you really want guests uploading any files? You could get in a lot of trouble. I will make it an option though.

funfone
04-02-2005, 08:53 PM
On this i.e. do you know a way of doing either of these solutions

I think this was mentioned before howevr I didnt see an answer.

i have 4 main Categories and under each of these I have subcategories - now each subcategory shows the amount of files correctly - however on the Main Page where it shows the top level categories is shows "0 Files" which is technically correct as there are no files under the main categories only sub cats - however it would be great to either

1) Remove the File count from the main cat page

or even better

2) Add up the files under each sub cat and display this on the Main Cat page

Any ideas please Ronin

JohnBee
04-02-2005, 10:08 PM
It looks like everything is working nicely Ronan (thanks for your great work)

I would like to add some additional features or ideas to an already great mod.

1) is there a way to simplify the upload process?

I would like to make a quick and dirty upload button in a POST screen
for users to popup an upload screen that would allow them to put up
small files of video or whatever along with the threads and produce a
link to the file.

But it would have to be both simple and fast, no author no file info added
etc. elsewise it would be to lenthy to do.

Could this mod accomplish that as well?

TranceMaster
04-02-2005, 11:11 PM
ok 2 things here
how do i go about, once i have uploded something, haveing the type of file it is, automatically show up, maybe along with the description or something.

and my next thing
is it possible at all, to have a new category that only a certain usergroup can have access to.

JohnBee
04-02-2005, 11:12 PM
It looks like everything is working nicely Ronan (thanks for your great work)


Okay I take that last statement back :P

There seems to be a few problems but i'm not sure its the code itself at this stage
most likely my installation or options that are not 100%.

When I upload a file, it says the file was uploaded but it shows as 0K in the
file manager section. and when I click download it gives me a page not
found error.

Itachi0009
04-03-2005, 01:21 AM
This is a simple request, because for whatever reason all of the templates are by defaulted titles by that one main downloads title I want to know where i can set the title of the category.

I have managed to set the titles accordingly to work with each file but can't find the template to edit and how to put the cat name in the title

for example:

http://www.unlimitedgamer.net/forum/downloads.php?do=cat&id=4

there is no title on that category nor any of the others.

I just want to know which template and what string to use for the category name

for individual file pages i used : {$file['name']} in the header. so i figure its something like {$cat['name']} but if it is i don't know which template to put that title code in :/


any ideaS?

Marky
04-03-2005, 10:36 AM
I will make it an option though.

alright nice one dude :)
Keep up the cool work, I look forward to see more of your work :D

AlexUK
04-03-2005, 07:07 PM
in this case it should just be:

./downloads/
./downloads/



Ron1n I corrected that but still getting this error:

The requested URL /forums/downloads/ Alex PSP Video 9 v1.24 Full Install [58568].exe was not found on this server.

Can I just add that I installed this and all was working ok until a few days go when it started rejecting any files bigger than 700k. :ermm:

logofreax
04-05-2005, 04:58 AM
Hi, I tried to install this hack yesterday.

Every changed file ist upped, the downloadinstall.php File was startet abd installes each Files without any Problems.

In my Admincp I try to change my Settings or Categories, but no chance:

Datenbankfehler in vBulletin 3.0.6:

Ungueltige SQL-Abfrage: SELECT * FROM vb3_file_cats WHERE parent = '0' ORDER BY `name`
mysql error: Table 'db73715.vb3_file_cats' doesn't exist

mysql error number: 1146

Datum: 05.04.2005 07:52:51
Skript: http://www.handy-faq.de/forum/admincp/downloadadmin.php?do=settings
Referer: http://www.handy-faq.de/forum/admincp/index.php?do=nav
Benutzername: logofreax
IP-Adresse: 62.158.43.41

Where is my little mistake?

cu
logofreax

Izze_de
04-05-2005, 10:11 AM
hi,

it seems to run fine.

but when deleting a category or a file the count of categorys and files in the downloads.php overview (at the bottom line) still shows the old counts.
it doesnt refresh the counts.

i do have some other download directorys on the server with more than 1000 files.
is there a way to insert them to the downloads without uploading or linking all these hundreds of files ?
a kind of a import tool where i can choose browse this directory, choose files specific files and add them to a special category?
i think u are getting crazy to first download all the files and upload them again or link them by hand.

thx.

TranceMaster
04-05-2005, 11:20 PM
ok 2 things here
how do i go about, once i have uploded something, haveing the type of file it is, automatically show up, maybe along with the description or something.

and my next thing
is it possible at all, to have a new category that only a certain usergroup can have access to.

anyone
please guys :ermm:
have asked ronin, but because im not as "smart" as him
he refuses to help.

MortysTW
04-06-2005, 06:07 AM
Hi, I tried to install this hack yesterday.

Every changed file ist upped, the downloadinstall.php File was startet abd installes each Files without any Problems.

In my Admincp I try to change my Settings or Categories, but no chance:

Datenbankfehler in vBulletin 3.0.6:

Ungueltige SQL-Abfrage: SELECT * FROM vb3_file_cats WHERE parent = '0' ORDER BY `name`
mysql error: Table 'db73715.vb3_file_cats' doesn't exist

mysql error number: 1146

Datum: 05.04.2005 07:52:51
Skript: http://www.handy-faq.de/forum/admincp/downloadadmin.php?do=settings
Referer: http://www.handy-faq.de/forum/admincp/index.php?do=nav
Benutzername: logofreax
IP-Adresse: 62.158.43.41

Where is my little mistake?

cu
logofreax


I'm getting the same error. Its saying the vb3_file_cats table does not exist in the database. Why the heck is this error occuring? The DB is edited by the install file so its not my error.

Anyone?

ForumRelated
04-06-2005, 02:43 PM
I noticed on isntall that the tables were named with the prefix twice.

vb3_vb3_file_cats rather than vb3_file_cats

ShawnV
04-06-2005, 04:25 PM
Any update on when the Images attachments comming?

MortysTW
04-06-2005, 05:02 PM
I noticed on isntall that the tables were named with the prefix twice.

vb3_vb3_file_cats rather than vb3_file_cats


Woo Hoo! That was it. Thanks. Think there were about 6 of them.

All the _file related tables said vb3_vb3_file_XXXX

Thanks again.

Itachi0009
04-06-2005, 09:24 PM
everytime i try and update to 2.7 i get some lame sql error.

I changed that one sections and what not, and created that phrase.

but i get this error regaurdless.

Database error in vBulletin 3.0.3:

Invalid SQL: SELECT * FROM vb3_file_main
mysql error: Table 'kakashi_forum.vb3_file_main' doesn't exist

mysql error number: 1146

I have not run any install updates do i have to do that?

Pickalo
04-06-2005, 10:02 PM
edit: fixed the problem forgot to chmod a file... thanks.

ShawnV
04-08-2005, 02:52 PM
Any update on when the Images attachments comming?

Also the only way to get uploads over 10 megs, is to use the link to file on the server method?

SupraT
04-09-2005, 05:17 AM
Also the only way to get uploads over 10 megs, is to use the link to file on the server method?

Yes, I believe PHP limits to 2mb files.

School-Help
04-16-2005, 11:53 AM
Database error in vBulletin 3.0.6:

Invalid SQL: UPDATE file_main SET `contrib[1]` = 'Student-Discuss', `contribid[1]` = '1', `contribval[1]` = '4', `contrib[2]` = 'Slice'N'Dice', `contribid[2]` = '2', `contribval[2]` = '0', `contrib[3]` = 'Chris', `contribid[3]` = '3', `contribval[3]` = '0', `contrib[4]` = 'Starfish', `contribid[4]` = '4', `contribval[4]` = '0'
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'N'Dice', `contribid[2]` = '2', `contribval[2]` = '0', `contrib[

mysql error number: 1064

Date: Saturday 16th of April 2005 08:51:30 AM
Script: http://www.students-forum.com/downloads.php?do=add
Referer: http://www.students-forum.com/downloads.php?do=add
Username: Student-Discuss
IP Address: 80.43.166.253


Can someone help i get this error?

xtreme-mobile
04-16-2005, 08:22 PM
hey guys ahve tried to instal this and am getting aerror when i try to go to the downloads page

see here:.... http://www.extreme-mobile.com/forums/downloads.php

any ideas whats wrong?

many thanks

dean

j_86
04-16-2005, 08:42 PM
Database error in 3.0.7 (blank install, vB and vBDownloads)

Database error in vBulletin 3.0.7:

Invalid SQL: UPDATE file_main SET `contrib[1]` = 'Sardukar', `contribid[1]` = '2', `contribval[1]` = '1', `contrib[2]` = 'Administrator', `contribid[2]` = '1', `contribval[2]` = '0', `contrib[3]` = 'Cap'n Steve', `contribid[3]` = '3', `contribval[3]` = '0', `contrib[4]` = 'Mike`', `contribid[4]` = '4', `contribval[4]` = '0'
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'n Steve', `contribid[3]` = '3', `contribval[3]` = '0', `contrib

mysql error number: 1064

Blam Forumz
04-17-2005, 05:31 PM
hey ron1n, got an eta on next version yet? :D

rjordan
04-17-2005, 07:42 PM
Database error in 3.0.7 (blank install, vB and vBDownloads)

Database error in vBulletin 3.0.7:

Invalid SQL: UPDATE file_main SET `contrib[1]` = 'Sardukar', `contribid[1]` = '2', `contribval[1]` = '1', `contrib[2]` = 'Administrator', `contribid[2]` = '1', `contribval[2]` = '0', `contrib[3]` = 'Cap'n Steve', `contribid[3]` = '3', `contribval[3]` = '0', `contrib[4]` = 'Mike`', `contribid[4]` = '4', `contribval[4]` = '0'
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'n Steve', `contribid[3]` = '3', `contribval[3]` = '0', `contrib

mysql error number: 1064
Your problem is with the name Cap'n Steve. The apostrophe kills it. Maybe Ron1n can make adjustments for that unless someone else comes up with a fix.

Jacko
04-18-2005, 06:55 AM
works great on 3.0.7 after an hours worth of fiddling around.. :p

Jacko
04-18-2005, 11:29 PM
dont suppose i can alter the allowed extensions???

ok never mind, had a blonde moment...

logofreax
04-19-2005, 03:51 PM
Hi, i´ve got several Problem with this great Hack.

I would like to add some Files, but I cannot, because I can´t choose any Categorie for Uploading.

But I´ve got some Categrories, what you can see on the first Screenshot:

What´s my Problem?

cu
logofreax

Ron1n
04-20-2005, 09:36 PM
I see you are using the german version - I cant provide support for that because I dont know what they changed. I think its great that people are translating the hack, but they may have made a mistake. Try using the english version - I havent seen that problem before.

By the way everyone, I will be back in a week or two with version 3.0.

rjordan
04-20-2005, 09:47 PM
Database error in vBulletin 3.0.6:

Invalid SQL: UPDATE file_main SET `contrib[1]` = 'Student-Discuss', `contribid[1]` = '1', `contribval[1]` = '4', `contrib[2]` = 'Slice'N'Dice', `contribid[2]` = '2', `contribval[2]` = '0', `contrib[3]` = 'Chris', `contribid[3]` = '3', `contribval[3]` = '0', `contrib[4]` = 'Starfish', `contribid[4]` = '4', `contribval[4]` = '0'
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'N'Dice', `contribid[2]` = '2', `contribval[2]` = '0', `contrib[

mysql error number: 1064

Date: Saturday 16th of April 2005 08:51:30 AM
Script: http://www.students-forum.com/downloads.php?do=add
Referer: http://www.students-forum.com/downloads.php?do=add
Username: Student-Discuss
IP Address: 80.43.166.253


Can someone help i get this error?Just like the other guy, your problem looks like it is with the name Slice'N'Dice as the single quotes kill it.

Hey, Ron1n, is this going to be corrected so it will not happen with 3.0?

Paul M
04-20-2005, 10:21 PM
Just like the other guy, your problem looks like it is with the name Slice'N'Dice as the single quotes kill it.

Hey, Ron1n, is this going to be corrected so it will not happen with 3.0?Some "addslashes" are required by the look of it.

I've just installed v2.0 on our test system with a view to it going live, but I think I may wait now for v 3.0 - what extra features will it have ?

Kirk Y
04-22-2005, 01:14 AM
I'm getting this error when I try to upload something:

Database error in vBulletin 3.0.7:

Invalid SQL: INSERT INTO file_files (`name`, `desc`, `author`, `uploader`, `uploaderid`, `url`, `time`, `catid`, `size`, `pin`, `approved`, `link`)
VALUES('Acid's Brush Pack', 'This is just a .ZIP containing some assorted Brush Packs that I\'ve come across. It consists mainly of Grunge and Effects Brushes. Recommended for the Beginners and Skilled, alike!', 'acidburn0520', 'acidburn0520', '3', 'BP acidburn0520 Acids Brush Pack [35710].zip', '1114135710', '3', '0', '1', '1', '0')
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 's Brush Pack', 'This is just a .ZIP containing some assorted Br

mysql error number: 1064

Any ideas? Any help would be much appreciated.

-Thanks in advance
acidburn0520

Paul M
04-22-2005, 01:50 AM
Any ideas? Any help would be much appreciated.

-Thanks in advance
acidburn0520Yes, read the posts above - it's the same problem with the file name.

bspiller82
04-22-2005, 03:13 AM
When uploading it pulls the following error

Warning: move_uploaded_file(): open_basedir restriction in effect. File(/home/a247xtre/public_html/downloads/ Unknown StarWars 3 Video [40943].zip) is not within the allowed path(s): (/ide/home/a247xtre/:/usr/lib/php:/usr/local/lib/php:/tmp) in /includes/dl_edit.php on line 87

Also when you link the download it doesn't show the file size. It jsut shows 0KB

School-Help
04-22-2005, 04:05 PM
Thanks , I modified user of the username change required with a PM changed it in ADMIN Cp and now its working. Thanks

Ron1n
04-22-2005, 05:49 PM
thanks for bringing that to my attention again, i will also encorporate that in 3.0

(sorry its taking me so long to find time- but I have been working on some paid projects which have to take priority)

lairnoc
04-22-2005, 09:50 PM
Can anyone help me out here?

I get a white screen when i click on my first category

http://www.lairnoc.com/downloads.php?do=cat&id=1

please help mewith this.(could it be that i have not enough rights in the downloads dir? )

Blam Forumz
04-23-2005, 06:52 AM
Looks like a tempalte problem, make sure you have all the correct templates

lairnoc
04-23-2005, 08:45 AM
i re-installed all, but it still don't work If you get redirected to http://www.lairnoc.com/downloads.php?do=cat&id=1 the page stays empty

KaiSan
04-23-2005, 11:41 AM
Uhmm...i dont get a Nav bar O_o

wtf...Help Please, i cant wait to get this cool hack working :D

Kirk Y
04-23-2005, 03:21 PM
Uhmm...i dont get a Nav bar O_o

wtf...Help Please, i cant wait to get this cool hack working :D
Go into your ACP, Usergroups, and make sure that you've enabled the Downloads page for whichever Usergroups you'd like to be able to view it. I had the same thing happen to me, it'd be nice if a little TXT File was included with some brief information on running the hack.

Can anyone help me out here?

I get a white screen when i click on my first category

http://www.lairnoc.com/downloads.php?do=cat&id=1

please help mewith this.(could it be that i have not enough rights in the downloads dir? )


Same problem as above, just follow my above directions.

KaiSan
04-24-2005, 09:32 AM
Go into your ACP, Usergroups, and make sure that you've enabled the Downloads page for whichever Usergroups you'd like to be able to view it. I had the same thing happen to me, it'd be nice if a little TXT File was included with some brief information on running the hack.


I agree. Thats Fixed it, thanks alot! :D

mfacer
04-26-2005, 09:06 AM
just installed this hack - it's brilliant!
http://www.helpeducation.com/forum/downloads.php
works a treat!! Thanks.. looking forward to the next version to try out too!!

mfacer
04-26-2005, 09:21 AM
I'm trying to make a script so that I can count how many files have been placed in the categories... how do I go about doing this? What's the SQL?

I need to get the parent category, then drill down to the sub category and count the files in that... any ideas?

Slave
04-26-2005, 06:01 PM
Hi Ron1n :)

Just installed this to have a play and I've got some suggestions for your consideration ..

Create a CMPS module (Please!!)
When adding a link to a file allow the input of the file size
Have the system show the max upload, as per the servers config files
When editing a file that's a link, show the link in the "Link to File" box
Allow people to create their own "File Information" entry boxes within the admin area
Give an option to choose the amount of Latest and Popular files shown
When a file/link is deleted take it off the persons "Top Contributors" ranking
Allow files to be uploaded via FTP and then listed without having to use the link option
Have the User Info, Latest Files and Most Popular Files sections on the left on the front page to keep consistency

Some of these might of been suggested before but I'm brainstorming here! :p

The Stats page seems to be buggered for my install .. not sure if this is a bug or something on my forums. Anyone else got a problem?

kevinrstruck
04-27-2005, 02:20 PM
I got this hack working easily and quickly...nice job.

One suggestion, we like to link to the download on the owners site rather than upload gigs of files to our server. Some of the extensions of those downloads look like this:

.download.asp?fileid=95

Or something similar. Unless I put that entire phrase in the "Allowed Extensions" area in the admincp, it will not work. I suggest allowing any type of extension in the link area if that is possible.

Other than that, great job!

Installed at: http://thephotostation.net/forums/downloads.php?

ZGeek
04-27-2005, 10:53 PM
Im having a problem uploading files. I fill out the form and get a java alert saying "The document contains no data"

Can anyone help?

wirewolf
04-28-2005, 05:02 PM
Did a little rework and editing - Screen Shots (http://www.shipmodeling.net/sample/index.htm)

Slave
04-29-2005, 07:51 AM
Can you / Are you going to release those changes and the CMPS module wirewolf?

(Please please please :))

wirewolf
04-29-2005, 12:30 PM
Can you / Are you going to release those changes and the CMPS module wirewolf?

(Please please please :))I'd release the changes, but lets' wait to see what version 3 looks like. All of my changes may have to be corrected for version 3.
I've removed the file till I hear from Ron1n. Sorry
John

Slave
04-29-2005, 03:56 PM
I'd release the changes, but lets' wait to see what version 3 looks like. All of my changes may have to be corrected for version 3.
But here's the CMPS Module for this version. It's small and easy.
Thanks for the module .. it works just as it says on the tin! ..

:)

wirewolf
04-29-2005, 06:18 PM
Your welcome Slave. Got a link so we can see?
I've added a few more items:
Added Email notification and write to file in dl_file.php, with an Admin switch in the Download Settings. Check out the Screen Shots (http://www.shipmodeling.net/sample/index.htm#Added_Email) again.
John

Slave
04-29-2005, 08:06 PM
www.savageforums.com is where I'm adding all this stuff :)

Slave
04-29-2005, 08:14 PM
Oh .. by the way ..

Any chance you can add the category abbreviation to the module? Or tell us how to do it?

:)

turkforum
04-30-2005, 07:59 AM
First of all, thanks to ronin and vb community for this great hack..
I haven't install the hack yet because I want my users to upload and download files from my other server where my vb forum is not installed..I have some reasonable excuses to think like this..

So, is it possible to let my users to u/d files to another outside server with this great hack?

mfacer
05-03-2005, 11:25 AM
just finished customising my installation...

http://www.helpeducation.com/forum/downloads.php

main changes include:

- windows style folder browsing
- bread crumb navigation
- layouts all use the "top wrapper"
- user menu added under user options instead of the user info
- icons for uploads such as images, pdf, word etc

any comments would be much appreciated!!

c0d3x
05-03-2005, 11:38 AM
news on the version 3 ?

rjordan
05-03-2005, 12:21 PM
just finished customising my installation...

http://www.helpeducation.com/forum/downloads.php

main changes include:

- windows style folder browsing
- bread crumb navigation
- layouts all use the "top wrapper"
- user menu added under user options instead of the user info
- icons for uploads such as images, pdf, word etc

any comments would be much appreciated!!
I glanced at it and am impressed. Nice job of the category navigation!

Rob Locke
05-03-2005, 01:33 PM
just finished customising my installation...

http://www.helpeducation.com/forum/downloads.php

main changes include:

- windows style folder browsing
- bread crumb navigation
- layouts all use the "top wrapper"
- user menu added under user options instead of the user info
- icons for uploads such as images, pdf, word etc

any comments would be much appreciated!!Fantastic. How did you do it? I'd love to do something similar.

mfacer
05-03-2005, 02:02 PM
Fantastic. How did you do it? I'd love to do something similar.

quite easily actually....

in dl_category.php I added


if ($x == 0) {
//start a new TR
$startLine = true;
} else {
$startLine = false;
}

if ($x >= 7) {
$endLine = true;
$x = 0;
} else {
$endLine = false;
$x++;
}


which will put 8 columns across the page, these are then used to display the file icon..... then in the template "downloads_main_catbit" I Put


<if condition="$startLine">
<!-- draw a new TR -->
<tr>
</if>


<td>
<<< icon and info here >>>
</td>


<if condition="$endLine">
<!-- draw end TR -->
</tr>
</if>


and changing the downloads main to


<table cellpadding="5" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center" style="background:#ffffff">

$catbits

</table>


I just used the same code in the dl_files and templates....
The extension can be easily worked out then you just use an image based on the extension, eg: "swf.gif" or "doc.gif" :)

kevinrstruck
05-03-2005, 07:27 PM
NVRMND