The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
BFC-Download Details »» | |||||||||||||||||||||||||
ALL MODS HAVE GONE BACK TO STEVE M AS I AM NOT MEANT TO CODE LIKE I CURRENTLY AM DOING.
Show Your Support
|
Comments |
#142
|
|||
|
|||
Look you have posted almost 2 hours apart, I have a life. I will get the errors fixed when I have time. I go to school and I work a full time job, I have a family with 3 kids. I don't have all the time in the world so gain some patience.
|
#143
|
|||
|
|||
Just checking in to see how things are going with this. Thanks!
|
#144
|
|||
|
|||
We are currently performing maintenance of BFC-Download Area.
??? |
#145
|
|||
|
|||
Installing this now... I can see many uses for this, thank you for writing it!
|
#146
|
|||
|
|||
Ok, installed, but have a couple of issues/questions. =)
First, I'm getting this error: Quote:
Second, the questions. Can I set specific categories so that only specified usergroups can access them? I see you have usergroups setup on the files themselves, but it'd be nice to limit by category as well. Having members enter usergroups can get confusing (especially when you use a lot of secondary usergroups like I do). First suggestion would be a multi-select box of usergroups (defined in the admin for this mod, which appear). If that is too much work, then I'd suggest... usergroup groups. Basically where I as an admin would define a group by name, say "Mods and Admins", then I'd assign a value to this name of the usergroups I want it to contain like "6,7". this will allow me to add in whatever I wanted and eliminate the members from having to remember usergroup values. Then a dropdown would list all of these by description or better, a list of checkboxes and select which groups that way. I'm not sure of the best way to go about that, but... I hope you get the idea. =) Anyway, good stuff and can't wait to have it available to my members! |
#147
|
|||
|
|||
Ok, sorry for the multiple posts, but I'm digging at this trying to figure out the problem.
The tables were in fact created correctly, using my prefix as defined: $config['Database']['tableprefix'] = 'dhv_'; However, as you can see by the error in the above post, this prefix is not being used in select statement. I took a look at download.php and found some queries that were missing the prefix. Lines 343 and 344 are missing it, I fixed those in my version of download.php and took a look at all of the other DB calls in that file and couldn't find any more that were missing. Another question is, I have it set to use the file system and not the database, but that doesn't appear to be working. I checked the file folders and there's nothing in ifiles for example (I assume this is where the files should be dumped?). However, the downloads do work, so the files are somewhere (another assumption is the database?). |
#148
|
|||
|
|||
When editing categories, after clicking save, this error appears during the save.
Warning: unlink(./icat/) [function.unlink]: Is a directory in [path]/admincp/download.php on line 192 But the changes I made to the category description appear to save, so that part works. |
#149
|
|||
|
|||
I took a look to see if I could figure out why saving into the file system wasn't working and it appears... there's no code to do it.
The setting is: bfc_download_storage But that's not used in the \download.php file or templates, etc. When looking at the \download.php file, the only code there is for saving to the database, no checks at all if it should save into the file system and nothing that would do it if there were (that I can find). However, the \admincp\download.php does appear to have code for the file system and this option. This would explain why myself and others who have gotten the unlink error get that error. We're set to file system, but there's nothing in the file system to remove, because all uploads are going into the database instead. Since the download record is being deleted, the database record is actually being deleted anyway, so the good news is this isn't leaving unused data in the database. There's a lot of code in the \admincp\download.php that pertains to the file system saving and having only looked at this code for a short amount of time, I could be wrong on all of this. So... no offense meant towards the author at all, this is good stuff, I'm just trying to debug the issues I'm having. =) |
#150
|
|||
|
|||
At the top of the \downloads.php file where access permissions are set, it looks like a copy/paste problem with permissions.
All of the permissions are set to to the "canaddfiles" permission. So if someone can add files, they can do anything, delete, etc, view, etc. To fix: Open \downloads.php Find: Code:
$canaddfiles = $permissions['bfc_download'] & $vbulletin->bf_ugp['bfc_download']['canaddfiles']; $candeletefiles = $permissions['bfc_download'] & $vbulletin->bf_ugp['bfc_download']['canaddfiles']; $caneditfiles = $permissions['bfc_download'] & $vbulletin->bf_ugp['bfc_download']['canaddfiles']; $canaddimages = $permissions['bfc_download'] & $vbulletin->bf_ugp['bfc_download']['canaddfiles']; $canviewfiles = $permissions['bfc_download'] & $vbulletin->bf_ugp['bfc_download']['canaddfiles']; $canviewimages = $permissions['bfc_download'] & $vbulletin->bf_ugp['bfc_download']['canaddfiles']; Code:
$canaddfiles = $permissions['bfc_download'] & $vbulletin->bf_ugp['bfc_download']['canaddfiles']; $candeletefiles = $permissions['bfc_download'] & $vbulletin->bf_ugp['bfc_download']['candeletefiles']; $caneditfiles = $permissions['bfc_download'] & $vbulletin->bf_ugp['bfc_download']['caneditfiles']; $canaddimages = $permissions['bfc_download'] & $vbulletin->bf_ugp['bfc_download']['canaddimages']; $canviewfiles = $permissions['bfc_download'] & $vbulletin->bf_ugp['bfc_download']['canviewfiles']; $canviewimages = $permissions['bfc_download'] & $vbulletin->bf_ugp['bfc_download']['canviewimages']; |
#151
|
|||
|
|||
There's one change in each cat.php, screen.php and screenshot.php that needs to be made.
You need to include the database prefix in those as well. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|