The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I'm looking for a little help with my code ...I think I have the theory of it wrong here...
Basically I want from the start of the day (two days ago) till the end of the day (two days ago) PHP Code:
maybe its supposed to be similiar to this? PHP Code:
|
#2
|
||||
|
||||
![]()
anyone with some insight?
|
#3
|
||||
|
||||
![]()
Your code it for 48 hours ago to 24 hours ago. There is no 'end of the day' for it, you are just doing it for a 24 hour period. Is that what you want? If not, then you will have to decide what exactly is the 'end of the day'.
|
#4
|
||||
|
||||
![]()
I see..so I should have it right then eh? Its just weird, because the way my mod is coded (or cron job actually) is, it'll grab all threads whos expiration date was two days ago. So it would grab the 25th threads. However it also here and there grabs a few threads from the 26th, which doesnt make sense.
|
#5
|
||||
|
||||
![]()
Without seeing your full code, I really can't comment on what is going on.
|
#6
|
||||
|
||||
![]() ![]() PHP Code:
|
#7
|
||||
|
||||
![]()
Nothing really obvious stands out for me. However, there is no thread_expiry field in default vbulletin, so I can't really say whether anything to do with that field is correct.
|
#8
|
||||
|
||||
![]()
Well..no the codebase works fine. I just wasn't sure about the whole $twodaysago and $endofday variables. I was trying to pull threads that had an expiration starting with two days ago, and ending that same day. So to me it would seem right, 48 hours ago and then 24 hours ago?
Its just weird that it pulls the 48 hour ago threads, but some 24 hour ago ones...when really I just wanted the 48 hour ago ones. Its confusing I guess |
#9
|
|||
|
|||
![]()
Try using just the < $endofday instead of <= $endofday
This way anything that equals 24 hours ago is ingored, but anything more than 24 hours ago is added. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|