Hi Folks and RS_Jelle
This is indeed one of the best MODS for VB. I just needed to put a small check, that is users should have uploaded at least one file before they can download. So I wrote a small (two liner) plugin, here's how to do it.
- Go to Plugins & Products->Add New Plugin
- Choose Products DownloadsII
- Hook Location dl2_pre_download(DownloadsII)
- Title DownloadsII: Upload before download
- Code:
PHP Code:
if ($vbulletin->userinfo['dl2_uploads'] < 1)
print_no_permission();
- Plugin is Active Yes
- Save
And make sure you put up a notice or something for users to know that they can't download before uploading!
I could have put this up as a MOD but this was so damn simple that just putting it here.
Thanks again RS_JELLE
P.S you could do the same for posts instead of uploads by using this code instead
PHP Code:
if ($vbulletin->userinfo['posts'] < 1)
print_no_permission();