Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: dkharp on December 09, 2009, 08:26:58 AM

Title: how to add date registerd on post
Post by: dkharp on December 09, 2009, 08:26:58 AM
I was wondering how can I add date registered on post? There was a mod but it's out of date. So I was wondering if I could edit instead
Title: Re: how to add date registerd on post
Post by: Informatics on December 21, 2009, 11:28:40 PM
How to add a registered date or join date, right?

1. Open Display.template.php file on your theme directory
2. Fine this line

// Show how many posts they have made.

3. Add this code on the code above:


      if ($message['member']['registered'] != '')
          echo 'Registered Date: ', strftime('%b %Y', $message['member']['registered_timestamp']), '<br />';


So, we have the new code like this:


      if ($message['member']['registered'] != '')
          echo 'Registered Date: ', strftime('%b %Y', $message['member']['registered_timestamp']), '<br />';
     
      // Show how many posts they have made.


4. Save

This is just a sample.
NB: it use Join Date: instead of Registered Date:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2F302z78k.png&hash=bf1a8140325f00c6db90442d79cedb418d1830cc)

The tutorial is taken from http://idsmf.com/index.php/topic,4.0.html
Title: Re: how to add date registerd on post
Post by: H on January 11, 2010, 03:55:36 PM
Do you require any further assistance with this?