News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

showing joindate in pm

Started by Rumpa, November 05, 2014, 02:07:05 PM

Previous topic - Next topic

Rumpa

I trying to insert below code in personalmessage.template.php to join date in pm

but got error please tell me where I am doing wrong.



search
// Show avatars, images, etc.?


add before
// Show users join date in pm?
if (!empty($modSettings['show_join_date_pm']) && !empty($message['member']['joined']))
echo '
<li>', $txt['date_registered'], ': ', $message['member']['joined'], '</li>';

Kindred

"but got error" ?? ???

if you want help, you really have to provide some actual detail...   WHAT error did you get?

Also, I recommend trying to use proper punctuation and capitalization.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Rumpa

I am trying to make mod. when I trying to install it I am getting test failed error in default theme PersonalMessage.template.php

br360

Instead of trying to write code for this, any reason why you can't just install the mod that already does this?

Take a look here- http://custom.simplemachines.org/mods/index.php?mod=2531

Rumpa

Quote from: br360 on November 05, 2014, 03:32:56 PM
Instead of trying to write code for this, any reason why you can't just install the mod that already does this?

Take a look here- http://custom.simplemachines.org/mods/index.php?mod=2531

I know it had but I want to wrote a new one.

br360

Ah ok. Well take a look at that mod's PersonalMessage.template.php so you can see how the mod author edited that file.

Rumpa

OK I got it now it work.

thanks all.

Advertisement: