This is a request from my users playing with Wedge. I have the Join Date and Location in Posts mod installed on the SMF forum.
Plugin request - Join date and location in posts
« on January 28th, 2014, 03:15 AM »
if (!empty($modSettings['enable_join_date_post']) && (!$context['user']['is_guest']))
echo '<li>', $txt['join_date'], ': ', timeformat($message['member']['registered_timestamp'] ,'%b %Y'), '</li>';
if($context['user']['is_guest'] && !empty($modSettings['show_fields_to_guests']) && !empty($modSettings['enable_join_date_post']))
echo '<li>', $txt['join_date'], ': ', timeformat($message['member']['registered_timestamp'] ,'%b %Y'), '</li>';
//Show there location
if (!empty($modSettings['enable_member_location_post']) && !empty($message['member']['location']) && (!$context['user']['is_guest']))
echo '<li class="postcount">', $txt['location'], ': ', $message['member']['location'], '</li>';
if($context['user']['is_guest'] && !empty($modSettings['show_fields_to_guests']) && !empty($modSettings['enable_member_location_post']))
echo '<li class="postcount">', $txt['location'], ': ', $message['member']['location'], '</li>';
<?xml version="1.0"?>
<template name="template_msg_author_cf" where="before">
global $msg, $txt;
if (!$msg['member']['is_guest'] && !empty($msg['member']['location']))
echo '
<li class="location">', $txt['location'], ': ', $msg['member']['location'], '</li>';
</template>
I just tested it and it worked like a charm for Location.
I need to learn more about templates in Wedge, but this is a good start. I will try to make my own for join date or member since info.