News:

Wondering if this will always be free?  See why free is better.

Main Menu

date registerd in post

Started by Chaos Dragon, September 15, 2008, 11:58:04 PM

Previous topic - Next topic

Chaos Dragon

Link to Mod

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 />';
"Never stop exploring new ideas, concepts and techniques, but never forget the old ones, they just may come in handy someday!"
"Don't give up! Otherwise you do not win and nothing gets accomplished!"
Einstein "Insanity is doing the same thing over and over again, and expecting different results..."
Do Not PM me for Support. They will be Ignored. Use the Threads the have been provided.

brandonroy

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?

SA™

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
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

brandonroy

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!

babjusi

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

brandonroy



SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-


timned88

just for the heck of it, the word registered is spelled wrong in index.english.php.  otherwise, cool mod.

Matthew Schenker

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

Snap_shot

Will this ever be updated to beta 4?

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

MaXiForum.cz

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 =====


vivithemage


bullbreedluverz

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

ManilaGurL

How do I know if my theme has it's own display.template.php? Admin > Themes and Layout Settings > Modify Themes?

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

ManilaGurL

I am using DilberMC with TinyPortal.

SA™

you should be ok that dont have an display.template.php
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

ManilaGurL

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

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

ManilaGurL

Okay, I need to install this app first then look for display template.php? Is that in themes folder? Sorry I am just confused.

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

bullbreedluverz

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

SA™

ill have a look over the weekend for ya
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

bullbreedluverz

cheerz, ive seen them on the net before but tried searching and cant find em now

Xavi-Nena

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.

SA™

smf version ??


can you post up your diplay.template.php
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-


SA™

you shore you added it i coudent find nopthing todo with this mod in thereor did you remove it ??

try attached
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Xavi-Nena

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.

SA™

did you try the file attached to my last post ??
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Xavi-Nena

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.

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Xavi-Nena

lovely thanks...

now i just need to shorten the date info up

Xavi-Nena

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?

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

JOSHSKORN

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.

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

plusev

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


SA™

what language are you using ?

is $txt['Date_Registerd'] in modifaction.english.php?
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

plusev

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

SA™

add this to you modifaction.english.php


$txt['Date_Registerd'] = 'Date Registerd';
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

plusev


Remixed

Please attach your current install.xml

-Remixed

SA™

add it befor the closing php tag

ie

find

?>

befor add

$txt['Date_Registerd'] = 'Date Registerd';
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

plusev

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

TomW

Will this be upgraded for 2.0 RC2 ?

MaXiForum.cz



MaXiForum.cz


~DS~

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. 
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Chaos Dragon

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.
"Never stop exploring new ideas, concepts and techniques, but never forget the old ones, they just may come in handy someday!"
"Don't give up! Otherwise you do not win and nothing gets accomplished!"
Einstein "Insanity is doing the same thing over and over again, and expecting different results..."
Do Not PM me for Support. They will be Ignored. Use the Threads the have been provided.


Advertisement: