![]() |
Need some help with a simple cron script
Hey guys,
i have a cron script that moves a thread from one forum to another, and updates the thread timestamp to the current time. The problem is that there is another timestamp for the actual post. Can someone help me modify the following code to update the timestamp on the post as well? Thanks in advance PHP Code:
|
you also need to update the post table
|
Quote:
Cheers |
Which post are you trying to update the date/time on? Just the first post? If so, you need to grab the "firstpostid" in your first query also (add threads.firstpostid to your select statement). Then you need to add a second write query to update the post table using the "firstpostid" as your "postid".
|
Quote:
Cheers |
You can not only change the date/time of the first post. Posts are ordered by timestamp, so if you change the postdate of the first post to a later date, it could become the last post instead of the first.
|
All times are GMT. The time now is 01:00 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:
|