1
Tekfrog
Last Post Change
  • 2003/11/5 23:30

  • Tekfrog

  • Just popping in

  • Posts: 8

  • Since: 2003/2/8 2


I want to change the last post field in the Recent Topics block to read "20min ago by <username> I know a little C# but am unsure how to call datetime.now in PHP in order to subtract the actual post time in order to return the days/hours/min back. Any ideas OR a nice little solution would be great!

This is what the cell currently contains. Note, I am using IPBoards if it makes a diff.

<td align="right"><{$topic.time}><br><{if $topic.last_post_id <> 0}><a href='<{$xoops_url}>/modules/ipboard/index.php?s=<{$topic.sess_id}>&act=Profile&CODE=03&MID=<{$topic.last_post_id}>'><{$block.lang_by}>:&nbsp;<{$topic.last_post_name}></a><{else}><{$block.lang_by}>:&nbsp;<{$topic.last_post_name}><{/if}></td>

Login

Who's Online

232 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 232


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits