![]() |
tried this to no avail...
PHP Code:
|
That looks like maybe it would work but I think you have a paren problem. I think that one by itself under the word "split" should go down one line so that $min_days has two after it.
Edit: except one other thing...if you were to set $vbulletin->options['apboupc_pm_amount'] option to 0 it wouldn't kick in even if they days registered was too low. |
thanks - but I don't think so....unless I'm really missing something here:
here's the standard code - I did not change the original condition in the if statement with the ANDS, I just spread it out to make it more readable. PHP Code:
PHP Code:
you wrote: Edit: except one other thing...if you were to set $vbulletin->options['apboupc_pm_amount'] option to 0 it wouldn't kick in even if they days registered was too low. you are correct - I have it set to 15 and I'm the only person who touches the admin panel so this is not a concern of mine. ps: thank you for you help thus far - it is much appreciated. |
Well, it's obvious something's wrong with the parens just from looking at these lines:
Code:
or ($days_registered <= $min_days) For it to be correct, the closing paren for the very first opening one after 'if' has to be the last thing before the '{', and you can see that it's not. |
thanks for the fast reply. I fail to see what I'm missing for instance:
PHP Code:
|
Quote:
That's not correct syntax. An if statement has to be Code:
if (expr) so all parts of the expression have to be inside the outer set of parentheses. What you have is Code:
if (expr) or (expr) |
kh99 - thank you for all your help. trying to insert the code into the mod was taking too long so I just added a few lines to code to private.php - not my first choice of how to do things but it works for now and perhaps 4.0 has a mod I can use when I upgrade soon.
|
This mod is awesome...thanks for you work on this!
Quick question: Can I use this mod in conjunction with VB paid subscriptions? I only allow new threads to be created if a user has X number of posts (this mod works great for that). But if a member chooses to do so, they can pay to be bumped up to a usergroup that is allowed to create new threads. Just I guess I'm really asking which of the two overrides the other....usergroups vs. Cyb-Advanced Perms Thx Brandon |
I have identified 2 bugs on this product. Hope Valter or any other programmer could share with us the patch instructions:
[BUG 1] If you have enabled the restriction "Post Links/Images/emails" with a minimum post count of X (we'll use X=5 in this example) then a member with less than 5 posts is in fact unable to post any link. But what happens when he wants to report a post? The system will allow him to send the report, however it will not get posted on the moderators forum. Guess why? Yes, because the reports contain links in their body and since this member has lees than 5 posts the system will prevent his report from being posted. Instead of posting the report on the predefined forum it is being sent to all the moderators through email which isn't the expected behavior. [BUG 2] If you have enabled the restriction "Post Links/Images/emails" with a minimum post count of X (we'll use X=5 in this example) then a member with less than 5 posts is in fact unable to post any image. But what happens if our smart member makes use of "https" in their image link instead of "http"? Something like this: https://vborg.vbsupport.ru/. Answer is easy: the image will get posted bypassing the restriction of the 5 minimum posts to post images. Unfortunately 4.4 is the latest vB 3.x version of this mod. The current version is 5.2.1 but only available for vB 4.x series. I don't know if version 5.2.1 still have these bugs but maybe the programmer want to check. Please fix these bugs and share with us the patch instructions. |
Valter or any other programmer could fix those bugs please?
|
All times are GMT. The time now is 04:04 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:
|