Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Set Current Date and Time in Editpost Details »»
Set Current Date and Time in Editpost
Version: 1.00, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-15-2003 Last Update: Never Installs: 9
 
No support by the author.

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]

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-16-2003, 08:06 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #13  
Old 05-16-2003, 08:13 PM
yxboom's Avatar
yxboom yxboom is offline
 
Join Date: Jan 2003
Location: The City
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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. aranoid:
Reply With Quote
  #14  
Old 05-16-2003, 08:18 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 05-16-2003, 08:21 PM
yxboom's Avatar
yxboom yxboom is offline
 
Join Date: Jan 2003
Location: The City
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 05-16-2003, 08:24 PM
MetroSports82's Avatar
MetroSports82 MetroSports82 is offline
 
Join Date: Nov 2002
Location: NJ
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice addition, thanks Boofo!

[high]* MetroSports82 licks install.[/high]
Reply With Quote
  #17  
Old 05-16-2003, 09:26 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 04:21 PM yxboom said this in Post #14
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
So, does it work now then? And I have to register to use that link.

Thanks, MetroSports82. Enjoy!
Reply With Quote
  #18  
Old 05-16-2003, 11:06 PM
yxboom's Avatar
yxboom yxboom is offline
 
Join Date: Jan 2003
Location: The City
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 05-16-2003, 11:19 PM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent, very smart hack. I'll install this.
Reply With Quote
  #20  
Old 05-16-2003, 11:27 PM
-Sidekick- -Sidekick- is offline
 
Join Date: May 2002
Location: Cudahy, Wi
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 03:55 PM Crazy Pete said this in Post #9
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. ]
I'm confused. Why would you have to bump a Sticky Thread?
Reply With Quote
  #21  
Old 05-16-2003, 11:37 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 07:06 PM yxboom said this in Post #17
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.
Did you checkmark the Current date and Time box? And did you add this part?

$editedbysql$attachmentsql$updatedate

There's no way that it should not be updating the time and date.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:35 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09958 seconds
  • Memory Usage 2,295KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete