Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 08 Jul 2020, 11:45
vacancy33 vacancy33 is offline
 
Join Date: Apr 2015
Post create date in showthread

How can i show post create date in showthread template?

$post[postdate] is not work :/ Work for only postbit or postbit_legacy

I have a schema code;


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #2  
Old 09 Jul 2020, 10:11
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Location: Lancashire, UK
Which postdate do you want to show?

If it's the first you can create a plugin to do it.

Hook location:Showthread_complete
Title:thread start date
Code

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


$thread[startdate] (or {vb:raw thread.startdate} for vb4) will then be available in showthread.

Schema also accepts datetime format so you could use Y-m-dTH:i:sP in the plugin instead of Y-m-d for greater accuracy.

2020-07-09_10h10_18.png
__________________
Better VB.org search

Last edited by z3r0; 09 Jul 2020 at 10:16.
Reply With Quote
  #3  
Old 09 Jul 2020, 10:27
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Location: Lancashire, UK
After a little more playing, this will give you first and last post dates (you can use last for date modified)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Better VB.org search
Reply With Quote
  #4  
Old 09 Jul 2020, 12:16
vacancy33 vacancy33 is offline
 
Join Date: Apr 2015
Originally Posted by z3r0 View Post
After a little more playing, this will give you first and last post dates (you can use last for date modified)


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Thank you soo much it s work
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


New To Site? Need Help?

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

Layout Options | Width: Wide Color: