PDA

View Full Version : Major Additions - DownloadsII


Pages : 1 2 3 4 5 [6] 7 8 9 10 11 12 13 14 15 16 17 18

wolfe
05-06-2007, 11:54 AM
m8 any chance you could tell me what code to put where to have to upload image with file i need urgently i will use until your update comes out m8 :P thx in advance

any is it possible to make a stats box for index.php page like the ones on the side of the downloads page.

MotMann
05-06-2007, 12:22 PM
I tested it and it works without errors. You should be replacing it wrong or something like that. Watch out for the brackets.

Anyway, when I tested it, it didn't work correctly like I thought it would.

A new try, tested and it works nice:

Find (in downloads.php)
while ($image = $db->fetch_array($result))
{
if (($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditallfiles']) OR
(($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditownfiles']) AND
(($image['uploaderid'] == $vbulletin->userinfo['userid']) AND ($file['uploaderid'] == $vbulletin->userinfo['userid']))))
$edit = '[<a href="./downloads.php?do=file&amp;id='.$file['id'].'&amp;act=delimg&amp;img='.$image['id'].'" onclick="return delete_it()">'.$vbphrase['delete'].'</a>]';
{
if (file_exists($dl->url.$image['thumb']))
{
$dimages .= '<a href="'.$dl->url.$image['name'].'"><img src="'.$dl->url.$image['thumb'].'" alt="'.$file['name'].'" title="'.$file['name'].'" border="0" /></a> by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'<br />';
}
else
{
$dimages .= '<a href="'.$dl->url.$image['name'].'">'.$image['name'].'</a> by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'<br />';
}
}
}

Replace with
$dimages .= '<table cellpadding="0" cellspacing="1" border="0"><tr>';
while ($image = $db->fetch_array($result))
{
if (($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditallfiles']) OR
(($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditownfiles']) AND
(($image['uploaderid'] == $vbulletin->userinfo['userid']) AND ($file['uploaderid'] == $vbulletin->userinfo['userid']))))
{
$edit = '[<a href="./downloads.php?do=file&amp;id='.$file['id'].'&amp;act=delimg&amp;img='.$image['id'].'" onclick="return delete_it()">'.$vbphrase['delete'].'</a>]';
}

if (file_exists($dl->url.$image['thumb']))
{
$dimages .= '<td class="smallfont"><a href="'.$dl->url.$image['name'].'"><img src="'.$dl->url.$image['thumb'].'" alt="'.$file['name'].'" title="'.$file['name'].'" border="0" /></a><br />by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'</td>';
}
else
{
$dimages .= '<td class="smallfont"><a href="'.$dl->url.$image['name'].'">'.$image['name'].'</a><br />by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'</td>';
}
}
$dimages .= '</tr></table>';


Okey.. that works mosly. Problem.. if there a lot of screens, there are all in one row. There ist no break in the line.


• But, where i must change the code, that the Thumbs will be larger? And how must the code looks?

• Why Users can't upload the moviefiles AND Screens at the same time?
• What i must do, that the dl button will be NOT displayed, if user yust upload images, no movies?
• What happened with watermarks?

Wonderfull support here :D

RS_Jelle
05-06-2007, 01:42 PM
is it possible to show the file listings as image say 3 per row and when you mouse over the image a box pops up with info also is it possible to make it require image after its added. ?

I don't see it anywhere, so I think it isn't possible :D
We also can't code this "in a minute"; it's not a small thing. Add-ons are created for popular requests (like creating a new thread for a new file, the vBa module, ...).

m8 any chance you could tell me what code to put where to have to upload image with file i need urgently i will use until your update comes out m8 :P thx in advance

any is it possible to make a stats box for index.php page like the ones on the side of the downloads page.

For the first thing: I'm sorry, but the same answer as above.

The second thing is possible and already available, check out the vBadvanced CMPS module add-on. You need to integrate vBa CMPS first into your index.php to display vBa modules in it, this is explained on vbadvanced.com ;)
If you don't want a seperate vBa column, then you can have a look at the module code. If you have some vBulletin coding knowledge, you can easily mod this for use on other pages.

wolfe
05-06-2007, 03:03 PM
i have made my own forumindex stats box but i would like to know where to code is that updates the dl_main table with the <tr><td> stats for the 3 boxes on the left so i can edit the code to show the category and uploader name / id etc.

what you think so far

Fireproof
05-06-2007, 03:41 PM
Sorry for this question, but is the new version going to be avaiable in a matter of days, or weeks, or likely months?

I'm putting together a new vBulletin board and trying to decide if I should go ahead and install this, or just wait for the new version that is coming soon. Not trying to rush you, I understand it's a LOT of work. Just looking for an estimate on when it *might* be ready.

Thanks,

BozzaJos
05-07-2007, 12:31 PM
In case you are uncertain, this version works perfectly well on vb 3.6.x too.

Thanks for the quick response. One minute ago I wanted to import the product for vb3.6.5 but got the following database error:

Database error in vBulletin 3.6.5:

Invalid SQL:
ALTER TABLE `dl_cats` CHANGE `desc` `description` TEXT NOT NULL;

MySQL Error : Duplicate column name 'description'
Error Number : 1060
Date : Monday, May 7th 2007 @ 03:23:17 PM
Classname : vB_Database

LBmtb
05-07-2007, 03:45 PM
Sorry for this question, but is the new version going to be avaiable in a matter of days, or weeks, or likely months?

I'm putting together a new vBulletin board and trying to decide if I should go ahead and install this, or just wait for the new version that is coming soon. Not trying to rush you, I understand it's a LOT of work. Just looking for an estimate on when it *might* be ready.

Thanks,
Check a few posts up . . . .


Originally Posted by LBmtb View Post
Any idea on when the new version will be released? I'm waiting on that till I give this a shot. Unless the update will be nice and clean?
It takes a lot more time than I expected. It's not all very difficult PHP code, but it's much new code (and recoding all the old)

Upgrade will be pretty painless. One thing: you will lose your download ratings, but I don't think many people really use this feature. This because the current system with a lot of possibilities gets replaced by a -vBulletin like- stars system. You also need to redo some settings, for example the extensions setting gets replaced by a whole new extensions management (like the vBulletin attachments).

But I would suggest you to just use the current version as it works great and the upgrade will be easy to do with a documentated upgrade wizard script.

RS_Jelle
05-07-2007, 07:03 PM
i have made my own forumindex stats box but i would like to know where to code is that updates the dl_main table with the <tr><td> stats for the 3 boxes on the left so i can edit the code to show the category and uploader name / id etc.

what you think so far

Looks nice :)
You can change the PHP code inside /includes/class_downloads.php ;)
It's done by the update_x_x() functions.

Thanks for the quick response. One minute ago I wanted to import the product for vb3.6.5 but got the following database error:

Is it a new, clean install or ... ? It seems that your database is already contains the description field instead of the old desc field, so the update fails. If it's an upgrade: from which to which version? All information is useful :D

BozzaJos
05-07-2007, 07:25 PM
Well.. I think I might have done something wrong but I need you to tell me how to fix it hahaha.

I've upgraded my forum from 3.5 to 3.6 and imported my old database. There was something wrong with my database and I couldn't upgrade directly. So I had to install a second forum, import the database there and upgrade to vb3.6. I think I've also imported the downloadsII tables. I guess that's all the info I can give you... let me know if you need more! Thanks in advance for helping me...

RS_Jelle
05-07-2007, 07:33 PM
Well.. I think I might have done something wrong but I need you to tell me how to fix it hahaha.

I've upgraded my forum from 3.5 to 3.6 and imported my old database. There was something wrong with my database and I couldn't upgrade directly. So I had to install a second forum, import the database there and upgrade to vb3.6. I think I've also imported the downloadsII tables. I guess that's all the info I can give you... let me know if you need more! Thanks in advance for helping me...

Normally if it's a forum without DownloadsII, the best way to do this is installing a clean DownloadsII installation. This will add the dl2 tables, settings, usergroups, and much other junk :)
Then you use phpMyAdmin (that's the most easiest way) and you remove (drop) all the dl2 tables of the clean installation. And finally you import your backup dl2 tables of the original installation. So: all the settings, usergroups, ... things are installed correctly in the database by the new install and all the data imported by the old dl2 tables.

You can't install DownloadsII properly using the product file if the dl2 tables are already present.

BozzaJos
05-07-2007, 07:51 PM
I've got the following tables beginning with dl:

dl_cats, dl_comments, dl_downloads, dl_files, dl_images, dl_main, dl_stats, dl_votes

Should I delete them all... install DownloadsII and then import those 8 tables from my backup to get all the stats, categories, downloadtopics back?

Fireproof
05-08-2007, 01:39 AM
I installed this mod on first try - works great!!

But I'm having a problem - the "download button" is not showing up - it's giving me a red x. I even manually re-uploaded the button into the right directory and it still doesn't work.

Please help.

EDIT: Nevermind! I found that the download button link was pointing to my style directory so I moved the button and now it works. Cheers.

RS_Jelle
05-08-2007, 04:23 AM
I've got the following tables beginning with dl:

dl_cats, dl_comments, dl_downloads, dl_files, dl_images, dl_main, dl_stats, dl_votes

Should I delete them all... install DownloadsII and then import those 8 tables from my backup to get all the stats, categories, downloadtopics back?

Yes :)

But after you installed DownloadsII back again, you should again delete those tables. Otherwise, you can't import them from the backup ofcourse as they already exist then.

logofreax
05-08-2007, 09:53 AM
Again the Problem that some Categories are sorted from Z to A but not all :(

In Options I disabled sorting by Weight. Whats going wrong?

Another question.

How can I make Previewimage of Files shown bigger? Now they are to small. I searched everywhere but didn?t find the right Template to change Imagesize.

And the last Question...

How can I manage that "normal" Users only can Upload into one specific Categoie for Example "Upload"?

Thanks for Help

cu
logofreax

RedGTiVR6
05-08-2007, 09:50 PM
I know this might seem like a stupid question...but...

What exactly does "Update Counters" do?

Just refresh all of the download/upload counters?

DementedMindz
05-08-2007, 09:54 PM
ding ding ding you win the grand prize

Ryloth
05-08-2007, 11:30 PM
Ok, I'm trying to upload an 11 mb file and after a few minutes it just stops and goes back to the "add files" screen.

Any ideas?

DementedMindz
05-08-2007, 11:30 PM
you need to raise php max upload limit or do it through htaccess

Hornstar
05-09-2007, 05:52 AM
When I press update counters, my forum basically freezes, it fully lags the site, and doesn't do anything.

RS_Jelle
05-09-2007, 09:51 AM
Again the Problem that some Categories are sorted from Z to A but not all :(

In Options I disabled sorting by Weight. Whats going wrong?

Another question.

How can I make Previewimage of Files shown bigger? Now they are to small. I searched everywhere but didn?t find the right Template to change Imagesize.

And the last Question...

How can I manage that "normal" Users only can Upload into one specific Categoie for Example "Upload"?

Thanks for Help

cu
logofreax

About which downloads categories on your site are you talking exactly?

Those preview images are PHP generated thumbs, so you can't change them in one of the templates (you can, but it will be ugly as you will be just stretching them). You can change this in downloads.php, but all old thumbs will stay the same as they are already storaged (and there's currently no rebuild feature like for the vBulletin attachment thumbs).

The last thing isn't possible, you can currently only restrict the full category access using the usergroup permissions.

When I press update counters, my forum basically freezes, it fully lags the site, and doesn't do anything.

It update ALL counters and that's a pretty heavy query :D
But the speed of it depends from the amount of files, comments, ... you have. On the site I manage, we have 444 files at the moment and the update counters function runs fast (but we are on our own server).

You also don't NEED to run it every week or so. It's to correct database mistakes from previous releases (mainly ecDownloads :p). Now the problem that some things weren't counting correctly sometimes is fixed already.

logofreax
05-10-2007, 06:30 AM
About which downloads categories on your site are you talking exactly?

I created some new Categories which are at the moment invisible for Guests.

What I found out...

All Categories created before upgrade to DownloadsII 5.0.4 are still sorted in right order A-Z

But new created after Upgrade are sorted from Z-A

cu
logofreax

RS_Jelle
05-10-2007, 01:42 PM
I created some new Categories which are at the moment invisible for Guests.

What I found out...

All Categories created before upgrade to DownloadsII 5.0.4 are still sorted in right order A-Z

But new created after Upgrade are sorted from Z-A

cu
logofreax

That's nearly impossible as we didn't change any big things in the database or so. The query to get the files is also very clear, can't be wrong :D
Have a note that pinned files always stay on top of the category.

Have you a url of an (active) category where the files are sorted wrong, so I can take a look at it?
Also make sure you uploaded all files and imported the product xml (with overwrite option on) correctly. Reupload all DownloadsII files from the upload folder again to be sure (and redo the downloads.php change for name sorting).

logofreax
05-10-2007, 06:10 PM
I dont know why, but I uploaded only downloads.php and now everything is working.

I nothing changed on it, only $sortfield = 'date'; into $sortfield = 'name';

Thanx for your great Support.

cu
logofreax

bailradio
05-10-2007, 06:46 PM
Can someone please message me regarding a problem i'm having with class_downloads.php

Its actually starting to drive me barmey, and i'm not the best with PHP.

Fatal error: Call to a member function on a non-object in /home/ihttpco/public_html/site/includes/class_downloads.php on line 65

Is the error i'm recieveing...

bailradio
05-10-2007, 07:10 PM
Never mind i had a completly blonde moment

Kr0nica
05-11-2007, 09:01 AM
Heh... It's me again :erm: I have one more question. It's possible that 'Upload an Image' feature was available only for thread starter and site stuff? When i turn off this option for Registered Users in Usergroup Manager they can't upload images at all and when it's turn on, they can upload pics wherever they want...

masons
05-11-2007, 09:56 AM
Question

Can we only allow PDF uploads (yes) and that those are automatically "embedded" with our logo as watermark?

esck
05-11-2007, 03:51 PM
is it normal, that files get duplicated?

I've just did an import, and after that a file like this appear 1111-file.ext with the exact same size and everything. I would preffer this won't happen

thanks in advance, great mod

RS_Jelle
05-12-2007, 02:09 PM
Heh... It's me again :erm: I have one more question. It's possible that 'Upload an Image' feature was available only for thread starter and site stuff? When i turn off this option for Registered Users in Usergroup Manager they can't upload images at all and when it's turn on, they can upload pics wherever they want...

That's already included in v6, but the only problem we now have is the fact that there are too much usergroup permissions. It's really getting a mess :D
"Can edit own files", "Can edit all files", "Can edit own comments", "Can edit all comments", "Can delete own files", ....

Question

Can we only allow PDF uploads (yes) and that those are automatically "embedded" with our logo as watermark?

You can choose which file extensions you allow for uploading, but adding a watermark to a PDF isn't possible. Then we would need a whole new external class for doing this, cause it's not a standard PHP function. For images it's perfect possible with PHP. Just like you need a whole new class for exporting text to PDF, which causes also a lot of compatibility problems also with the different PHP versions.

is it normal, that files get duplicated?

I've just did an import, and after that a file like this appear 1111-file.ext with the exact same size and everything. I would preffer this won't happen

thanks in advance, great mod

No, that's not normal :p

Is each duplicated file listened separately in the "The following files were successfully imported" list after the import?

pxd
05-12-2007, 02:15 PM
Well, I chose this mod over the LDM one available, and so far it works nicely, however I am wondering how do I stop users from uploading images to entries that they do not own? And what is the logical purpose of allowing everyone to upload pictures everywhere? I thought ideally the owner of the uploaded file would add a couple of screenshots for others to see but not eveyone to be allowed to upload pictures to his file?

EDIT: Saw your post, RS_Jelle and was wondering whether V6 is there available somewhere. I'd love to have that fix if possible...

butty
05-12-2007, 04:17 PM
i have a forum at the minute with posts and lots of replies to em. i would like to import the replies to a downloadsII upload post. would you think this could be possible?

kevcj
05-12-2007, 06:12 PM
Thank you!!!!!! I have been needing something to help manage files, this fits the bill perfectly!!

Jay...
05-12-2007, 06:24 PM
RS_Jelle are there any plans for this to include any sort of points system?

RS_Jelle
05-12-2007, 08:00 PM
Well, I chose this mod over the LDM one available, and so far it works nicely, however I am wondering how do I stop users from uploading images to entries that they do not own? And what is the logical purpose of allowing everyone to upload pictures everywhere? I thought ideally the owner of the uploaded file would add a couple of screenshots for others to see but not eveyone to be allowed to upload pictures to his file?

EDIT: Saw your post, RS_Jelle and was wondering whether V6 is there available somewhere. I'd love to have that fix if possible...

v6 is the next coming big release. It will contain a full recode of the mod, but it requires ... time. There's no ETA, but there are already some AdminCP screenshots available (look some pages back).

I was thinking about creating a 5.0.5 release maybe in the meantime to add some small new things (like extra usergroup permissions).

i have a forum at the minute with posts and lots of replies to em. i would like to import the replies to a downloadsII upload post. would you think this could be possible?

I don't understand your question fully, can you explain it a bit more :o
Is it a question about the "DownloadsII Create New Thread Add-On"? Then you should address it in the add-on thread of it.

RS_Jelle are there any plans for this to include any sort of points system?

In the past we thought about integration in the most popular one, vbBux/vbPlaza, with a plugin (there are plugin hook location inside of DownloadsII to make this possible). But vbBux/vbPlaza isn't available any more due to security issues (https://vborg.vbsupport.ru/showthread.php?t=146142). So at the moment there's no popular points system (or I must be missing it). In the private coders forum, there are some ideas and other coders working on their own new points system, but there's nothing available yet. So the only thing we can do is wait, as creating our own points system is impossible (that's a totally new mod).


Btw, to all people: yes it works fine on the new vBulletin 3.6.6 :D
I love the new template plugins, as we could integrate the additional template changes (postbit, memberinfo) better, but that would really require vB 3.6.6 and not all people are migrating that fast :(

Black Tiger
05-12-2007, 08:30 PM
So at the moment there's no popular points system (or I must be missing it).
Seems you're missing it indeed.:D At the moment Icash is a popular and well supported points/cash system and is growing rapidly in popularity.
Icash is to be found here at vb.org too.

I don't know if it can be used with Downloads II though or some hooks have to be written or something.

P.s. Just migrated to 3.6.6. and Downloads II looks well in there including the template edits.

RS_Jelle
05-12-2007, 08:40 PM
Seems you're missing it indeed.:D At the moment Icash is a popular and well supported points/cash system and is growing rapidly in popularity.
Icash is to be found here at vb.org too.

I don't know if it can be used with Downloads II though or some hooks have to be written or something.

P.s. Just migrated to 3.6.6. and Downloads II looks well in there including the template edits.

Ah, found it right now and bookmarked it to look into it later on :)

MotMann
05-12-2007, 08:52 PM
RS_Jelle, what happened with my problem with your special code. i have now all screens in one row ;)

Here (https://vborg.vbsupport.ru/showpost.php?p=1242425&postcount=1252) ist the post.

progaming
05-13-2007, 01:48 AM
Im hoping someone can help me with this wonderful mod. When displaying the sub-catagoryys it doesn't display the parent cat's name like my forum does.

Any idea what I can do to fix this?

Here is a link. This should explain better what I would like to do.

THanks

http://insomniagaming.org/downloads.php?do=cat&id=2

wolfe
05-14-2007, 08:23 AM
no access m8

CyberRanger
05-14-2007, 11:47 AM
Well, I chose this mod over the LDM one available, and so far it works nicely, however I am wondering how do I stop users from uploading images to entries that they do not own? Grrrr ... this is one of those bugs I've swear I've fixed multiple times but then somehow gets left out. Let me see if I can dig up the code to fix it.

Jay...
05-14-2007, 03:15 PM
In the past we thought about integration in the most popular one, vbBux/vbPlaza, with a plugin (there are plugin hook location inside of DownloadsII to make this possible). But vbBux/vbPlaza isn't available any more due to security issues (https://vborg.vbsupport.ru/showthread.php?t=146142). So at the moment there's no popular points system (or I must be missing it). In the private coders forum, there are some ideas and other coders working on their own new points system, but there's nothing available yet. So the only thing we can do is wait, as creating our own points system is impossible (that's a totally new mod).


What about icash (https://vborg.vbsupport.ru/showthread.php?t=119086), that seems to be the most popular points system at the moment. it is just what i need, i am waiting for a system like this before i re-open my forum. Looks like i will be waiting a while :(

Black Tiger
05-14-2007, 03:45 PM
@Jay: #1286.;)

Jay...
05-14-2007, 06:28 PM
@Jay: #1286.;)

Cheers mate! :D

odinzu
05-14-2007, 06:35 PM
I have this installed on my forum and I tried testing it today.. I found out that my upload doesn't work. I tried uploading a 10mb file thats format is wmv. It told me there was a upload error. Yes, I added the file extension in the settings. Can someone please help me. I am currently using the newest version.

Alright, I got a image to upload...now, let me try the video one more time.

coolgus
05-14-2007, 09:27 PM
Great Script

One small problem though, don't know if it's a bug. When a user uploads a gif or any picture, nothing shows and I can see that the link in the program has an extra slash. For example forum.com/downloads//picture.jpg

Same time at the directory of downloads there is the filename of the picture with 0 size

CyberRanger
05-15-2007, 01:24 AM
I have this installed on my forum and I tried testing it today.. I found out that my upload doesn't work. I tried uploading a 10mb file thats format is wmv. It told me there was a upload error.
The problem is most likely related to the max file upload size in your php.ini file. Since most folks can't access that, try to below placing the .htaccess file in your forum root directory.
If you want to control the max file size a user can upload, try putting this in .htaccess

php_value upload_max_filesize 10M
php_value post_max_size 10M

v12kid
05-15-2007, 04:50 AM
I have a few questions-

- will this work with icash?
- will this work with 3.6.6 ?
- can you restrict users based on post count? I onyl want users who have a certian post count or more to be able to access the downloads section. Can this be achieved with a different mod that restricst them to that forum?

thanks for the time, mod looks interesting

RS_Jelle
05-15-2007, 09:47 AM
RS_Jelle, what happened with my problem with your special code. i have now all screens in one row ;)

Here (https://vborg.vbsupport.ru/showpost.php?p=1242425&postcount=1252) ist the post.

With this code you can choose the amount of images which fits the best (change the 4 to what you want):
$dimages .= '<table cellpadding="0" cellspacing="1" border="0"><tr>';
$countnumber = 4;
$count = 1;
while ($image = $db->fetch_array($result))
{
if (($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditallfiles']) OR
(($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditownfiles']) AND
(($image['uploaderid'] == $vbulletin->userinfo['userid']) AND ($file['uploaderid'] == $vbulletin->userinfo['userid']))))
{
$edit = '[<a href="./downloads.php?do=file&amp;id='.$file['id'].'&amp;act=delimg&amp;img='.$image['id'].'" onclick="return delete_it()">'.$vbphrase['delete'].'</a>]';
}

if (file_exists($dl->url.$image['thumb']))
{
if ($count == $countnumber)
{
$dimages . '<tr>';
}
$dimages .= '<td class="smallfont"><a href="'.$dl->url.$image['name'].'"><img src="'.$dl->url.$image['thumb'].'" alt="'.$file['name'].'" title="'.$file['name'].'" border="0" /></a><br />by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'</td>';
if ($count == $countnumber)
{
$dimages . '</tr>';
}
}
else
{
if ($count == $countnumber)
{
$dimages . '<tr>';
}
$dimages .= '<td class="smallfont"><a href="'.$dl->url.$image['name'].'">'.$image['name'].'</a><br />by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'</td>';
if ($count == $countnumber)
{
$dimages . '</tr>';
}
}
$count = $count+1;
if ($count == $countnumber)
{
$count = 1;
}
}

Im hoping someone can help me with this wonderful mod. When displaying the sub-catagoryys it doesn't display the parent cat's name like my forum does.

Any idea what I can do to fix this?

Here is a link. This should explain better what I would like to do.

THanks

http://insomniagaming.org/downloads.php?do=cat&id=2

Like wolfe says: your downloads section is private for members. Can you pm me a test account?

Normally the category tree is displayed in your navigation bar.

Great Script

One small problem though, don't know if it's a bug. When a user uploads a gif or any picture, nothing shows and I can see that the link in the program has an extra slash. For example forum.com/downloads//picture.jpg

Same time at the directory of downloads there is the filename of the picture with 0 size

Indeed, a small bug, but normally the image url still works with this. Will be fixed in a next release.

I have a few questions-

- will this work with icash?
- will this work with 3.6.6 ?
- can you restrict users based on post count? I onyl want users who have a certian post count or more to be able to access the downloads section. Can this be achieved with a different mod that restricst them to that forum?

thanks for the time, mod looks interesting


For iCash: I just discovered that mod, so we will be looking into an integration add-on in the future. Have a look at #1286.
It works nicely with vB 3.6.6 as I'm running it on my forum. Have a look at #1284 for more information.
This is possible when you use the vBulletin usergroup permissions and the promotion system. Set up a new usergroup, a copy of the normal registered users group. Create a promotion to it when they reach x amount of posts and give that group permission to access the downloads using the DownloadsII usergroup permissions.

CyberRanger
05-15-2007, 11:05 AM
For iCash: I just discovered that mod, so we will be looking into an integration add-on in the future. Have a look at #1286.
RS_Jelle and I have commented about a "points" integration in the past but let me re-summarize what we plan to do.

A minor version or so ago, we started introducing hooks into downloads.php. With the next version, we ensure that there are hooks in all the necessary places for any programmer to write an add-on to integrate any "points" system with DownloadsII. That programmer may or may not be me or Jelle.

But, we won't be coding downloads.php itself for one specific "points" program. We will be coding it to be open for anyone who is willing to take the time to write the add-on.

trynksssj2
05-15-2007, 02:34 PM
Hi there! Can I have the PSD file of the download.gif? I need it to make the button similar to my other styles.

Thanks,
George

ragtek
05-15-2007, 02:48 PM
RS_Jelle and I have commented about a "points" integration in the past but let me re-summarize what we plan to do.

A minor version or so ago, we started introducing hooks into downloads.php. With the next version, we ensure that there are hooks in all the necessary places for any programmer to write an add-on to integrate any "points" system with DownloadsII. That programmer may or may not be me or Jelle.

But, we won't be coding downloads.php itself for one specific "points" program. We will be coding it to be open for anyone who is willing to take the time to write the add-on.

sounds fine

rabbits slayer
05-15-2007, 03:25 PM
Without going through 80+ pages, my category sorting is by date added...any help on getting it to A to Z?

Sort by Weight is already set to off.

TrIn@dOr
05-15-2007, 03:46 PM
If u want i can do the spanish XML (i can translate, but give me the piece code)

CyberRanger
05-15-2007, 04:25 PM
Without going through 80+ pages, my category sorting is by date added...any help on getting it to A to Z?

Sort by Weight is already set to off.Do you mean your file listing is by date added? I don't think the categories even have a date added field.

If you want to change the default order for how the files are listed, in downloads.php around line 291 -

FIND:
if ($sortfield == '')
{
$sortfield = 'date';
}

CHANGE TO:
if ($sortfield == '')
{
$sortfield = 'name';
}

Jay...
05-15-2007, 04:36 PM
i have a problem, i have uploaded over 300 files to a folder on my server, i am trying to import them using the tool on the amdincp. the Downloads are not showing in alphabetical order (on the import page) like they used to. this is causing me quite a bit of hassle

CyberRanger
05-15-2007, 04:38 PM
the Downloads are not showing in alphabetical order like they used to. this is causing me quite a bit of hassle
Where are they not showing in alphabetical order???

Jay...
05-15-2007, 04:41 PM
Where are they not showing in alphabetical order???

sorry i just edited my last post. they are not showing up on the import page. the order seems quite random

CyberRanger
05-15-2007, 04:54 PM
sorry i just edited my last post. they are not showing up on the import page. the order seems quite random
I'm afraid I don't really have an answer you'll like. The directory is being read with a standard php readdir function. From the php manual: [readdir] returns the filename of the next file from the directory. The filenames are returned in the order in which they are stored by the filesystem. So, unless we build all the names into an array, then sort the array, we are at the mercy of how your underlying filesystem presents the files.

Jay...
05-15-2007, 04:55 PM
I'm afraid I don't really have an answer you'll like. The directory is being read with a standard php readdir function. From the php manual: [readdir] returns the filename of the next file from the directory. The filenames are returned in the order in which they are stored by the filesystem. So, unless we build all the names into an array, then sort the array, we are at the mercy of how your underlying filesystem presents the files.

i never used to have this problem, i just installed the latest version of your hack :confused:

CyberRanger
05-15-2007, 05:09 PM
i never used to have this problem, i just installed the latest version of your hack :confused:beats me! But, if you want to ensure the files on the mass import screen are in A - Z order, do this:

in admincp/downloadadmin.php around line 292

FIND:
while (false !== ($file = readdir($handle)))
{
if (is_file($_POST['dir'].$file) AND strstr("|".str_replace(" ","|",$dl->ext)."|",strtolower(substr($file, strrpos($file, '.')+1))))
{
$file = str_replace(array("[","]"),array("(openbracket)","(closebracket)"),$file);
$class = fetch_row_bgclass();
echo '<tr><td class="'.$class.'">'.$file.'</td><td class="'.$class.'"><input type="text" size="20" name="dname['.$file.']" /></td><td class="'.$class.'"><input type="text" size="20" name="author['.$file.']" /></td><td class="'.$class.'"><input type="text" size="20" name="desc['.$file.']" /></td><td class="'.$class.'"><select name="category['.$file.']">'.$category_select.'</select></td><td class="'.$class.'"><select name="pinned['.$file.']"><option value="-1">-----</option><option value="0">No</option><option value="1">Yes</option></select></td><td class="'.$class.'"><input type="checkbox" name="import['.$file.']" value="1" /></td></tr>';
}
}
closedir($handle);

REPLACE with
$files = array();

while (false !== ($file = readdir($handle)))
{
if (is_file($_POST['dir'].$file) AND strstr("|".str_replace(" ","|",$dl->ext)."|",strtolower(substr($file, strrpos($file, '.')+1))))
{
array_push($files, $file);
}
}
closedir($handle);
sort($files);

foreach ($files as $file) {
$file = str_replace(array("[","]"),array("(openbracket)","(closebracket)"),$file);
$class = fetch_row_bgclass();
echo '<tr><td class="'.$class.'">'.$file.'</td><td class="'.$class.'"><input type="text" size="20" name="dname['.$file.']" /></td><td class="'.$class.'"><input type="text" size="20" name="author['.$file.']" /></td><td class="'.$class.'"><input type="text" size="20" name="desc['.$file.']" /></td><td class="'.$class.'"><select name="category['.$file.']">'.$category_select.'</select></td><td class="'.$class.'"><select name="pinned['.$file.']"><option value="-1">-----</option><option value="0">No</option><option value="1">Yes</option></select></td><td class="'.$class.'"><input type="checkbox" name="import['.$file.']" value="1" /></td></tr>';
}

rabbits slayer
05-15-2007, 05:18 PM
Do you mean your file listing is by date added? I don't think the categories even have a date added field.

If you want to change the default order for how the files are listed, in downloads.php around line 291 -

FIND:
if ($sortfield == '')
{
$sortfield = 'date';
}

CHANGE TO:
if ($sortfield == '')
{
$sortfield = 'name';
}

Thanks for the quick reply. That works perfectly. And yeah, my file listing was by date added.

Jay...
05-15-2007, 05:39 PM
beats me! But, if you want to ensure the files on the mass import screen are in A - Z order, do this:

in admincp/downloadadmin.php around line 292

FIND:
while (false !== ($file = readdir($handle)))
{
if (is_file($_POST['dir'].$file) AND strstr("|".str_replace(" ","|",$dl->ext)."|",strtolower(substr($file, strrpos($file, '.')+1))))
{
$file = str_replace(array("[","]"),array("(openbracket)","(closebracket)"),$file);
$class = fetch_row_bgclass();
echo '<tr><td class="'.$class.'">'.$file.'</td><td class="'.$class.'"><input type="text" size="20" name="dname['.$file.']" /></td><td class="'.$class.'"><input type="text" size="20" name="author['.$file.']" /></td><td class="'.$class.'"><input type="text" size="20" name="desc['.$file.']" /></td><td class="'.$class.'"><select name="category['.$file.']">'.$category_select.'</select></td><td class="'.$class.'"><select name="pinned['.$file.']"><option value="-1">-----</option><option value="0">No</option><option value="1">Yes</option></select></td><td class="'.$class.'"><input type="checkbox" name="import['.$file.']" value="1" /></td></tr>';
}
}
closedir($handle);

REPLACE with
$files = array();

while (false !== ($file = readdir($handle)))
{
if (is_file($_POST['dir'].$file) AND strstr("|".str_replace(" ","|",$dl->ext)."|",strtolower(substr($file, strrpos($file, '.')+1))))
{
array_push($files, $file);
}
}
closedir($handle);
sort($files);

foreach ($files as $file) {
$file = str_replace(array("[","]"),array("(openbracket)","(closebracket)"),$file);
$class = fetch_row_bgclass();
echo '<tr><td class="'.$class.'">'.$file.'</td><td class="'.$class.'"><input type="text" size="20" name="dname['.$file.']" /></td><td class="'.$class.'"><input type="text" size="20" name="author['.$file.']" /></td><td class="'.$class.'"><input type="text" size="20" name="desc['.$file.']" /></td><td class="'.$class.'"><select name="category['.$file.']">'.$category_select.'</select></td><td class="'.$class.'"><select name="pinned['.$file.']"><option value="-1">-----</option><option value="0">No</option><option value="1">Yes</option></select></td><td class="'.$class.'"><input type="checkbox" name="import['.$file.']" value="1" /></td></tr>';
}

spot on, thanks CR :up:

trynksssj2
05-16-2007, 03:53 AM
Hi there! Can I have the PSD file of the download.gif? I need it to make the button similar to my other styles.

Thanks,
George

Anybody :confused:

coolgus
05-16-2007, 05:13 AM
Could we have an edited file (new version of a prog) to appear in latest files box ?

Thanks

RS_Jelle
05-16-2007, 07:58 AM
Anybody :confused:

I will ask it the designer who made it, but I think he deleted it.

Could we have an edited file (new version of a prog) to appear in latest files box ?

Thanks

Not at this moment as there's no database field which stores the last edit time.

Beller
05-16-2007, 01:31 PM
Installed Thanks!!!
I am getting "Upload failed" Every so often with no reason given.
It doesn't seem to be on large files. Any ideas?
Could this just be my connection sometimes?

DementedMindz
05-16-2007, 01:34 PM
that or your hosting cause I never got it once.

CyberRanger
05-16-2007, 01:59 PM
Installed Thanks!!!
I am getting "Upload failed" Every so often with no reason given.
It doesn't seem to be on large files. Any ideas?
Could this just be my connection sometimes?

that or your hosting cause I never got it once.

Right, it's something in your connection, php.ini setup dealing with the file size, or server issue. Here's the code that generates the error:
if (move_uploaded_file($_FILES['upload']['tmp_name'], $dl->url.$newfilename))
{
chmod($dl->url.$newfilename, 0666);
$size = @filesize($dl->url.$newfilename);
}
else
{
$errors['message'] .= '<center><span style="color: red;">The upload failed! Upload error.</span></center><br />';
}

Basically, if the attempt to move the uploaded file from your server tmp area to the downloads folder fails, the error appears. The exact cause cannot be determined by this program.

Beller
05-16-2007, 07:25 PM
NPs Thanks anyway

v12kid
05-17-2007, 01:19 AM
installed, will populate it with files and will report back to you :)

coolgus
05-17-2007, 05:37 AM
Not at this moment as there's no database field which stores the last edit time.

Could this be done if you use date field so when editing a file, date changes and have the file appear on " latest files " column

Thanks

Hornstar
05-17-2007, 05:47 AM
anyone updated to 3.6.6 or 3.6.7 with no problems?

trynksssj2
05-17-2007, 06:47 AM
me ;)

Zia
05-17-2007, 08:41 AM
anyone updated to 3.6.6 or 3.6.7 with no problems?

We are. no problem

rickyreter
05-17-2007, 05:05 PM
hi,mines missing,just wondered what the <br> code was in the default in admin?

Peter

CyberRanger
05-17-2007, 05:10 PM
hi,mines missing,just wondered what the <br> code was in the default in admin?

Peter
What's missing??? I don't understand what <br> code you are talking about.

Naldo41
05-17-2007, 08:51 PM
Hi thank you very much for this...Awsome..

Just need small help please.

My forum is /vb/forums/images/.......

How do I set up the download gfx to show and also the images that i upload.

I realise that the paths are wrong to the original template.

Just need a pointer as to what needs changing.

Thank you for your time.

Black Tiger
05-17-2007, 09:04 PM
I discovered a little bug. When I'm in the Manage Files section, there are a lot of files and below i see 5 pages 1, 2, 3, 4, 5 just as on the forums when you have multiple pages in a thread.

But when I click page 2, 3, 4 or 5 to see what's there, I get an empty page with only the head (Downloads) with "search" and action etc.
But no files.

CyberRanger
05-18-2007, 11:18 AM
Here's a running list of things I plan to fix next week in a minor release. Let me know if I missed any.


Manage Files Multiple Page Problem: I discovered a little bug. When I'm in the Manage Files section, there are a lot of files and below i see 5 pages 1, 2, 3, 4, 5 just as on the forums when you have multiple pages in a thread.

But when I click page 2, 3, 4 or 5 to see what's there, I get an empty page with only the head (Downloads) with "search" and action etc.
But no files.

Sort order of files on import page: sorry i just edited my last post. they are not showing up on the import page. the order seems quite random See https://vborg.vbsupport.ru/showpost.php?p=1248248&postcount=1310
Option to change default sort order of files. See https://vborg.vbsupport.ru/showpost.php?p=1248218&postcount=1304 and just another Problem sorting Files :(

Now sorting by Name an Number of Downloads are working.

But if somebody want to sort by Upload Date or last Download, it doesn?t work.

Any idea to fix it?

cu
logofreax
Restrict Image Upload to own files: Heh... It's me again :erm: I have one more question. It's possible that 'Upload an Image' feature was available only for thread starter and site stuff? When i turn off this option for Registered Users in Usergroup Manager they can't upload images at all and when it's turn on, they can upload pics wherever they want...
Update Counters: The "Update Counter" function does not work properly on Comments counters. It only resents them to "0".

pxd
05-18-2007, 01:10 PM
Let me know if I missed any.

The "Update Counter" function does not work properly on Comments counters. It only resents them to "0".

logofreax
05-18-2007, 02:47 PM
just another Problem sorting Files :(

Now sorting by Name an Number of Downloads are working.

But if somebody want to sort by Upload Date or last Download, it doesn?t work.

Any idea to fix it?

cu
logofreax

silencerdeluxe
05-18-2007, 03:09 PM
Is there any Chance to include this ideas:

1. Use an folder for downloads from an external File-Server

2. Create Subfolders in the Download-Folder for each category and subcategory to sort the Files, if an automatic system is to difficult perhaps an simple option in the acp like "use subfolders named by the categories" to mark, and the path will change to downloadfoalder/$categoryname/... So i can create subfolders in the downloads-folder with the same name of the category and subcategory?!

3. A second Rating-System for Nations who didn´t use grades from A to F, perhaps Starimages like the Thread-Rating from VB.

(sry for my bad english)

Naldo41
05-18-2007, 03:13 PM
OK I got most of it working.

Just one left, were by in the script am I able to edit the path of the url for
The images that are uploaded?

As they still are not being displayed, I am getting 404 error message.

RS_Jelle
05-18-2007, 03:14 PM
I discovered a little bug. When I'm in the Manage Files section, there are a lot of files and below i see 5 pages 1, 2, 3, 4, 5 just as on the forums when you have multiple pages in a thread.

But when I click page 2, 3, 4 or 5 to see what's there, I get an empty page with only the head (Downloads) with "search" and action etc.
But no files.

My fault :p
I created that bug when I changed all paginations to the more secure vBulletin standard code for it. But I forgot to use those new vars to get the content for those pages. So everything in the url (in moderation queue, category id, ...) becomes 0 and so there won't be any results for that.

Black Tiger
05-18-2007, 03:47 PM
No problem, I'm happy if it get's fixed in the next release.;)

However I second the suggesion of Silencerdeluxe option 2, to create subfolders in the downloadfolders for the categories if possible.

Got another problem though, when a file is too big and I import it by uploading it via ftp and them import as an url, the file won't get deleted when I delete the file in downloads II.
Logical, because this is normally used for external url's, not url's on the own server.

Problem is I can upload only to a max of 8mb, my provider won't let me upload more.
So files of 10 and 16 mb (I've got some), need to be uploaded via FTP and after that I've got to import them using the url import function.

Maybe it is possible to make someting that not onlyl import by url but also import by local server directory or something is possible? That way the real file is probably also deleted when I delete the file from Downloads II.

CyberRanger
05-18-2007, 04:07 PM
need to be uploaded via FTP and after that I've got to import them using the url import function.
Don't do it that way! :) FTP the file to a folder other than the downloads folder, than use the mass import feature in the admincp. That will copy the file to the downloads folder and it will be deleted if the entry is deleted.

CyberRanger
05-18-2007, 04:09 PM
just another Problem sorting Files :(

Now sorting by Name an Number of Downloads are working.

But if somebody want to sort by Upload Date or last Download, it doesn?t work.

Any idea to fix it?

cu
logofreaxI'll include that fix next week.

CyberRanger
05-18-2007, 04:12 PM
Is there any Chance to include this ideas:

1. Use an folder for downloads from an external File-ServerI don't understand what you mean. Can you explain this more?

2. Create Subfolders in the Download-Folder for each category and subcategory to sort the Files, if an automatic system is to difficult perhaps an simple option in the acp like "use subfolders named by the categories" to mark, and the path will change to downloadfoalder/$categoryname/... So i can create subfolders in the downloads-folder with the same name of the category and subcategory?!Unlikely to happen using category name. But, I'm going to look at using the category id. That would help not have all the files sitting in the downloads folder.

3. A second Rating-System for Nations who didn?t use grades from A to F, perhaps Starimages like the Thread-Rating from VB.

(sry for my bad english)That's already been recoded by Jelle to stars in ver 6

CyberRanger
05-18-2007, 04:20 PM
just another Problem sorting Files :(

Now sorting by Name an Number of Downloads are working.

But if somebody want to sort by Upload Date or last Download, it doesn?t work.

Any idea to fix it?

cu
logofreaxI'll include that fix next week.

I take that back! There's no reason the change you made so that the default sort is by name should impact the ability to sort by "Date" or "Downloads" using the link above each column. Is that what you are talking about?

Kirk Y
05-18-2007, 05:03 PM
That's already been recoded by Jelle to stars in ver 6

Where can we get v6? I downloaded the latest copy from here yesterday and I've got the A-F rating system.

CyberRanger
05-18-2007, 05:08 PM
Where can we get v6? I downloaded the latest copy from here yesterday and I've got the A-F rating system.It is still vaporware! :-)

pxd
05-18-2007, 05:17 PM
It is still vaporware! :-)

:)

Will my report be considered, too? The one about counters updater that messes comments counter (resets it to "0" instead of updating properly).

Thanks

CyberRanger
05-18-2007, 06:40 PM
:)

Will my report be considered, too? The one about counters updater that messes comments counter (resets it to "0" instead of updating properly).

Thanksalready on the list: https://vborg.vbsupport.ru/showpost.php?p=1250112&postcount=1329

Kirk Y
05-19-2007, 12:28 AM
It is still vaporware! :-)
Ah, that explains it. Is there an ETA for it?

Black Tiger
05-19-2007, 01:18 AM
That will copy the file to the downloads folder and it will be deleted if the entry is deleted.
That's what we call "lood om oud ijzer" because I still have to delete the file via FTP which I uploaded in the temporary folder. It's easyer to find there though... that's correct.:)

CyberRanger
05-19-2007, 01:46 AM
Ah, that explains it. Is there an ETA for it?
Sorry, no ETA.

That's what we call "lood om oud ijzer" because I still have to delete the file via FTP which I uploaded in the temporary folder. It's easyer to find there though... that's correct.:)
True, but once you do the mass import, you can delete all the files in the upload folder in one command then know that if for some reason the downloads entry is deleted the file in the downloads folder will be deleted too. Not a perfect solution but fairly painless.

giovannicosta
05-19-2007, 09:54 AM
How can I make files older than 60 days that have not been accessed delete themselves automatically?

CyberRanger
05-19-2007, 12:34 PM
How can I make files older than 60 days that have not been accessed delete themselves automatically?
First, you need to add a field to the dl_files table to track the last time a file was accessed. Then you need to write a vbcron file that checks that field and deletes files that meet your criteria. What you want isn't currently supported but it's a good idea.

Hornstar
05-19-2007, 11:15 PM
Upgraded to 3.6.7 today got a database error


Database error in vBulletin 3.6.7:

Invalid SQL:
SELECT * FROM vb3_ruleshack
WHERE (fileurl LIKE 'http://www.gamerzneeds.net/forums/downloads.php?do=cat&id=3\' AND exactmatch = 1 )
OR (fileurl LIKE 'http://www.gamerzneeds.net/forums/downloads.php%' AND exactmatch = 0 ) AND active = 1 ORDER BY ruleid;

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 'http://www.gamerzneeds.net/forums/downloads.php%' AND exactmatch = 0 ) AND activ' at line 2
Error Number : 1064
Date : Saturday, May 19th 2007 @ 03:19:06 PM
Script : http://www.gamerzneeds.net/forums/downloads.php?do=cat&id=3\
Referrer :
IP Address :
Username :
Classname : vb_database

CyberRanger
05-20-2007, 01:01 AM
Upgraded to 3.6.7 today got a database error


Database error in vBulletin 3.6.7:

Invalid SQL:
SELECT * FROM vb3_ruleshack
WHERE (fileurl LIKE 'http://www.gamerzneeds.net/forums/downloads.php?do=cat&id=3\' AND exactmatch = 1 )
OR (fileurl LIKE 'http://www.gamerzneeds.net/forums/downloads.php%' AND exactmatch = 0 ) AND active = 1 ORDER BY ruleid;

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 'http://www.gamerzneeds.net/forums/downloads.php%' AND exactmatch = 0 ) AND activ' at line 2
Error Number : 1064
Date : Saturday, May 19th 2007 @ 03:19:06 PM
Script : http://www.gamerzneeds.net/forums/downloads.php?do=cat&id=3\
Referrer :
IP Address :
Username :
Classname : vb_database


I don't know what you have going on here. Looks like another mod is messing with Downloads. Downloads has no reference to rulehack. I'd contact who ever made that hack.

contemptx
05-20-2007, 01:49 PM
I have installed this? http://www.fortecfiles.com

but its not showing??

RS_Jelle
05-20-2007, 06:44 PM
I have installed this? http://www.fortecfiles.com

but its not showing??

http://www.fortecfiles.com/downloads.php
(If you can't access it, you have to change your DownloadsII usergroup permissions.)

Have a look at the Readme-Install.txt for the template edits to show it in your navbar ;)

cfitzarl
05-20-2007, 07:22 PM
Great Mod :D !

MjrGaelic
05-20-2007, 07:43 PM
Installed on my 3.6.7 no probs.

Snake
05-21-2007, 12:54 PM
Yep, seems to be working just fine on v3.6.7. :)

RedGTiVR6
05-22-2007, 04:08 PM
If users are reporting issues uploading larger files, where would I search first?

is this a setting of the server or their browser time out settings or what?

CyberRanger
05-22-2007, 04:34 PM
If users are reporting issues uploading larger files, where would I search first?

is this a setting of the server or their browser time out settings or what?

I have this installed on my forum and I tried testing it today.. I found out that my upload doesn't work. I tried uploading a 10mb file thats format is wmv. It told me there was a upload error.
The problem is most likely related to the max file upload size in your php.ini file. Since most folks can't access that, try to below placing the .htaccess file in your forum root directory.
If you want to control the max file size a user can upload, try putting this in .htaccess

php_value upload_max_filesize 10M
php_value post_max_size 10M

v12kid
05-23-2007, 05:51 AM
not sure if I missed it but are you going to add a feature where we can upload the screenshot/thumb when entering a new file into the system? If this already exists please excuse me :)

great hack!

MotMann
05-23-2007, 06:49 AM
@ RS_Jelle first, thank's for the nice support :)

ok. I found that:

while ($image = $db->fetch_array($result))
{
if (($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditallfiles']) OR
(($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditownfiles']) AND
(($image['uploaderid'] == $vbulletin->userinfo['userid']) AND ($file['uploaderid'] == $vbulletin->userinfo['userid']))))
$edit = '[<a href="./downloads.php?do=file&amp;id='.$file['id'].'&amp;act=delimg&amp;img='.$image['id'].'" onclick="return delete_it()">'.$vbphrase['delete'].'</a>]';
{
if (file_exists($dl->url.$image['thumb']))
{
$dimages .= '<a href="'.$dl->url.$image['name'].'"><img src="'.$dl->url.$image['thumb'].'" alt="'.$file['name'].'" title="'.$file['name'].'" border="0" /></a> by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'<br />';
}
else
{
$dimages .= '<a href="'.$dl->url.$image['name'].'">'.$image['name'].'</a> by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'<br />';
}
}
}

and changed with that:

$dimages .= '<table cellpadding="0" cellspacing="1" border="0"><tr>';
$countnumber = 6;
$count = 1;
while ($image = $db->fetch_array($result))
{
if (($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditallfiles']) OR
(($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditownfiles']) AND
(($image['uploaderid'] == $vbulletin->userinfo['userid']) AND ($file['uploaderid'] == $vbulletin->userinfo['userid']))))
{
$edit = '[<a href="./downloads.php?do=file&amp;id='.$file['id'].'&amp;act=delimg&amp;img='.$image['id'].'" onclick="return delete_it()">'.$vbphrase['delete'].'</a>]';
}

if (file_exists($dl->url.$image['thumb']))
{
if ($count == $countnumber)
{
$dimages . '<tr>';
}
$dimages .= '<td class="smallfont"><a href="'.$dl->url.$image['name'].'"><img src="'.$dl->url.$image['thumb'].'" alt="'.$file['name'].'" title="'.$file['name'].'" border="0" /></a><br />by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'</td>';
if ($count == $countnumber)
{
$dimages . '</tr>';
}
}
else
{
if ($count == $countnumber)
{
$dimages . '<tr>';
}
$dimages .= '<td class="smallfont"><a href="'.$dl->url.$image['name'].'">'.$image['name'].'</a><br />by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'</td>';
if ($count == $countnumber)
{
$dimages . '</tr>';
}
}
$count = $count+1;
if ($count == $countnumber)
{
$count = 1;
}
}

But, there are more than 6 Screens in one row and the Style is not correct right now.

RS_Jelle
05-23-2007, 09:14 AM
not sure if I missed it but are you going to add a feature where we can upload the screenshot/thumb when entering a new file into the system? If this already exists please excuse me :)

great hack!

That feature doesn't exist at the moment, you need to add them afterwards ;)

@ RS_Jelle first, thank's for the nice support :)

But, there are more than 6 Screens in one row and the Style is not correct right now.

I wrote it a bit too quick and missed some things :p
What I did wrong: I first do the $count +1 and then there's the check. So if $count is 5, it becomes 6 and then there's the check wich resets it (so no new line for the images) :D
For the layout: I forgot the </tr></table>.

Final:
$dimages .= '<table cellpadding="0" cellspacing="1" border="0"><tr>';
$countnumber = 6;
$count = 1;
while ($image = $db->fetch_array($result))
{
if (($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditallfiles']) OR
(($permissions['ecdownloadpermissions'] & $vbulletin->bf_ugp['ecdownloadpermissions']['caneditownfiles']) AND
(($image['uploaderid'] == $vbulletin->userinfo['userid']) AND ($file['uploaderid'] == $vbulletin->userinfo['userid']))))
{
$edit = '[<a href="./downloads.php?do=file&amp;id='.$file['id'].'&amp;act=delimg&amp;img='.$image['id'].'" onclick="return delete_it()">'.$vbphrase['delete'].'</a>]';
}

if (file_exists($dl->url.$image['thumb']))
{
if ($count == $countnumber)
{
$dimages . '<tr>';
}
$dimages .= '<td class="smallfont"><a href="'.$dl->url.$image['name'].'"><img src="'.$dl->url.$image['thumb'].'" alt="'.$file['name'].'" title="'.$file['name'].'" border="0" /></a><br />by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'</td>';
if ($count == $countnumber)
{
$dimages . '</tr>';
}
}
else
{
if ($count == $countnumber)
{
$dimages . '<tr>';
}
$dimages .= '<td class="smallfont"><a href="'.$dl->url.$image['name'].'">'.$image['name'].'</a><br />by <a href="./member.php?u='.$image['uploaderid'].'">'.$image['uploader'].'</a> on '.vbdate($vbulletin->options['dateformat'], $image['date'], true).' '.$edit.'</td>';
if ($count == $countnumber)
{
$dimages . '</tr>';
}
}
if ($count == $countnumber)
{
$count = 1;
}
$count = $count+1;
}
$dimages .= '</tr></table>';

MotMann
05-23-2007, 10:32 AM
@ RS_Jelle
ok.. the style is ok.. but not the screens in the row. There are more than 5 :D

I send you the dl.php. Maybe it's better, you correct it in the file. Maybe, there comes bugs from the changes...

Thanks :)

esck
05-23-2007, 03:41 PM
No, that's not normal :p

Is each duplicated file listened separately in the "The following files were successfully imported" list after the import?

Sorry for the late late late reply.

No they are not, but If I try to upload a new file, they do show on the import, even the recently uploaded files shows their clone

CyberRanger
05-23-2007, 05:01 PM
Sorry for the late late late reply.

No they are not, but If I try to upload a new file, they do show on the import, even the recently uploaded files shows their clone
It looks to me like you are using your normal downloads folder as your mass import folder too. It needs to be a different folder.

esck
05-23-2007, 05:05 PM
oh, didn't know that, I'll change it then

edit:

wait a minute, that will duplicate files also 'cause I'll have the import folder video, and the downloads folder video :S isn't?

or DownloadsII will move the file?

CyberRanger
05-23-2007, 05:08 PM
oh, didn't know that, I'll change it then
Note too that once you import the files, you should then delete the files in the import folder (using the program of your choice) so you don't accidentally mass import them again. The import program does not automatically delete them from the import folder.

v12kid
05-24-2007, 12:35 AM
I am getting the error:

You may only upload or link to the following extensions: zip rar tar gz

I have this set as allowed in the config: zip rar tar gz

what am I doing wrong?

CyberRanger
05-24-2007, 10:27 AM
I am getting the error:



I have this set as allowed in the config: zip rar tar gz

what am I doing wrong?

When you get the error message, what type of file are you trying to add? You need to make sure the extension of that file is in the list of allowed files.

esck
05-24-2007, 02:41 PM
Note too that once you import the files, you should then delete the files in the import folder (using the program of your choice) so you don't accidentally mass import them again. The import program does not automatically delete them from the import folder.

oh ok, it's just I thought the import and download folder could be the same, so I don't have to go through that extra step.

thanks for your help and product, what I like the most about it, is that is really user friendly :)

keep the good work

jiffy
05-24-2007, 05:38 PM
I searched but didn't find an answer so sorry if this was already covered. I need to be able to download large pdf files (100MB-200MB). When I try it downloads for a small period of time and then says it's finished but it's not the whole file. Is this an issue of needing to edit the php.ini file and if so can you ell me what to edit? I'm on a Windows server running cgi if that makes a difference.

RedGTiVR6
05-24-2007, 06:02 PM
I'd check your php.ini file to see what the size limit is set to there.

jiffy
05-24-2007, 06:55 PM
I don't think it's a size limit since it will say it's finished at various file sizes. I have my max execution time and max input time set pretty high so I'm not sure what else to change.

Nephalim
05-24-2007, 07:53 PM
Hmm. i installed but i dont even SEE the downloads section

Stifmeister2
05-24-2007, 07:56 PM
Hmm. i installed but i dont even SEE the downloads section
You have to put the link yourself...

CyberRanger
05-24-2007, 07:58 PM
Hmm. i installed but i dont even SEE the downloads sectionYou won't see a link anywhere, although you should see the admincp options once you refresh the admincp.

Have you read the install directions: https://vborg.vbsupport.ru/showpost.php?p=1020522&postcount=2

Also, if you'd like to have it one the navbar see: https://vborg.vbsupport.ru/showpost.php?p=1066742&postcount=299

Nephalim
05-24-2007, 07:58 PM
You have to put the link yourself...

D'OH!!!!!!! hehehe... Thanks, why didn't the author mention that? Hehehe

jiffy
05-24-2007, 08:20 PM
Hey CyberRanger, is there any chance you could help me with my large file download issue? I've been doing a bunch of tests and it looks like it stops downloading after 7 minutes. My max execution and max input times are set greater than that but it still stops downloading after 7 minutes. It actually hangs for a bit before the 7 minute mark. So maybe around 5 minutes it kind of freezes.

cellow
05-24-2007, 09:03 PM
Can anybody tell me the "condition" name if i want to <if> in "headerinclude" for individual meta tags for the different DownloadsII templates (DOWNLOAD / downloads_file / downloads_cat / etc.)

i mean something like this in "headerinclude" Template:

<if condition="$show['downloads_file']">
<meta name="keywords" content="individual keywords" />
<meta name="description" content="individual description" />
<else />

thx

luket79
05-25-2007, 01:47 AM
Hello, I am trying to locate the 'navabar' template edit to add the download link to my main menu on my forum. I have searced navbar and cannot find where to put the code to add the download link. (dncforums.com) Any ideas?

Fish UK
05-25-2007, 10:08 AM
Firstly, thank you for a great mod, just what I was looking for.

However I have a little problem I was hoping someone could assist with.
When an image is uploaded for a download it uploads with the permissions 600 which means it cannot be viewed.
The main download file uploads fine (666) and so does the thumbnail created (666).
The folder permissions are 777 and the ownership correct.

I am running the latest version of this mod and of VB. Any help would be much appreciated.

TIA

CyberRanger
05-25-2007, 11:04 AM
Hello, I am trying to locate the 'navabar' template edit to add the download link to my main menu on my forum. I have searced navbar and cannot find where to put the code to add the download link. (dncforums.com) Any ideas?

4 posts before this one :-)


Also, if you'd like to have it on the navbar see: https://vborg.vbsupport.ru/showpost.php?p=1066742&postcount=299

CyberRanger
05-25-2007, 11:50 AM
Firstly, thank you for a great mod, just what I was looking for.

However I have a little problem I was hoping someone could assist with.
When an image is uploaded for a download it uploads with the permissions 600 which means it cannot be viewed.
The main download file uploads fine (666) and so does the thumbnail created (666).
The folder permissions are 777 and the ownership correct.

I am running the latest version of this mod and of VB. Any help would be much appreciated.

TIAI think this will fix your problem. In downloads.php, around line 818 find:
move_uploaded_file($_FILES['image']['tmp_name'], $dl->url.$newfilename);

BELOW that ADD
chmod($dl->url.$newfilename, 0666);

Let me know how it works.

CyberRanger
05-25-2007, 11:52 AM
Hey CyberRanger, is there any chance you could help me with my large file download issue? I've been researching it but I haven't come up with anything yet. I'll let you know if I do.

Fish UK
05-25-2007, 12:32 PM
I think this will fix your problem. In downloads.php, around line 818 find:
move_uploaded_file($_FILES['image']['tmp_name'], $dl->url.$newfilename);

BELOW that ADD
chmod($dl->url.$newfilename, 0666);

Let me know how it works.

Works like a dream. Thank you for your support and very quick response.

maxicep
05-25-2007, 01:41 PM
can i shown my uploaded attachment before installed Downloads II ?

HappyPike
05-25-2007, 09:36 PM
Hi CyberRanger,

Thanks for all the time you spent developing and supporting this addon. It's greatly appreciated. The addon has been extremely useful.

Do you have any idea when the next version would come out? I hope in the new version you could change it so each user's files are placed inside his own directory (based on User ID). This way the files are spread out. Currently my downloads folder contains some 14,000 files (images included). I afraid having too many files in a single directory may affect server performance.

luket79
05-26-2007, 01:13 AM
Thanks for the response. I am really sorry about that! I looked through the first 10 pages of replies and did some searches and I didn't see anything....guess next time I'll look a little harder and try not to waste anyone's time! Great MOD and Thanks!

Hornstar
05-26-2007, 05:40 AM
Hey hows the progress coming along for version 6?

not sure if this is too late to request, or even possible for you to make it a default, or if you would have to support 2 separate codes.

but there are heaps of people who are using vbseo who would love to see a few implementations into downloads II so vbseo can make it more seo friendly.

here is a thread at vbseo showing peoples interest http://www.vbseo.com/f23/downloads-ii-2-rewrite-rules-7539-new/

and here is the thread explaining how to do the changes for more vbseo compatibility http://www.vbseo.com/f2/vbseo-functions-extensibility-1662/

hope its not too late to be included. Thanks.

Millenium IT
05-26-2007, 08:43 AM
Am i the only one getting Sql database errors when importing the file?


REPLACE INTO phrase
(languageid, fieldname, varname, text, product, username, dateline, version)
VALUES

(-1,
'cppermission',
'ecdownloads_can_avoid_purgatory',
'Can Avoid Moderation Queue',
'ecdownloads',
'',
0,
'')
,
(-1,
'cppermission',
'ecdownloads_can_comment',
'Can Comment on Files',
'ecdownloads',
'',
0,
'')

CyberRanger
05-26-2007, 10:12 AM
Am i the only one getting Sql database errors when importing the file?


REPLACE INTO phrase
(languageid, fieldname, varname, text, product, username, dateline, version)
VALUES

(-1,
'cppermission',
'ecdownloads_can_avoid_purgatory',
'Can Avoid Moderation Queue',
'ecdownloads',
'',
0,
'')
,
(-1,
'cppermission',
'ecdownloads_can_comment',
'Can Comment on Files',
'ecdownloads',
'',
0,
'')


What is the error message?

CyberRanger
05-26-2007, 10:19 AM
Do you have any idea when the next version would come out?
sorry, no eta

I hope in the new version you could change it so each user's files are placed inside his own directory (based on User ID). This way the files are spread out. Currently my downloads folder contains some 14,000 files (images included). I afraid having too many files in a single directory may affect server performance.I agree this needs to be reworked. But I don't think user id is the way to go. Unlike normal vb attachments which tend to be spread among a lot of different users, the downloads files are often uploaded by a small number (or just one) admin.

Instead, I'll probably change it to either a random folder selection (say 1-9 with subfolders of 1-9 below each of those) or category id.

luket79
05-26-2007, 04:56 PM
Is there any way to allow certain user groups persmissions to certain downloads? I want to be able to enable downloads to users with xx posts...any ideas?

RS_Jelle
05-26-2007, 05:49 PM
Is there any way to allow certain user groups persmissions to certain downloads? I want to be able to enable downloads to users with xx posts...any ideas?

This is possible when you use the vBulletin usergroup permissions and the promotion system. Set up a new usergroup, a copy of the normal registered users group. Create a promotion to it when they reach x amount of posts and give that group permission to access the downloads using the DownloadsII usergroup permissions.

There is also a usergroup field to list category numbers for limited category access.

Dave Hybrid
05-26-2007, 06:05 PM
Great MOD.

Two things tho'.

I cannot find anywhere to setup catagorys.

Any change of a copyright free version, can pay.

Thanks

Dave.

RedGTiVR6
05-26-2007, 06:16 PM
It's not in the vBulletin options like most other plug-ins. Look at the list on the left hand side from within your AdminCP.

You will see a "Downloads" drop down list there. It will be at the very top of the list.

Dave Hybrid
05-26-2007, 06:19 PM
It's not in the vBulletin options like most other plug-ins. Look at the list on the left hand side from within your AdminCP.

You will see a "Downloads" drop down list there. It will be at the very top of the list.

Nope, nothing.

RS_Jelle
05-27-2007, 06:36 AM
Nope, nothing.

Try reuploading all the files from the upload folder. You missed /includes/xml/cpnav_ecdownloads.xml then (and maybe other files too).

MotMann
05-27-2007, 07:09 AM
@ RS
My litle problem exist. Look here (https://vborg.vbsupport.ru/showpost.php?p=1253197&postcount=1361) ;

Dave Hybrid
05-27-2007, 07:25 AM
I have fixed it now, thanks guys!

Just need to re-import the product for some reason.

NOTE FOR CODER**

Any chance of a copyright free version?

basketmen
05-27-2007, 09:02 AM
Question

I want to change Bytes to KB in the right side File name

where file or phrase i need to edit ?

thanks guys

luket79
05-27-2007, 02:47 PM
This is possible when you use the vBulletin usergroup permissions and the promotion system. Set up a new usergroup, a copy of the normal registered users group. Create a promotion to it when they reach x amount of posts and give that group permission to access the downloads using the DownloadsII usergroup permissions.

There is also a usergroup field to list category numbers for limited category access.

I was able to setup the usergroups and promotions and it made perfect sense. I then assigned downloads permissions to the groups. I have 3 download categories I am using and you can access the first group with 10 posts, the second with 25, and third with 50. I then created a dummy user and assigned it 11 posts and it worked. I then bumped him to 26 and the dummy user was unable to see the second group of downloads. I checked the permissions and I have a "1,2" for the ability to see category selection. I hope what I said makes sense. It just seems like the permissions dont update. I even ran maint. utilities to update user titles, etc. Any ideas?

HappyPike
05-27-2007, 03:55 PM
sorry, no eta

I agree this needs to be reworked. But I don't think user id is the way to go. Unlike normal vb attachments which tend to be spread among a lot of different users, the downloads files are often uploaded by a small number (or just one) admin.

Instead, I'll probably change it to either a random folder selection (say 1-9 with subfolders of 1-9 below each of those) or category id.
Thanks for the reply, CyberRanger.

It really depends on the sites (ex. number of users) and how the addon is used. On my site (which is a fan site for a computer game), my members create and upload most files and there are hundreds or even more than 1000 uploaders.

BTW the File Upload Center (https://vborg.vbsupport.ru/showthread.php?t=113583) addon here creates a folder for each member. I think it works out pretty well.

If you don't go by user ID, then I suggest using year and month for upload folders. For example,

2007/1/ for January 2007
2007/10/ for October 2007
2008/3/ for March 2008

This way we have 1 folder per month, which is reasonable and more scalable than a fixed number of folders or a single folder.

luket79
05-27-2007, 04:51 PM
I think I figured this out...when you manually enter a post count, it doesn't necessarily change the usergroup. I then changed the usergroup and it worked like a charm!

luket79
05-27-2007, 06:02 PM
Actually, after looking into this, it looks like the promotion system doesnt move the user into the new usergroup. It changed the title for the user to the new group name but it didn't push the user in the new group to be able to see the new downloads. I made a user with 24 posts, then I made a post so it would be 25. The group named changed but the user was still unavailable to see the addidtional download. I even did a manual reload of user titles. Maybe I have something setup wrong in my promo system?

Andyrew
05-27-2007, 06:35 PM
When i click on manage files i only get one page displaying even though it shows 3 pages, when i click on page 2 or 3 no files display.

rowlandc
05-28-2007, 08:48 AM
I've been thinking about large files.

Is there a feature that you could ftp the files into the download directory on your site and then add the details in a menu in the admincp where the download will appear like the others in the download interface section.

I guess that would sort out big files?

CyberRanger
05-28-2007, 01:53 PM
I think I figured this out...when you manually enter a post count, it doesn't necessarily change the usergroup. I then changed the usergroup and it worked like a charm!
Remember that the promotion doesn't occur as soon as the user reaches the number of posts to move to the next usergroup. By default, user promotions only occur once an hour (at 25 minutes past the hour) AND that depends on how busy your board is. If it is a test board or a board with low activity, the promotions will occur even less frequently.

CyberRanger
05-28-2007, 01:54 PM
When i click on manage files i only get one page displaying even though it shows 3 pages, when i click on page 2 or 3 no files display.correct, that's a know bug.

CyberRanger
05-28-2007, 01:55 PM
I've been thinking about large files.

Is there a feature that you could ftp the files into the download directory on your site and then add the details in a menu in the admincp where the download will appear like the others in the download interface section.

I guess that would sort out big files?The "mass import" feature in the admincp is exactly for that type of functionality. I think the current problem someone is experiencing is with retrieving large files that have already been added.

rowlandc
05-28-2007, 03:47 PM
Has the template edit of the navbar changed in the new patch?

I've gone to the navbar section and looked around and can't find the:

<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>

basketmen
05-29-2007, 02:39 AM
Question


I want to change Bytes to KB in the right side File name


where file or phrase i need to edit ?


thanks guys

BUMP :)

DementedMindz
05-29-2007, 06:05 AM
CyberRanger any plans on having it so it will show the description of the file in the meta tags this way there is not constant duplicate content in the search engines from the downloads pages?

silencerdeluxe
05-29-2007, 12:52 PM
1. Use an folder for downloads from an external File-Server


I don't understand what you mean. Can you explain this more?

I try it:
I have one Webserver with my vbulletin-forum, this Server have "only" 3000GB traffic free, and i have one Rootserver with traffic unlimited. The Idea: You can change the Download-Folder to an external Server, in ACP you can set this + ftp.account or something like this, so i can use the rootserver for storring the files, without external links.
Hope you understand my bad english :rolleyes:


That's already been recoded by Jelle to stars in ver 6
Hope it will be release soon! :)

silencerdeluxe
05-29-2007, 12:59 PM
Hi there!

First please excuse my bad english!

The mod is really great,
but i have one little problem with the description-images added to a download,
when you click on it, the 403 error message come up, cause the image-file didnt have
the right chmod... I have set the 2 Folders "downloads" and "ec_temp" to chmod 777, but i need to change every single description-image-file from chmod 600 to 644 to get the large image working :( Dont want to disable the description-images...
Why it dont set it automatic on my webspace?

All other work fine!

Hope you undsertand me, and thanks for any help :o

Didnt find an answer for this Problem, thx for help!

CyberRanger
05-30-2007, 01:59 PM
Didnt find an answer for this Problem, thx for help!

Firstly, thank you for a great mod, just what I was looking for.

However I have a little problem I was hoping someone could assist with.
When an image is uploaded for a download it uploads with the permissions 600 which means it cannot be viewed.
The main download file uploads fine (666) and so does the thumbnail created (666).
The folder permissions are 777 and the ownership correct.

I am running the latest version of this mod and of VB. Any help would be much appreciated.

TIAI think this will fix your problem. In downloads.php, around line 818 find:
move_uploaded_file($_FILES['image']['tmp_name'], $dl->url.$newfilename);

BELOW that ADD
chmod($dl->url.$newfilename, 0666);

Let me know how it works.

CyberRanger
05-30-2007, 02:02 PM
The Idea: You can change the Download-Folder to an external Server, in ACP you can set this + ftp.account or something like this, so i can use the rootserver for storring the files, without external links.
Hope you understand my bad english :rolleyes:
Idea noted. Right now, no plans to incorporate this although I see the utility of it.

CyberRanger
05-30-2007, 02:03 PM
CyberRanger any plans on having it so it will show the description of the file in the meta tags this way there is not constant duplicate content in the search engines from the downloads pages?This would seem fairly simple. I guess we'd need to just add the meta tag to the right template with the description filled in. I'll see if Jelle is already planning to do so.

silencerdeluxe
05-30-2007, 02:40 PM
I think this will fix your problem. In downloads.php, around line 818 find:
move_uploaded_file($_FILES['image']['tmp_name'], $dl->url.$newfilename);

BELOW that ADD
chmod($dl->url.$newfilename, 0666);

Let me know how it works.

Works fine :up:

Thx for the fast Answer!

DementedMindz
05-31-2007, 05:02 AM
This would seem fairly simple. I guess we'd need to just add the meta tag to the right template with the description filled in. I'll see if Jelle is already planning to do so.

ok no problem just figured it may get more pages in search engines cause its not all dupe content that way

Hornstar
05-31-2007, 07:28 AM
hey just dropping in to see how the progress is coming for the next release. any estimate on the percentage completed so far? looking forward to this next release so much ^^

bandare
05-31-2007, 11:12 AM
I have installed this and can't wait to use it but I cant see where in the usergroup manager I can add permissions. Where should this be?

Don't worry.. I was being a mupp3t!

cellow
05-31-2007, 11:43 AM
I try since 2 days & nights to put in the downloads.php + DownloadsII templates, the "$file[name]" and "$cat_value" into the download and category URLs.
But without success :(

It's hard to find the places which i have to change....

I will do this for better seo! I want to rewrite the urls with filename + catergoryname!
A lot of DownloadsII user are waiting for this in vBSEO forum, i hope CyberRanger, you can help us; which part of DownloadsII code we have to change...

thx

bandare
05-31-2007, 05:51 PM
has anyone thought of making a vbadvanced module so the latest uploads and most popular could be listed in the homepage?

RS_Jelle
06-01-2007, 05:13 AM
@ RS
My litle problem exist. Look here (https://vborg.vbsupport.ru/showpost.php?p=1253197&postcount=1361) ;

I fixed it and tested it, have a look at the attachment (I missed some = characters in the new line code) :)
Also note that you have to add +1 to the $countnumber you choose. If you want 3, then you set it to 4 :D

Any chance of a copyright free version?

I don't know, but we are working freely on it and there's no donation system or anything like that :)
So ... the copyright is the only bit of attribution. In v6 the "Based on ecDownloads 4.1 ? Ronin" will disappear also (full recode, so no old Ron1n code any more), so it will become a bit smaller :D

Question


I want to change Bytes to KB in the right side File name


where file or phrase i need to edit ?


thanks guys

This changes automatically with the vBulletin file size calculation function. If it's a small file, it uses bytes, if it's a bigger, it displays the size in kilobytes, if it's "very" big, it uses megabytes, ...

Actually, after looking into this, it looks like the promotion system doesnt move the user into the new usergroup. It changed the title for the user to the new group name but it didn't push the user in the new group to be able to see the new downloads. I made a user with 24 posts, then I made a post so it would be 25. The group named changed but the user was still unavailable to see the addidtional download. I even did a manual reload of user titles. Maybe I have something setup wrong in my promo system?

So, that's not really a DownloadsII problem, but a problem with the vBulletin promotion system :D
Are you using the usergroups promotion system, as you are talking about usertitles, which is a different thing (and has nothing to do with the usergroups)?

Has the template edit of the navbar changed in the new patch?

I've gone to the navbar section and looked around and can't find the:

<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>


Indeed, this seems to be slightly changed to:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>

RS_Jelle
06-01-2007, 05:21 AM
ok no problem just figured it may get more pages in search engines cause its not all dupe content that way

That's why we added already the custom titles :)
I'm also looking a bit at the SEO of my sites, but I don't think the description meta tag is a duplicate content problem (as the page content is different, that's the real point). But I also already thought about a custom description for categories and files. This shouldn't be a big problem to add like Brent said.

hey just dropping in to see how the progress is coming for the next release. any estimate on the percentage completed so far? looking forward to this next release so much ^^

No ETA :D
It's really difficult and for me, my exams are starting next week (two weeks of fun, afterwards a sea of time to code) :(

I try since 2 days & nights to put in the downloads.php + DownloadsII templates, the "$file[name]" and "$cat_value" into the download and category URLs.
But without success :(

It's hard to find the places which i have to change....

I will do this for better seo! I want to rewrite the urls with filename + catergoryname!
A lot of DownloadsII user are waiting for this in vBSEO forum, i hope CyberRanger, you can help us; which part of DownloadsII code we have to change...

thx

It's a bit difficult as you have to pay for vBSEO, so we can't test anything (and we don't know its code at all to integrate stuff). But the variables you mention should work fine ... I also don't think you have to change anything inside of downloads.php, you have to add this to the vBSEO rewrite rules.

has anyone thought of making a vbadvanced module so the latest uploads and most popular could be listed in the homepage?

There's already one (have a look at the add-ons listed in the first post): https://vborg.vbsupport.ru/showthread.php?t=110122 :)

Hornstar
06-01-2007, 07:18 AM
your post above on the vbseo side of things, i would like to extend on this.

there is a few things that need to be modified for better seo for downloadsII while using vbseo

1. edit downloads.php
2. edit a couple/few threads
3. vbseo re write rules.

Now over at vbseo there is a thread which i pointed out in my 2nd last post in this thread, that includes the vbseo re write rules. and includes details (not the best nor easiest) was at doing 1 and 2.

I am fairly sure you can modify downloadsII so it will still function the same way for normal users, but will also be albe to detect if vbseo is running, and use more vbseo friendly urls.

see this thread on how to modify hacks/mods to be better for vbseo, which is a huge benefit for many users.

http://www.vbseo.com/f2/vbseo-functions-extensibility-1662/
and
http://www.vbseo.com/f23/downloads-ii-2-rewrite-rules-7539/index5.html

hope you consider this. Thanks.

coolgus
06-01-2007, 02:30 PM
don't know if this has been answered before but is there any way we can have update at the latest files after editing a file ? I've seen that there is a date table but I don't know if this can be used for this case.

If not, will the new version supoort something like this or do I have to make new entry everytime there is a new version of a program and I want to inform the users ?

Thanks in advance and for this wonderful mod

rowlandc
06-02-2007, 07:39 AM
Hi I got two questions:

If I use the import function the 'latest files' info doesn't change? If I download one it does go into the 'most popular' info box but the latest file doesn't update itself with the import function.

Is there a way to get it to update the latest files box?

2nd question:

Is there a way with the code that the downloaded files could be more Download Manager friendly :P If I try and use mine it downloads a downloads.php file.


Still the 2nd problem isn't that bad and I do belive you have one of the best download mods :)

Thanks
Clem

RS_Jelle
06-02-2007, 01:56 PM
@hornstar1337: thanks for the info, we will look into this :)

don't know if this has been answered before but is there any way we can have update at the latest files after editing a file ? I've seen that there is a date table but I don't know if this can be used for this case.

If not, will the new version supoort something like this or do I have to make new entry everytime there is a new version of a program and I want to inform the users ?

Thanks in advance and for this wonderful mod

The date field is for the date the file was added. At the moment there's no last edit date, but this is already added to the v6 database scheme.

Hi I got two questions:

If I use the import function the 'latest files' info doesn't change? If I download one it does go into the 'most popular' info box but the latest file doesn't update itself with the import function.

Is there a way to get it to update the latest files box?

2nd question:

Is there a way with the code that the downloaded files could be more Download Manager friendly :P If I try and use mine it downloads a downloads.php file.


Still the 2nd problem isn't that bad and I do belive you have one of the best download mods :)

Thanks
Clem

1. You can update all stats boxes manually using the "Update Counters" navigation link.
2. This problem was already mentioned in the past. We could look into the vBulletin attachments code as I thought download manager support was added there.

rowlandc
06-02-2007, 02:10 PM
@hornstar1337:
1. You can update all stats boxes manually using the "Update Counters" navigation link.


I went to Update Counters but I can't find anything concerning updates of states. Is there another name for it?

Sorry for being a pain :erm:

MotMann
06-02-2007, 03:19 PM
I fixed it and tested it, have a look at the attachment (I missed some = characters in the new line code) :)
Also note that you have to add +1 to the $countnumber you choose. If you want 3, then you set it to 4 :D

Okey.. thats work. But, there now Number left from the screen... After 6 comes 2. The Number are not interest. You can delete them :D

65098

AND.. the Thumbs can be a little bit larger.

Thanks for nice support....

DementedMindz
06-02-2007, 03:21 PM
I went to Update Counters but I can't find anything concerning updates of states. Is there another name for it?

Sorry for being a pain :erm:

you just hit update counters and it will update the stats.

rowlandc
06-02-2007, 04:00 PM
you just hit update counters and it will update the stats.

Yeah I know but if I got to Admincp >> Maintenance >> Update Counters I get a list of what I'd like to update e.g. Update User Titles and Ranks ..... Which one should I click?

DementedMindz
06-02-2007, 07:46 PM
no you do it from the downloads page you will have a link like this http://www.example.com/downloads.php?do=manfiles&act=updatecounters

rowlandc
06-02-2007, 07:52 PM
Thanks Dement your a star.

I thought it was in the admincp not the download menu.

Stupid me :P

Thanks :)

DementedMindz
06-02-2007, 08:01 PM
nah nothing stupid about it sometimes we just over look things ;)

CyberRanger
06-03-2007, 03:29 AM
Thanks Dement your a star.

I thought it was in the admincp not the download menu.

Stupid me :P

Thanks :)
Nothing stupid at all! I think your situation highlights the need for us to produce an instruction manual. As the features of the program grow, items we (Jelle and I) think are obvious, are actually very confusing for new users. :)

DementedMindz
06-03-2007, 03:38 AM
might be nice to have that in the admincp downloads dropdown for anyone unsure how to use such features. and possibly have the update counters there also incase they over look it.

RS_Jelle
06-04-2007, 04:23 AM
Okey.. thats work. But, there now Number left from the screen... After 6 comes 2. The Number are not interest. You can delete them :D

65098

AND.. the Thumbs can be a little bit larger.

Thanks for nice support....

Lol, I added those numbers to debug it :D
I removed them, have a look at the attachment of this post.
The thumbs can't be larger as it's hardcoded. You can modify the code, but all old images will stay small as there's no rebuild feature. So I don't recommend it ...

might be nice to have that in the admincp downloads dropdown for anyone unsure how to use such features. and possibly have the update counters there also incase they over look it.

I also thought about adding help items to the AdminCP (that's very easy with the product xml format), but writing all those things ... :p

rowlandc
06-04-2007, 12:22 PM
you should also have a section in the admincp where you can select the default sort file, if its possible.
:)

RS_Jelle
06-05-2007, 04:55 AM
you should also have a section in the admincp where you can select the default sort file, if its possible.
:)

Ring, you just guessed correct a new v6 feature :D
Already added to the database scheme: a sort method (name, date, # downloads, ...) and order (asc & desc) field. Pretty similar to the per forum sort methods introduced in vBulletin itself.

Dr.Vince
06-05-2007, 08:19 AM
hello,

first, great job !!

I have a question, we can allow member to access or not the downloads section (error message display if not the rights)
but I want to show/hide a link to download section in the navbar depending on the rights giving in the option of this hack

how can I do this ??

Thanks

RS_Jelle
06-06-2007, 04:34 AM
You can wrap this conditional code around the link in the templates:

<if condition="$permissions[ecdownloadpermissions] & $vbulletin->bf_ugp[ecdownloadpermissions][canviewfiles]">
Insert link code here
</if>

Dr.Vince
06-06-2007, 07:10 AM
ok thanks, I will test

aj8690
06-06-2007, 10:40 PM
Very nice.

Just one problem, which I hope can be fixed.

When the downloads directory is outside of the public html directory, like mine (for added security), and a member uploads an image to associate to a file, it doesn't do it right. When you try to go to the image, it will make the url like this: www.domain.com/home/user/downloads, which won't work because it's not within the public html directory. Is there a way to fix this without putting the downloads folder inside the public html directory?

Thanks.

logofreax
06-07-2007, 06:16 AM
Hi, I?ve got 2 little questions...

1.) How can I change Ratingsystem from A+ to Stars or metric? I found already this but it doesn?t work:

https://vborg.vbsupport.ru/showthread.php?p=1040856&highlight=rating#post1040856

2.) What happen, if I reinstall this Hack completly? Remove than install from new? I hope you know what i mean ;)

Will be all Files lost oder Categories? I ask before, cause we got nearly 1200 Uploads in it.

Thanx for reply.

cu
logofreax

Mrdby
06-07-2007, 03:59 PM
CAN make this for subscribed users? I will be charging for download.

CyberRanger
06-07-2007, 05:59 PM
2.) What happen, if I reinstall this Hack completly? Remove than install from new? I hope you know what i mean ;)

Will be all Files lost oder Categories? I ask before, cause we got nearly 1200 Uploads in it.

If you un-install the mod, it WILL delete (as it should) the database tables that contain your upload information. If you simply re-upload the php files and re-import the product file, that will give you a clean version of all files and templates.

CyberRanger
06-07-2007, 06:00 PM
CAN make this for subscribed users? I will be charging for download.
Yes, you can control who can view/download/upload files via usergroup settings.

Mrdby
06-07-2007, 11:41 PM
great!!!

Mrdby
06-08-2007, 12:51 AM
this should have a menu options just in case u want to change the order of the catergories..cause i notice i made 4 already and want the last one i created to show at the top instead the bottom..and i have to delete the others and start over.

RedGTiVR6
06-08-2007, 01:22 AM
shows up alphabetical

Mrdby
06-08-2007, 01:51 AM
Now maybe you can add for certain catergories to have PAID subscriptions FOR REGISTERED AND GUEST. gUEST CAN EVEN pay through paypal to down if they like..or to post downloads. Possible?

RS_Jelle
06-08-2007, 11:26 AM
Very nice.

Just one problem, which I hope can be fixed.

When the downloads directory is outside of the public html directory, like mine (for added security), and a member uploads an image to associate to a file, it doesn't do it right. When you try to go to the image, it will make the url like this: www.domain.com/home/user/downloads, which won't work because it's not within the public html directory. Is there a way to fix this without putting the downloads folder inside the public html directory?

Thanks.

At the moment non public html directories aren't supported yet. This will be a feature in v6.
But using a public html directory is pretty secure as the uploaded files have three random characters after the file name. If you download a file, you just see the original file name.
Only the screenshots are directly linked to the folder, but you can disable image viewing for guests.

Hi, I?ve got 2 little questions...

1.) How can I change Ratingsystem from A+ to Stars or metric? I found already this but it doesn?t work:

https://vborg.vbsupport.ru/showthread.php?p=1040856&highlight=rating#post1040856

I already recoded this part to the vBulletin like stars for v6. But at the moment I'm busy for two more weeks with my final exams. Afterwards I've got a sea of time :)

this should have a menu options just in case u want to change the order of the catergories..cause i notice i made 4 already and want the last one i created to show at the top instead the bottom..and i have to delete the others and start over.

This already exists. When you add/edit a category there's a weight field to control this. So no need to remove all categories and add them again ...

Now maybe you can add for certain catergories to have PAID subscriptions FOR REGISTERED AND GUEST. gUEST CAN EVEN pay through paypal to down if they like..or to post downloads. Possible?

You can control the access to separate categories using the DownloadsII usergroup permissions. So you can accomplish this with separate user groups for paid download subscriptions. Also adding downloads is a usergroup permission.

Mrdby
06-08-2007, 12:57 PM
Ok..lets say..i want GUEST to be able to download certain things..and then others to pay..i'm loking under usergroups and see nothing dealing with subscriptions.

Mrdby
06-08-2007, 01:04 PM
and do the downloads have the server i'm on get flooded with nonsense due to people downloading? What should the max MB for uploading to still run a site and not get warned by your host?

VViper
06-09-2007, 06:44 AM
Is there a limit on what size the files can be uploaded?
I often find VB to be a pest when it comes to big files?
Can the files be stored in the filesystem and not the VB database?

aj8690
06-10-2007, 02:18 AM
At the moment non public html directories aren't supported yet. This will be a feature in v6.
But using a public html directory is pretty secure as the uploaded files have three random characters after the file name. If you download a file, you just see the original file name.
Only the screenshots are directly linked to the folder, but you can disable image viewing for guests.

Ah...ok. I will change to a directory within public html. Thank you for your reply.

aj8690
06-10-2007, 02:24 AM
Is there a limit on what size the files can be uploaded?
I often find VB to be a pest when it comes to big files?
Can the files be stored in the filesystem and not the VB database?
1. It depends on your php.ini configuration. You can also set the limit in options, but that does no good if your php.ini is set too small.

2. The files are only stored in the filesystem.

AJ

NokStar
06-10-2007, 04:05 AM
Hi bro i am running this with vb 3.5.x
1. Some times it needs to delete files and add again so when that happens download counter comes with 0. So how can i edit that to the previous amount? Anyway to edit that?

2. I can't disable that download delay. I mean that 30secs between downloads.. like thing you can edit. I put the 0 there still it show like 140secs etc... How to fix and and completely disable that?

Mrdby
06-11-2007, 01:04 PM
still cant get this set for subscription.

CyberRanger
06-11-2007, 01:06 PM
still cant get this set for subscription.
I'm not sure why you are having trouble. The permissions are controlled by usergroup. Simply set the usergroup that has users with subscriptions how you want and guest and registered usergroup the other way.

Mrdby
06-11-2007, 01:12 PM
thats the thing..under my usergroup..i see nothing for subscriptions.

CyberRanger
06-11-2007, 01:19 PM
thats the thing..under my usergroup..i see nothing for subscriptions.Paid subscriptions aren't set in the usergroup portion of the admincp. You setup the subscriptions under the "Paid Subscription" section and the user is assigned to the appropriate usergroup when they subscribe. You may want to read vb's help more on paid subscriptions to understand all the capabilities.

RS_Jelle
06-12-2007, 08:14 AM
Hi bro i am running this with vb 3.5.x
1. Some times it needs to delete files and add again so when that happens download counter comes with 0. So how can i edit that to the previous amount? Anyway to edit that?

2. I can't disable that download delay. I mean that 30secs between downloads.. like thing you can edit. I put the 0 there still it show like 140secs etc... How to fix and and completely disable that?

1. That's not possible, but you can use phpMyAdmin to change this pretty easily. Have a look at the dl_files table with it. Allowing users to change this would be some kind of cheating (they would add some hundreds of "downloads" to make their site look big), so I don't think it would be a good feature.

2. Are you really, really sure that the delay option is set to 0? I haven't heard of any other complaints since it was bugfixed in a previous release.

Mrdby
06-12-2007, 11:31 AM
adding new subscription has no options for downloads..just usergroups and the forum

CyberRanger
06-12-2007, 11:34 AM
adding new subscription has no options for downloads..just usergroups and the forum
Right, once the user has a subscription, the user is moved into a different usergroup. The download settings are then set in that usergroup.

hugh_
06-13-2007, 02:56 PM
Could I suggest extracting id3 information from mp3 or similar files optional / automatic during uploads and adding it to file description?

Hornstar
06-14-2007, 07:56 AM
are any more features being added, or is the next version just being finished off with all features already implemented? because i'm hoping it is the second so we can get our hands on it sooner to test it ^^ any progress reports would be great. Thanks.

NokStar
06-14-2007, 11:56 AM
1. That's not possible, but you can use phpMyAdmin to change this pretty easily. Have a look at the dl_files table with it. Allowing users to change this would be some kind of cheating (they would add some hundreds of "downloads" to make their site look big), so I don't think it would be a good feature.

2. Are you really, really sure that the delay option is set to 0? I haven't heard of any other complaints since it was bugfixed in a previous release.

Hay thanks for your reply.

1. If i edit the number from Phpmyadmin then it will not cause any trouble?
I mean i saw this DownloadsII logs the user name and date which some has downloaded it.
So it should match the number in that table right? or if its different still not make any problems?

2. Yes its on 0, and it shows some (-) time like -46 like stuff

Majest
06-16-2007, 07:38 AM
Is there a way to have the message interface match the style?

Also is there a way to have Top Contributors be Top Authors instead of Top Uploaders?

Clicks Install. ;)

Dotara
06-18-2007, 09:09 AM
Download URL
The relative path to your download folder. Do not change unless you know what you are doing!

./downloads/
It's creating downloads dir under my forum dir. What should I put in the Download URL field to move it to /public_html/downloads? Also it will work if I rename the downloads dir to something else and put the value in Download URL field? Also I did set the permissions but am not able to see any download section anywhere. Where do it appear may I know?

nebu
06-18-2007, 12:05 PM
i can upload files and download em, but the files dont appear on my server.
with flashfxp i cant see them in the /downloads/ folder.

i want them to appear there!

second question:
if somebody uploads a file, i have to Approve the file.
can i disable Approve function?

and can i disable the 30 seconds download protection?

RedGTiVR6
06-18-2007, 02:22 PM
Not sure what would be causing this errors, but here goes.


When I'm linking to a file, I'm entering the file size in bytes. I enter in 6,826,230. However, once I submit and go look at the file, it doesn't show a size. Is there a character limit to this field?

Any ideas?

Citizen
06-18-2007, 08:27 PM
Does this pick up on all attached files or just ones used in the downloads section?

Is there a way to limit the downloads section to one file type?

Is there a way to not allow external link downloads?

yaoren
06-19-2007, 04:46 PM
I'm having some difficulty uploading some attachments. Didn't really ever try to do this and did some moderations to the board and found I can't. Deleated the mods in hope to fix this issue but still have the same problem. Every time I try to upload certain file types, for example .zip or .mpg I then get

Internet Explorer cannot display the webpage

( no error message or anything else..just straight to the page )

Although jpg seems to work fine. Any ideas on what this could be? I have double checked the MIME settings, set permissions for usergroups and while viewing other threads to troubleshoot myself I have attempted to run a upload dianostic which took me to the exact same page.

Not sure if there's some .php file that I can reupload from VB before I made changes. Any help is appreciated.

Version 3.6.7
Mods I Installed were Downloads II and Links and Download Manager
Tried with the hooks on and off.
In 'file suspect' diagnostics, doesn't report any customized files. Only thing different was

.includes
functions_forumlist.php (states: file does not contain expected contents)

As far as I know all users...since we really don't have too many users....just other Admin and I are using forum at this point in time.
Happens in Firefox as well.
All styles were always set to no parent.
Attachments are stored in database.

Tried working on all of these possible scenarios but still no luck and it only seems to be on new attachment files that we manually add or fix.

tekguru
06-19-2007, 06:56 PM
Anyone know what may be causing this error and if so how to fix it:

Database error in vBulletin 3.6.7:

Invalid SQL:
SELECT title, usergroup.usergroupid, username, userid
FROM vb_usergroup, vb_user
WHERE ecdownloadpermissions & 1024 AND usergroup.usergroupid = user.usergroupid;

MySQL Error : Unknown table 'usergroup' in field list
Error Number : 1109
Date : Tuesday, June 19th 2007 @ 09:38:00 AM
Script : <http://www.4winmobile.com/forums/downloads.php?do=edit&id=37>
Referrer : <http://www.4winmobile.com/forums/downloads.php?do=edit&id=37>
IP Address : 83.67.61.245
Username : boz
Classname : vb_database

unknowngiver
06-21-2007, 01:04 AM
i have a small request:
i was using vbulletin attachment feature as my download system...is there any way of exporting all of my attachments to this module?

RS_Jelle
06-21-2007, 07:52 AM
Could I suggest extracting id3 information from mp3 or similar files optional / automatic during uploads and adding it to file description?

That would be a nice add-on -I think-, but personally I don't think it's something for the main release as it would require additional PHP classes. I think it's not that clean to include those for everyone, but it would be suitable for an add-on (you can get them opensource, but we haven't written them, so don't know them entirely).

are any more features being added, or is the next version just being finished off with all features already implemented? because i'm hoping it is the second so we can get our hands on it sooner to test it ^^ any progress reports would be great. Thanks.

I just did my last exam today, so now I've got three months of free time :D
So I'm restarting today with coding and answering support questions.

Hay thanks for your reply.

1. If i edit the number from Phpmyadmin then it will not cause any trouble?
I mean i saw this DownloadsII logs the user name and date which some has downloaded it.
So it should match the number in that table right? or if its different still not make any problems?

2. Yes its on 0, and it shows some (-) time like -46 like stuff

1. It's not in the logs (dl_downloads) table (as you can prune the logs). You should edit the downloads field in the dl_files table.

2. Pretty strange, as it was solved in an older release and I didn't heard of any more problems with it :confused:
Try reuploading all PHP files of DownloadsII and reimporting the product file (with overwrite option on). And be sure you've got the 5.0.4 zip file and not an older one ...

Is there a way to have the message interface match the style?

Also is there a way to have Top Contributors be Top Authors instead of Top Uploaders?

Clicks Install. ;)

1. How do you mean? I don't understand your question. The message editor is the default vBulletin one, so you just have to change its styles in the "Styles & Templates" AdminCP part. Or do you mean the large editor for the reply field for comments? This will be replaced by a small Quick Reply field in v6.

2. Edit the "ecdownloads_top_contributors" phrase to change the text.

Download URL
The relative path to your download folder. Do not change unless you know what you are doing!

./downloads/
It's creating downloads dir under my forum dir. What should I put in the Download URL field to move it to /public_html/downloads? Also it will work if I rename the downloads dir to something else and put the value in Download URL field? Also I did set the permissions but am not able to see any download section anywhere. Where do it appear may I know?

At the moment, you can only specify a path starting from you forums directory. v6 will use an absolute path just like the vBulletin attachments filesystem storage system does. You can rename it if you want (rename it in the options AND the folder itself on your FTP), just keep sure it's chmodded to 777.
Read the Readme-Install.txt for instructions creating a link to the downloads section in your navigation bar. You can find DownloadsII on http://www.yoursite.com/forums/downloads.php

i can upload files and download em, but the files dont appear on my server.
with flashfxp i cant see them in the /downloads/ folder.

i want them to appear there!


second question:
if somebody uploads a file, i have to Approve the file.
can i disable Approve function?

and can i disable the 30 seconds download protection?

1. If your relative downloads path is pointing to there and you are uploading files (not linking them), they really should appear there. There can't be a secret folder :D
Try looking for an option to display hidden files maybe (.htaccess is sometimes hidden, but the files in the downloads folder aren't normally).

2. You can set this using the DownloadsII usergroup permissions: "Can Avoid Moderation Queue" (set it to yes).

3. Have a look at the DownloadsII settings in the AdminCP. Set the "Downloads Delay" option to 0.

Not sure what would be causing this errors, but here goes.


When I'm linking to a file, I'm entering the file size in bytes. I enter in 6,826,230. However, once I submit and go look at the file, it doesn't show a size. Is there a character limit to this field?

Any ideas?

You have to enter the size in bytes without any points, commas or other punctuation. So you should enter 6826230 in this case. The field is supporting 10 characters, so it should be enough for this.

RS_Jelle
06-21-2007, 08:40 AM
Does this pick up on all attached files or just ones used in the downloads section?

Is there a way to limit the downloads section to one file type?

Is there a way to not allow external link downloads?

1. It's a separate system, so it has nothing to do with the vBulletin attachments and it can't use them.

2. There a file types option to specify the allowed extensions.

3. You can control this using the usergroup permissions.

I'm having some difficulty uploading some attachments. Didn't really ever try to do this and did some moderations to the board and found I can't. Deleated the mods in hope to fix this issue but still have the same problem. Every time I try to upload certain file types, for example .zip or .mpg I then get

Internet Explorer cannot display the webpage

( no error message or anything else..just straight to the page )

Although jpg seems to work fine. Any ideas on what this could be? I have double checked the MIME settings, set permissions for usergroups and while viewing other threads to troubleshoot myself I have attempted to run a upload dianostic which took me to the exact same page.

Not sure if there's some .php file that I can reupload from VB before I made changes. Any help is appreciated.

Version 3.6.7
Mods I Installed were Downloads II and Links and Download Manager
Tried with the hooks on and off.
In 'file suspect' diagnostics, doesn't report any customized files. Only thing different was

.includes
functions_forumlist.php (states: file does not contain expected contents)

As far as I know all users...since we really don't have too many users....just other Admin and I are using forum at this point in time.
Happens in Firefox as well.
All styles were always set to no parent.
Attachments are stored in database.

Tried working on all of these possible scenarios but still no luck and it only seems to be on new attachment files that we manually add or fix.

Hmm, this is not a DownloadsII related problem. DownloadsII doesn't change any files, it has nothing to do with the vBulletin attachments, it doesn't use any attachments related plugins, ... This is more a question for the vBulletin.com support team ;)

Anyone know what may be causing this error and if so how to fix it:

Database error in vBulletin 3.6.7:

Invalid SQL:
SELECT title, usergroup.usergroupid, username, userid
FROM vb_usergroup, vb_user
WHERE ecdownloadpermissions & 1024 AND usergroup.usergroupid = user.usergroupid;

MySQL Error : Unknown table 'usergroup' in field list
Error Number : 1109
Date : Tuesday, June 19th 2007 @ 09:38:00 AM
Script : <http://www.4winmobile.com/forums/downloads.php?do=edit&id=37>
Referrer : <http://www.4winmobile.com/forums/downloads.php?do=edit&id=37>
IP Address : 83.67.61.245
Username : boz
Classname : vb_database

Did it occur since you updated to vB 3.6.7? Or is it a new DownloadsII install on vB 3.6.7 or something else? He says that there's no usergroup table, but the usergroup table is a default vBulletin table ... Try editing a usergroup and just save it, so it rebuilds your bitfields if necessary.

i have a small request:
i was using vbulletin attachment feature as my download system...is there any way of exporting all of my attachments to this module?

Not at the moment; DownloadsII is a separate system. The vBulletin attachments system is also a bit more complicated: it saves files with the .attach extension and the real extension is stored in the database (if you use the filesystem option). So you can't use the DownloadsII mass import feature for this ...

pxd
06-21-2007, 12:35 PM
We've been told about 1 month ago that there will be a quick release to address the thumbnail upload issue where only download author should have access to managing thumbnails. Is there an update anywhere around?

CyberRanger
06-21-2007, 12:49 PM
We've been told about 1 month ago that there will be a quick release to address the thumbnail upload issue where only download author should have access to managing thumbnails. Is there an update anywhere around?
My head drops in shame ... no update yet. RL is kicking me hard. But I have a major project that should be complete next Wednesday, freeing up a lot of my time.

pxd
06-21-2007, 12:52 PM
My head drops in shame ... no update yet. RL is kicking me hard. But I have a major project that should be complete next Wednesday, freeing up a lot of my time.

Head up, that's ok, we all have duties!
Just please do not forget to keep us updated, my project has been on hold because of this fix, eh...

Artes_Marciales
06-21-2007, 02:37 PM
Hi,
this mod works in the last version 3.6.7. tpl??

Kind Regards!

RS_Jelle
06-21-2007, 02:51 PM
Hi,
this mod works in the last version 3.6.7. tpl??

Kind Regards!

Yes, it does ;)

Artes_Marciales
06-21-2007, 03:14 PM
Then I should have made something bad. . . :(

I have followed these steps,

Upload the contents of 'upload' to your forum directory
Import product-downloads.xml into your products be going to Plugin System -> Manage Products -> Add/Import Product
Change the permissions on the directory called 'downloads' making it writeable and executable (chmod 777)
(Note for advanced users: you also have the option to place the 'downloads' folder anywhere in your web server's path)
Go to your 'Usergroup Manager' and assign usergroups permissions
Go to the 'Settings' menu under 'Downloads' in your admincp and fill them out accordingly
Create directories in the 'Categories' menu under the 'Downloads' in your admincp

but the Downloads doesn't appear me C. P. as in the imgen
https://vborg.vbsupport.ru/attachment.php?attachmentid=51208&d=1154030011

which could be my error :confused:

RS_Jelle
06-21-2007, 03:20 PM
This is a sign that you didn't upload all files from the upload folder to your vBulletin forums directory. In the /includes/xml/ directory there's a cpnav file which controls these links in the AdminCP navigation. So only uploading the files, gives you already these links (but ofcourse it won't work fully until you also imported the product).

So be really sure you uploaded all DownloadsII files to your forums directory and not only downloads.php for example.

Artes_Marciales
06-21-2007, 03:43 PM
Ohh,
is that I am a little idiot and I ascended this way foum/upload :confused:

Now Work for my too!
Thanks RS Jelle!! :)

CyberRanger
06-21-2007, 11:35 PM
Head up, that's ok, we all have duties!
Just please do not forget to keep us updated, my project has been on hold because of this fix, eh...
Still, this needs to be done asap. I recognize that the ability for anyone who can add images can add them to any entry is a serious flaw.

hehe ... I really posted this so I could comment that our thread has 100 pages now!

rowlandc
06-22-2007, 11:12 AM
What would be nice in the new version, I don't know if this is hard, but to had a function where the most popular download resets automaticle every day,week,year...

I had one question also, in the settings menu you have a setting which is either on or off which says 'Sort by Weight - If not, the downloads will be sorted alphabetically.' My downloads arn't sorted alphabetically. For example I have a file name called 'whatever 01' I then upload a file called 'whatever 02'...Sometimes if I do the 2 before the 1 I will get one at the top while I want it to be at the bottom.

RS_Jelle
06-22-2007, 11:00 PM
That bug is on CyberRangers list of bigger known bugs in v5.0.4. It's a strange thing from ecDownloads: it affects the category sorting and not the files sorting as it says.

The suggestion has already been done some times, but I wasn't sure about it how to implement it. We would need to change the downloads log also, so you can't prune it to less dan 7 days as the "popular files this week" tops are enabled.

tekguru
06-23-2007, 06:58 AM
Did it occur since you updated to vB 3.6.7? Or is it a new DownloadsII install on vB 3.6.7 or something else? He says that there's no usergroup table, but the usergroup table is a default vBulletin table ... Try editing a usergroup and just save it, so it rebuilds your bitfields if necessary

This is a new forum running 3.67PL1 with a fresh install of the Mod so no upgrades anywhere.

Following your advise I've just reedited and saved all usergroups so we'll see if that fixes the error.

RS_Jelle
06-23-2007, 07:32 AM
This is a new forum running 3.67PL1 with a fresh install of the Mod so no upgrades anywhere.

Following your advise I've just reedited and saved all usergroups so we'll see if that fixes the error.

Just edit one usergroup is enough to do a rebuild, when it's necessary :)

maidos
06-23-2007, 08:54 AM
do you have option allowing to have only a certain usergroup to access in one category for example i want my vip members to access vip category.. is this possible?

RS_Jelle
06-23-2007, 10:25 AM
do you have option allowing to have only a certain usergroup to access in one category for example i want my vip members to access vip category.. is this possible?

There's a categories restriction setting in the DownloadsII usergroup permissions ;)

tekguru
06-23-2007, 10:54 AM
Just edit one usergroup is enough to do a rebuild, when it's necessary :)

Argh wish I'd known that as it took quite a while :)

armkbdotcom
06-24-2007, 06:10 AM
Hello mates,

I wonder if any one of you found some sub-addon to this one, in order to extract a preview frame from imported video files

thanks

RS_Jelle
06-24-2007, 10:59 AM
Hello mates,

I wonder if any one of you found some sub-addon to this one, in order to extract a preview frame from imported video files

thanks

There's no add-on to do this at the moment. I also don't know how you could do this using PHP (if you know a method, you may always tell us about it) :D

entertain
06-24-2007, 04:11 PM
Hello all,

I'm not able to upload files with over 20MB or something like this.

But I had set the usergroup permissions at 30MB.

What is the problem there? And how can i change that?

RS_Jelle
06-24-2007, 08:02 PM
That's because PHP has got an upload limit. You can change it using your php.ini if you are on your own server or a VPS. Otherwise you need to upload a .htaccess file to your forum directory (or add this to an existing .htaccess file in your forum directory):

php_value upload_max_filesize 30M
php_value post_max_size 30M

entertain
06-24-2007, 08:58 PM
I have uploaded a .htaccess file into /forum/ with this Code in it:

php_value upload_max_filesize 30M
php_value post_max_size 30M

Is this right?

*edit:*
That do not work. :o

Can you please upload a .htaccess file?