Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1405)
This mod will display a member's date registerd next to their posts
if you theme has its own display.template.php
find
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
after add
if ($message['member']['registered'] != '')
echo '
', $txt['Date_Registerd'], ':', $message['member']['registered'], '<br />';
I like this alot. It's simple and I never thought of it not being there in SMF by default. However, I'd like to change a few things. I'd like the format to be like this:
Join Date: June 2008
I don't want it to show the exact time or anything. I'd like it to look just like the above! How can I do it?
im shore it can be done how i dont know yet im of to work now if you can wait ill have a playe aroumd tonight for ya unless you can work it iout
I'm not exactly sure how. But I did change the word "Date Registered" to "Join Date" in the themes/default/languages/index.english.php file. I just want to shorten it up and take out the time format. I'll wait on you or someone else. If not, I'll play around with it later (it's 5:39 in the morning right now) o_-
Thanks again!
Quote from: brandonroy on September 16, 2008, 06:21:13 AM
I like this alot. It's simple and I never thought of it not being there in SMF by default. However, I'd like to change a few things. I'd like the format to be like this:
Join Date: June 2008
I don't want it to show the exact time or anything. I'd like it to look just like the above! How can I do it?
Try something like this.
Find:
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
And after it add the following code:
// This will show the date that the user registered
echo 'Join Date: ', strftime('%b %Y', $message['member']['registered_timestamp']), '<br />';
Let me know if this is what you wanted
Thanks babjusi. That's perfect :)
thaks for helping babjusi :)
just for the heck of it, the word registered is spelled wrong in index.english.php. otherwise, cool mod.
Thanks for this mod! It's a nice, simple addition that helps members know a bit more about each other.
By the way, here's how I made this work, which may help others wanting to do the same thing:
After this section...
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
Add this...
// This will show the date that the user registered
echo 'Member Since: ', strftime('%b %Y', $message['member']['registered_timestamp']), '<br />';
Thanks again for doing this!
Matthew
Will this ever be updated to beta 4?
yes soon it will be
THX good mod :)
// Show registr date
if ($message['member']['registered'] != '')
echo '
', $txt['Date_Registerd'], ': ', strftime('%d. %m. %Y', $message['member']['registered_timestamp']), '<br />';
// ===== End modification =====
had to post a big thank you :)
Quote from: Matthew Schenker on September 17, 2008, 06:04:27 PM
Thanks for this mod! It's a nice, simple addition that helps members know a bit more about each other.
By the way, here's how I made this work, which may help others wanting to do the same thing:
After this section...
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
Add this...
// This will show the date that the user registered
echo 'Member Since: ', strftime('%b %Y', $message['member']['registered_timestamp']), '<br />';
Thanks again for doing this!
Matthew
cool this worked perfect to give month & year of registration
How do I know if my theme has it's own display.template.php? Admin > Themes and Layout Settings > Modify Themes?
what theme are you using ??
I am using DilberMC with TinyPortal.
you should be ok that dont have an display.template.php
Where do I look for this? Thanks!
Quote from: Matthew Schenker on September 17, 2008, 06:04:27 PM
Thanks for this mod! It's a nice, simple addition that helps members know a bit more about each other.
By the way, here's how I made this work, which may help others wanting to do the same thing:
After this section...
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
Add this...
// This will show the date that the user registered
echo 'Member Since: ', strftime('%b %Y', $message['member']['registered_timestamp']), '<br />';
Thanks again for doing this!
Matthew
display template.php
Okay, I need to install this app first then look for display template.php? Is that in themes folder? Sorry I am just confused.
yes in themes folder
i want to change the date format from Jun 2008 (%b %y) to 06/08 - does anyone know the date code i need to put in to achieve that, thanks
ill have a look over the weekend for ya
cheerz, ive seen them on the net before but tried searching and cant find em now
ok upon applying this mod i got both files with a test failed, so i tried to add it where suggested in display.template and it is still not showing, what else should i do? thanks.
smf version ??
can you post up your diplay.template.php
smf 1.1.7
thanks
you shore you added it i coudent find nopthing todo with this mod in thereor did you remove it ??
try attached
Ok this is when i get:
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Themes/default/Display.template.php Test failed
2. Execute Modification ./Themes/default/languages/index.english.php Test failed
and attached is the updated file.
did you try the file attached to my last post ??
oh no not yet, is this an edited version of my file? im just double checking because my file had customizations to the layout i just want to make sure i dont lose those.
yes thats your file :)
lovely thanks...
now i just need to shorten the date info up
Quote from: bullbreedluverz on January 16, 2009, 08:31:52 AM
i want to change the date format from Jun 2008 (%b %y) to 06/08 - does anyone know the date code i need to put in to achieve that, thanks
was this ever figured out?
no not yet
I'd like to be able to customize the format of the date. Is there a way you can set this up so I can customize it without having to mess with the files themselves? Kinda like a dropdown box somewhere when configuring it or a way to manually do it with codes? Kinda like MS Excel. Also, how about an option to customize the text? Instead of the default "Date Registered" I'd like to specify what it says, maybe I'd say "Join Date" or just leave it at "Registered" without the hassle of modifying a file.
have you tred this ?
http://www.simplemachines.org/community/index.php?topic=262233.msg1710369#msg1710369
Getting the following error:
Undefined index: Date_Registerd
File: /web/Themes/default/Display.template.php
Line: 280
278: if ($message['member']['registered'] != '')
279: echo '
==>280: <li>', $txt['Date_Registerd'], ':', $message['member']['registered'], '</li>';
I also have a : before ever date. I see the ":" in line 280. Not sure if that is the issue.
Please advise. Thx
what language are you using ?
is $txt['Date_Registerd'] in modifaction.english.php?
English
Couldn't find it
This is what the text looks like ...
Karma: +0/-0
Online
:July 15, 2009, 10:48:03 pm
Posts: 10
add this to you modifaction.english.php
$txt['Date_Registerd'] = 'Date Registerd';
anywhere?
Please attach your current install.xml
-Remixed
add it befor the closing php tag
ie
find
?>
befor add
$txt['Date_Registerd'] = 'Date Registerd';
Quote from: Matthew Schenker on September 17, 2008, 06:04:27 PM
Thanks for this mod! It's a nice, simple addition that helps members know a bit more about each other.
By the way, here's how I made this work, which may help others wanting to do the same thing:
After this section...
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
Add this...
// This will show the date that the user registered
echo 'Member Since: ', strftime('%b %Y', $message['member']['registered_timestamp']), '<br />';
Thanks again for doing this!
Matthew
On which page is this added? Thx
Will this be upgraded for 2.0 RC2 ?
Dateregisterdinpost_smf_2.0x.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=1405;id=85010) make on SMF 2.0 RC2 :)
Works great on 2.0 RC2, however it's a little too long, maybe more prettier like this Join Date: Apr 2006
Request: a ability to modify the format like SMF's build in Time Format.
That is basically making the font smaller you can do that by going into Display.template.php and find
if ($message['member']['registered'] != '')
echo '
<li>', $txt['Date_Registerd'], ':', $message['member']['registered'], '</li>';
and replace with
if ($message['member']['registered'] != '')
echo '
<li style="font-size: xxpx">', $txt['Date_Registerd'], ':', $message['member']['registered'], '</li>';
Replacing xx with your pixel size. ex. 2px, 3px, 5px, etc.
Quote from: MaXiForum.cz on December 31, 2009, 11:17:21 AM
Dateregisterdinpost_smf_2.0x.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=1405;id=85010) make on SMF 2.0 RC2 :)
Awesome ! Thank you.