The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Yes, i tested for a client, thats why i posted what i did & thats why it was rewrote because of that issue.
|
#12
|
|||
|
|||
Is the rewrite in the latest download?
Or did you rewrite it for your client? (and if so could you point me to the area to be rewritten?) |
#13
|
|||
|
|||
No, sorry its a private script rewrite that wasnt released here.
|
#14
|
|||
|
|||
Quote:
I see. It's IN (1, 2, 3) to check for one of a number of values, but = just checks one. I'm quite sure that you just want to remove the word NOT from the existing case 3. (But I don't know anything about the other issue you guys were discussing). |
#15
|
|||
|
|||
Quote:
Quote:
Thanks again. |
#16
|
|||
|
|||
If you're talking about trying the last code you posted above, that won't work because the only way the condition would be true is if pm.folderid was equal to -1 and to 0. If you wanted to do it that way you'd need an OR (and add parens), like:
Code:
$pms_query_where_clouse .= " AND (pm.folderid = '0' OR pm.folderid = '-1')"; But that's actually equivalent to "AND pm.folderid IN (0, -1)", which is what you get by removing the NOT. |
Благодарность от: | ||
smirkley |
#17
|
|||
|
|||
Check the PM folders after it runs on its own for PM's that got deleted, but left the msg in the box, you will no longer be able to click or delete via the forum.
|
#18
|
|||
|
|||
Quote:
I will try your suggestion next and report back the results. Is there a preferred methed? Use the OR or use the AND without the NOT? |
#19
|
|||
|
|||
No, it's just two different ways of expressing the same condition.
|
#20
|
|||
|
|||
Quote:
Thank you once again kh99 (I will likely post these changes on the original 3.7 thread) (if it says reusable code, does that mean I can submit this in my name with original credits as a new 4.x mod?) |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|