![]() |
Everything seemed to work, except for one problem. All of the current attachments showed up as "attachments pending approval".
Reverted back to normal for now... |
This should not be happening... I'll look into it later today.
Do you have usergroups who need attachment moderation? Because I can't even figure out how to set that. |
No. Anyone can post attachments without moderation, excluding guests. The forum was restricted to certain usergroups. I didn't check in the open forums... whoops
|
Okay, this was caused by a typo I made in the 3.0 install file (that I didn't make in my test which is why I didn't understand the problem). Uploading the non-typo'd version now.
|
Basically you need to find:
PHP Code:
PHP Code:
PHP Code:
Not having this resulted in $attachment['visible'] being false, which class_postbit.php interpreted as the attachment requiring moderation to become visible. |
Thanks, it works. :)
|
Quote:
|
It seems this does not remove a query for my forum.
|
I didn't notice a difference either.
|
vBulletin only adds a query for attachments when the thread has an attachment somewhere.
This hack rearranges the code so that the query doesn't have to be added. The fact that you didn't notice a query removed means nothing, since this hack only prevents a query from being added, much like caching an uncached template in $globaltemplates, only with attachments. |
All times are GMT. The time now is 03:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|