Advertisement:

Author Topic: date registerd in post  (Read 25397 times)

Offline plusev

  • Jr. Member
  • **
  • Posts: 294
Re: date registerd in post
« Reply #40 on: July 21, 2009, 11:13:20 PM »
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


Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: date registerd in post
« Reply #41 on: July 22, 2009, 01:52:36 AM »
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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline plusev

  • Jr. Member
  • **
  • Posts: 294
Re: date registerd in post
« Reply #42 on: July 22, 2009, 02:05:13 AM »
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

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: date registerd in post
« Reply #43 on: July 22, 2009, 02:10:08 AM »
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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline plusev

  • Jr. Member
  • **
  • Posts: 294
Re: date registerd in post
« Reply #44 on: July 22, 2009, 02:46:44 AM »
anywhere?

Offline Remixed

  • Semi-Newbie
  • *
  • Posts: 36
  • Gender: Male
Re: date registerd in post
« Reply #45 on: July 22, 2009, 03:15:31 AM »
Please attach your current install.xml

-Remixed

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: date registerd in post
« Reply #46 on: July 22, 2009, 05:36:55 AM »
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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline plusev

  • Jr. Member
  • **
  • Posts: 294
Re: date registerd in post
« Reply #47 on: July 22, 2009, 12:51:43 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...
Code: [Select]
// 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...
Code: [Select]
// 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

Offline TomW

  • Jr. Member
  • **
  • Posts: 294
  • Gender: Male
Re: date registerd in post
« Reply #48 on: December 30, 2009, 05:57:38 PM »
Will this be upgraded for 2.0 RC2 ?

Offline MaXiForum.cz

  • Senior Translator
  • Full Member
  • *
  • Posts: 690
  • Gender: Male
  • Czech SMF support
    • MaxiFórum
Re: date registerd in post
« Reply #49 on: December 31, 2009, 05:57:18 AM »
Will this be upgraded for 2.0 RC2 ?

Yes :)

Offline TomW

  • Jr. Member
  • **
  • Posts: 294
  • Gender: Male
Re: date registerd in post
« Reply #50 on: December 31, 2009, 09:50:16 AM »

Offline MaXiForum.cz

  • Senior Translator
  • Full Member
  • *
  • Posts: 690
  • Gender: Male
  • Czech SMF support
    • MaxiFórum
Re: date registerd in post
« Reply #51 on: December 31, 2009, 11:17:21 AM »

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,598
  • Gender: Male
Re: date registerd in post
« Reply #52 on: December 31, 2009, 02:49:35 PM »
Works great on 2.0 RC2, however it's a little too long, maybe more prettier like this
Code: [Select]
Join Date: Apr 2006Request: 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

Offline Chaos Dragon

  • Jr. Member
  • **
  • Posts: 177
  • Gender: Male
Re: date registerd in post
« Reply #53 on: January 04, 2010, 09:32:14 PM »
That is basically making the font smaller you can do that by going into Display.template.php and find

Code: [Select]
if ($message['member']['registered'] != '')
echo '
<li>', $txt['Date_Registerd'], ':', $message['member']['registered'], '</li>';

and replace with

Code: [Select]
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.

Offline TomW

  • Jr. Member
  • **
  • Posts: 294
  • Gender: Male
Re: date registerd in post
« Reply #54 on: January 04, 2010, 10:39:42 PM »