News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1184384644:v:use_geshi-1:v:type-php

Started by Douglas, Jul 14, 2007, 03:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Douglas

$sourcedir/Load.php

      'online' => array(
         'dlh_online' => isset($profile['showOnline']) ? $profile['showOnline'] : 1,
         'is_online' => $profile['is_online'],
         'text' => &$txt[$profile['is_online'] ? 'online2' : 'online3'],
         'href' => $scripturl . '?action=pm;sa=send;u=' . $profile['ID_MEMBER'],
         'link' => '<a href="' . $scripturl . '?action=pm;sa=send;u=' . $profile['ID_MEMBER'] . '">' . $txt[$profile['is_online'] ? 'online2' : 'online3'] . '</a>',
         'image_href' => $settings['images_url'] . '/' . ($profile['buddy'] ? 'buddy_' : '') . ($profile['is_online'] ? 'useron' : 'useroff') . '.gif',
         'label' => &$txt[$profile['is_online'] ? 'online4' : 'online5']
      ),

--------------------------------------------------

Profile.template.php
               <td>', $context['member']['last_login'], ': ', $context['member']['online']['dlh_online'], '</td>

--------------------------------------------------

Added in the "dlh" stuff.  If they're allowed to be visible, returns 1, else hidden returns 0