collapse

Author Topic: Welcome to SMF!  (Read 3013 times)

Simple Machines

  • Guest
Welcome to SMF!
« on: August 07, 2018, 03:13:53 PM »
Welcome to Simple Machines Forum!

We hope you enjoy using your forum.  If you have any problems, please feel free to ask us for assistance.

Thanks!
Simple Machines

Mick

  • Administrator
  • Newbie
  • *****
  • Posts: 3
    • View Profile
Re: Welcome to SMF!
« Reply #1 on: August 07, 2018, 04:06:18 PM »

Some picture

Mick

  • Administrator
  • Newbie
  • *****
  • Posts: 3
    • View Profile
Re: Welcome to SMF!
« Reply #2 on: August 07, 2018, 04:11:45 PM »
Welcome to Simple Machines Forum!

We hope you enjoy using your forum.  If you have any problems, please feel free to ask us for assistance.

Thanks!
Simple Machines

Some quote....

Mick

  • Administrator
  • Newbie
  • *****
  • Posts: 3
    • View Profile
Re: Welcome to SMF!
« Reply #3 on: January 29, 2019, 12:49:49 PM »
Code test...

Code: [Select]
// Displays a sortable listing of all members registered on the forum.
function template_main()
{
    global $context, $settings, $options, $scripturl, $txt;

    // Build the memberlist button array.
    $memberlist_buttons = array(
            'view_all_members' => array('text' => 'view_all_members', 'image' => 'mlist.gif', 'lang' => true, 'url' => $scripturl . '?action=mlist' . ';sa=all', 'active'=> true),
            'mlist_search' => array('text' => 'mlist_search', 'image' => 'mlist.gif', 'lang' => true, 'url' => $scripturl . '?action=mlist' . ';sa=search'),
        );

    echo '
    <div class="main_section" id="memberlist">
        <div class="cat_bar">
            <h4 class="catbg">
                <span class="floatleft">', $txt['members_list'], '</span>';
        if (!isset($context['old_search']))
                echo '
                <span class="floatright">', $context['letter_links'], '</span>';
        echo '
            </h4>
        </div>';



    // Assuming there are members loop through each one displaying their data.
    if (!empty($context['members']))
    {
        foreach ($context['members'] as $member)
        {
            echo '
                <div class="memberlist-card">
                        <div class="memberlist-profile">
                          <div class="profile-image">', $member['avatar']['image'], '</div>
                            <div class="profile-caption">
                      <h3>', $member['link'], '</h3>
                      <h5>', empty($member['group']) ? $member['post_group'] : $member['group'], '</h5>
                      <h6>',$txt['date_registered'],': ', $member['registered_date'], '</h6>
                      <h6>',$txt['posts'],': ', $member['posts'], '</h6>
                            <br/>
                     <div class="profile-icons">
              ', $member['show_email'] == 'no' ? '' : '<a href="' . $scripturl . '?action=emailuser;sa=email;uid=' . $member['id'] . '" rel="nofollow"><i class="fas fa-envelope" alt="' . $txt['email'] . '" title="' . $txt['email'] . ' ' . $member['name'] . '" /></i>', '</a>
              ', $member['website']['url'] != '' ? '<a href="' . $member['website']['url'] . '" target="_blank" class="new_win"><i class="fas fa-globe" alt="' . $member['website']['title'] . '" title="' . $member['website']['title'] . '" /></i>' : '', '</a>
                     </div>
                    </div>
                </div>
        </div>';
        }
    }

    echo '
        <div class="pagesection">
            <div class="pagelinks floatleft">', $txt['pages'], ': ', $context['page_index'], '</div>';

    // If it is displaying the result of a search show a "search again" link to edit their criteria.
    if (isset($context['old_search']))
        echo '
            <div class="floatright">
                <a href="', $scripturl, '?action=mlist;sa=search;search=', $context['old_search_value'], '">', $txt['mlist_search_again'], '</a>
            </div>';
    echo '
        </div>
    </div>';

}

 

Theme Demo Selection



Forum Default

Permanently