date registerd in post

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

Previous topic - Next topic

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: