![]() |
Set Current Date and Time in Editpost
Set Current Date and Time in Editpost v1.0
This hack was requested by Rose in this thread: https://vborg.vbsupport.ru/showthrea...threadid=51653 Many thanks goes out to Tigga without whom this hack would never have been made. He helped me see a simpler way of doing something that I had only seen as complicated. Thank you, sir. ;) What this hack does: When editing a post, there will now be a checkbox to set the date and time of that post to the current posting time. This hack is for those who have threads or posts they edit on a continual basis and need it to rise to the top of the thread list and show as a new post on the forumdisplay and forumhome. Files to edit: 1 (editpost.php) Templates to edit: 1 (editpost) Install time: 5 minutes (if you are really slow) [high]Please click the install button if you find this hack useful.[/high] ;) |
Here is what it will look like in the editpost.
|
Thanks Boofo! Installing.
|
You're very welcome. Don't forget to click the install button. ;)
|
tested and working fine.
Licked install for ya. |
Nice one, i wont be installing but only cause i dont need it on my site. Nice work tho
|
Cool, this will come in handy sometimes! Installed
|
I really didn't need it either. I did it for Rose. But it is one of those hacks that is nice to have in case I ever [high]do[/high] need it. ;)
|
This doesn't seem to want to work correctly with a sticky, though. I have one sticky thread that I just edited and was hoping to bump up but it didn't seem to update the date/time on it at all, even though I checked the box before I hit submit.
[Edit -- Err, nevermind. It doesn't seem to want to work for me at all regardless. Guess I'll have to uninstall for now. :( ] |
Egad man! Crazy you are right its not working. I should have given it more time to check if it tested correctly.
|
Recheck the install. I have been running here here with no problems for the last 2 weeks now. What is it doing on a regular post?
|
I post, then in edit I check the Update option and then it takes you to the post but the same original time and date show up and it doesn't affect bumping at all it remains where it was when the time it was originally posted if it is the last post. I am certain I did nothing in error with the install. Only modification was made was where I put the check box.
Edit to add: rechecked install....nada. :paranoid: |
Try posting and waiting 5 minutes to edit it. If you edit it right after posting, the time may still be the same as the current time. ;)
Better yet, try use the checkbox on a post that is a few days old. |
Hey I resemble that remark!
I had not waited 5 mins the first time. I learned my lesson from Crazy Pete's post which is why I tried it on another post. Here I even edited a post I made back on the 10th just for you ;) |
nice addition, thanks Boofo! ;)
[high]* MetroSports82 licks install.[/high] |
Quote:
Thanks, MetroSports82. Enjoy! ;) |
Actually no it still does not.
Sorry. Try this link instead. You will see the post is still back dated to May 2nd even though I edited it today on the 16th. |
Excellent, very smart hack. I'll install this. :)
|
Quote:
|
Quote:
$editedbysql$attachmentsql$updatedate There's no way that it should not be updating the time and date. |
Quote:
|
Very good idea. :)
|
Thank you, sir. ;)
|
Quote:
|
Same thing with me. I tried it on a couple different posts and I got the same result everytime. It was like the checkbox wasn't even being clicked, or may as well not have been, rather.
|
Crazy Pete, pm me your editpost and I will look at it. ;)
|
oh and I'm chopped liver.
|
Quote:
|
Egad!!! My PM isn't sending.
Quote:
|
It doesn't make the post go down in the order?
|
I like this - I was going to code this myself - so thanks.
Couple of points.. If you don't want your posts to move around the thread (i.e. you only want the thread/forum to show there's been a change), then don't bother with the PHP Code:
If you want to update the "lasterposter" field (e.g. if the original poster is not the editor) then replace PHP Code:
PHP Code:
|
nice hack
Thanks Boofo |
Austin, this hack is more for when you have a thread (first post) or post that you update continually and want it to rise itself to the top as a new post. I have a "Useless True Facts" post that I add to on a continuing basis and this makes it great for that. ;)
@ yxboom - Did you try the file I fixed for you, yet? How's it working? @ all-the-vb - Thank you very much. ;) Don't forget to click install in case I update this in the future. |
Quote:
I had the last poster showing as the editor off the message, and not the original poster (if other than yourself) but that confused a few people when they would go to read the message and it was from someone other than who the last poster was. ;) |
Boofo: Got it and replied. :)
|
Boofo does it again! Good work my friend.
|
Quote:
|
Note: If you have Xenon's Admin Edit hack you need to put the line of code in the Editpost template from this hack into the admineditpost template instead for it to function. :)
|
I told you I would get it figured out for you. How's that for relentless? ;)
|
All times are GMT. The time now is 11:19 AM. |
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:
|