Kimler online sayfasına avatar eklemek

Başlatan cee山, 21 Eyl 2014 22:40

« önceki - sonraki »

0 Üyeler ve 3 Ziyaretçiler konuyu incelemekte.

*

  1. 1,198

  2. 120

  3. 401

Bu modifikasyon kimler online sayfasına avatar ekler.

Link to Mod
Add Avatar To Who Is Online Mod

Current Theme / ThemeSettings : (Active and select avatar height)


Screenshots



Mod by: bolubeyi61

Manuel Kurulum:
./Themes/default/Who.template.php
Bul:
<tr class="catbg">
<th scope="col" class="lefttext first_th" width="40%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=user', $context['sort_direction'] != 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '" rel="nofollow">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="lefttext" width="10%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '" rel="nofollow">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="lefttext last_th" width="50%">', $txt['who_action'], '</th>
</tr>
</thead>
<tbody>';

// For every member display their name, time and action (and more for admin).
$alternate = 0;

foreach ($context['members'] as $member)
{
// $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg".
echo '
<tr class="windowbg', $alternate ? '2' : '', '">
<td>';

// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.

Değiştir:
<tr class="catbg">';
if (!empty($settings['who_is_online_avatar_show']))
{
echo '
<th class="lefttext first_th">', $txt['who_is_avatar'], '</th><th scope="col" class="lefttext" width="40%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=user', $context['sort_direction'] != 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '" rel="nofollow">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
}
else
{
echo '
<th scope="col" class="lefttext first_th" width="40%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=user', $context['sort_direction'] != 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '" rel="nofollow">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
}
echo '
<th scope="col" class="lefttext" width="10%"><a href="', $scripturl, '?action=who;start=', $context['start'], ';show=', $context['show_by'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '" rel="nofollow">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="lefttext last_th" width="50%">', $txt['who_action'], '</th>
</tr>
</thead>
<tbody>';

// For every member display their name, time and action (and more for admin).
$alternate = 0;

foreach ($context['members'] as $member)
{
// $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg".
echo '
<tr class="windowbg', $alternate ? '2' : '', '">';
if (!empty($settings['who_is_online_avatar_show']))
echo '
<td class="who_is_online_avatar_height'. $settings['who_is_online_avatar_height'] . '" align="center"> <span class="who_is_online_avatar_height'. $settings['who_is_online_avatar_height'] . '">
<a href="' . $member['href'] . '" title="' . $txt['profile_of'] . ' ">', $member['avatar']['image'], '</a>
                </span>
</td>';
echo '
<td>';

// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.

./Themes/default/Settings.template.php
Bul:
array(
'id' => 'additional_options_collapsable',
'label' => $txt['additional_options_collapsable'],
),
);

Öncesine ekle:
array(
'id' => 'who_is_online_avatar_show',
'label' => $txt['who_is_online_avatar_show'],
),
array(
'id' => 'who_is_online_avatar_height',
'label' => $txt['who_is_online_avatar_height'],
'options' => array(
0 => $txt['who_is_online_avatar_30px'],
1 => $txt['who_is_online_avatar_40px'],
2 => $txt['who_is_online_avatar_50px'],
3 => $txt['who_is_online_avatar_60px'],
4 => $txt['who_is_online_avatar_70px'],
5 => $txt['who_is_online_avatar_80px'],
6 => $txt['who_is_online_avatar_90px'],
7 => $txt['who_is_online_avatar_100px'],
),
'type' => 'number',
),
'',

./Themes/default/languages/Modifications.english.php
Bul:
?>
Öncesine ekle:
$txt['who_is_online_avatar_show'] = 'Who is online avatar show';
$txt['who_is_avatar'] = 'Avatar';
$txt['who_is_online_avatar_height'] = 'Who is_online avatar max-height (px)';
$txt['who_is_online_avatar_30px'] = '30px';
$txt['who_is_online_avatar_40px'] = '40px';
$txt['who_is_online_avatar_50px'] = '50px';
$txt['who_is_online_avatar_60px'] = '60px';
$txt['who_is_online_avatar_70px'] = '70px';
$txt['who_is_online_avatar_80px'] = '80px';
$txt['who_is_online_avatar_90px'] = '90px';
$txt['who_is_online_avatar_100px'] = '100px';

./Themes/default/css/index.css
En alta ekle:
.who_is_online_avatar_height0 img
{
vertical-align: middle;
height: 30px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height0, .who_is_online_avatar_height0 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height1 img
{
vertical-align: middle;
height: 40px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height1, .who_is_online_avatar_height1 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height2 img
{
vertical-align: middle;
height: 50px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height2, .who_is_online_avatar_height2 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height3 img
{
vertical-align: middle;
height: 60px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height3, .who_is_online_avatar_height3 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height4 img
{
vertical-align: middle;
height: 70px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height4, .who_is_online_avatar_height4 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height5 img
{
vertical-align: middle;
height: 80px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height5, .who_is_online_avatar_height5 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height6 img
{
vertical-align: middle;
height: 90px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height6, .who_is_online_avatar_height6 td
{
background:url(../images/noavatar.png) center center no-repeat;
}
.who_is_online_avatar_height7 img
{
vertical-align: middle;
height: 100px;
width: auto;
border: 2px solid #accbac;
background: #f0fff0;
padding: 3px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.who_is_online_avatar_height7, .who_is_online_avatar_height7 td
{
background:url(../images/noavatar.png) center center no-repeat;
}


Benzer Konular (3)


MENU ×