SMFPT - Suporte e Manutenção de Fórum em Português

SMF 1.1.x (Móbulos Manual) => SMF 1.1.x Módulos Manual => Categoria => Tópico iniciado por: candidosa2 em 05 de Janeiro de 2008, 23:13

Título: boardicon
Enviado por: candidosa2 em 05 de Janeiro de 2008, 23:13
    
theme/BoardIndex.template.php

Pesquisar
Código: [Seleccione]
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';

echo '</a>
</td>

Colocar por baixo
Código: [Seleccione]
';
//Board icons
if($settings['show_icons']==1)
{
echo'
<td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg2" width="32"  align="center" valign="center">
<img src="', $settings['images_url'], '/icon/', $board['board_icon'],'" alt="" />
</td>';
}
echo'

theme/MessageIndex.template.php

Pesquisar por
Código: [Seleccione]
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
<tr>
<td colspan="4" class="catbg">', $txt['parent_boards'], '</td>
</tr>';

trocar por
Código: [Seleccione]
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
<tr>
<td colspan="5" class="catbg">', $txt['parent_boards'], '</td>
</tr>';

Pesquisar por
Código: [Seleccione]
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';

echo '</a>
</td>

Colocar este por baixo
Código: [Seleccione]
';
//Board icons
if($settings['show_icons']==1)
{
echo'
<td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg2" width="32"  align="center" valign="center">
<img src="', $settings['images_url'], '/icon/', $board['board_icon'],'" alt="" />
</td>';
}
echo'

source/BoardIndex.php

Pesquisar por
Código: [Seleccione]
c.name AS catName, c.ID_CAT, b.ID_BOARD, b.name AS boardName, b.description,
b.numPosts, b.numTopics, b.ID_PARENT, IFNULL(m.posterTime, 0) AS posterTime,
IFNULL(mem.memberName, m.posterName) AS posterName, m.subject, m.ID_TOPIC,
IFNULL(mem.realName, m.posterName) AS realName," . ($user_info['is_guest'] ? "
1 AS isRead, 0 AS new_from" : "

Trocar por
Código: [Seleccione]
c.name AS catName, c.ID_CAT, b.ID_BOARD, b.name AS boardName, b.board_icon, b.description,
b.numPosts, b.numTopics, b.ID_PARENT, IFNULL(m.posterTime, 0) AS posterTime,
IFNULL(mem.memberName, m.posterName) AS posterName, m.subject, m.ID_TOPIC,
IFNULL(mem.realName, m.posterName) AS realName," . ($user_info['is_guest'] ? "
1 AS isRead, 0 AS new_from" : "


Pesquisar por
Código: [Seleccione]
// Not a child.
$isChild = false;

$this_category[$row_board['ID_BOARD']] = array(
'new' => empty($row_board['isRead']),
'id' => $row_board['ID_BOARD'],
'name' => $row_board['boardName'],

Colocar por baixo
Código: [Seleccione]
'board_icon' => $row_board['board_icon'],
source/MessageIndex.php

Pesquisar por
Código: [Seleccione]
b.ID_BOARD, b.name, b.description,
Trocar por
Código: [Seleccione]
b.ID_BOARD, b.name, b.board_icon, b.description,
Pesquisar por
Código: [Seleccione]
'new' => empty($row_board['isRead']) && $row_board['posterName'] != '',
'name' => $row_board['name'],

Acrescentar
Código: [Seleccione]
'board_icon' => $row_board['board_icon'],
theme/Settings.template.php

Pesquisar por
Código: [Seleccione]
array(
'id' => 'display_who_viewing',
'label' => $txt['who_display_viewing'],
'options' => array(
0 => $txt['who_display_viewing_off'],
1 => $txt['who_display_viewing_numbers'],
2 => $txt['who_display_viewing_names'],
),
),

ACRESCENTAR
Código: [Seleccione]
array(
'id' => 'show_icons',
'label' => $txt['show_icons'],
),

theme/ManageBoards.template.php

Pesquisar por
Código: [Seleccione]
</tr><tr>';
}

// Options for board name and description.
echo '

Acrescentar
Código: [Seleccione]
<b>', $txt['icon'], ':</b><br />
', $txt['icon_a'], '<br /><br />
</td>
<td valign="top" align="right">
<img src="', $settings['images_url'], '/icon/', $context['board']['board_icon'], '" alt="" />
<input type="text" name="board_icon" value="', $context['board']['board_icon'], '" size="30" />
</td>
</tr>
<tr>

source/ManageBoards.php
Pesquisar por
Código: [Seleccione]
foreach ($boardList[$catid] as $boardid)
{
$context['categories'][$catid]['boards'][$boardid] = array(
'id' => &$boards[$boardid]['id'],
'name' => &$boards[$boardid]['name'],

Colocar por baixo
Código: [Seleccione]
'icon' => &$boards[$boardid]['board_icon'],
Pesquisar por
Código: [Seleccione]
$boardOptions['board_name'] = preg_replace('~[&]([^;]{8}|[^;]{0,8}$)~', '&amp;$1', $_POST['board_name']);
Trocar por este
Código: [Seleccione]
$boardOptions['board_icon'] = preg_replace('~[&]([^;]{8}|[^;]{0,8}$)~', '&amp;$1', $_POST['board_icon']);
Pesquisar por
Código: [Seleccione]
$context['board_order'] = array();
$context['board'] = array(
'is_new' => true,
'id' => 0,
'name' => $txt['mboards_new_board_name'],
'description' => '',

Aumentar por baixo
Código: [Seleccione]
'board_icon' => '',
Pesquisar por
Código: [Seleccione]
$context['board']['name'] = htmlspecialchars($context['board']['name']);
trocar por esta
Código: [Seleccione]
$context['board']['board_icon'] = htmlspecialchars($context['board']['board_icon']);
source/Subs-Boards.php

Pesquisar por
Código: [Seleccione]
// Getting all the board and category information you'd ever wanted.
$request = db_query("
SELECT
IFNULL(b.ID_BOARD, 0) AS ID_BOARD, b.ID_PARENT, b.name AS bName, b.description, b.childLevel,
b.boardOrder, b.countPosts, b.memberGroups, b.ID_THEME, b.override_theme,
b.permission_mode, c.ID_CAT, c.name AS cName, c.catOrder, c.canCollapse
FROM {$db_prefix}categories AS c
LEFT JOIN {$db_prefix}boards AS b ON (b.ID_CAT = c.ID_CAT)
ORDER BY c.catOrder, b.childLevel, b.boardOrder", __FILE__, __LINE__);

e Trocar por
Código: [Seleccione]
// Getting all the board and category information you'd ever wanted.
$request = db_query("
SELECT
IFNULL(b.ID_BOARD, 0) AS ID_BOARD, b.ID_PARENT, b.name AS bName,b.board_icon, b.description, b.childLevel,
b.boardOrder, b.countPosts, b.memberGroups, b.ID_THEME, b.override_theme,
b.permission_mode, c.ID_CAT, c.name AS cName, c.catOrder, c.canCollapse
FROM {$db_prefix}categories AS c
LEFT JOIN {$db_prefix}boards AS b ON (b.ID_CAT = c.ID_CAT)
ORDER BY c.catOrder, b.childLevel, b.boardOrder", __FILE__, __LINE__);

Pesquisar
Código: [Seleccione]
'order' => $row['boardOrder'],
'name' => $row['bName'],
'memberGroups' => explode(',', $row['memberGroups']),
'description' => $row['description'],


Aumentar a Linha
Código: [Seleccione]
'board_icon' => $row['board_icon'],
Pesquisar por
Código: [Seleccione]
if (isset($boardOptions['board_name']))
$boardUpdates[] = 'name = \'' . $boardOptions['board_name'] . '\'';

Colocar
Código: [Seleccione]
if (isset($boardOptions['board_icon']))
$boardUpdates[] = 'board_icon = \'' . $boardOptions['board_icon'] . '\'';

Pesquisar por
Código: [Seleccione]
// Set every optional value to its default value.
$boardOptions += array(
'posts_count' => true,
'override_theme' => false,
'board_theme' => 0,
'access_groups' => array(),
'board_description' => '',

Colocar a Linha
Código: [Seleccione]
'board_icon' => '',
Pesquisar por
Código: [Seleccione]
// Insert a board, the settings are dealt with later.
db_query("
INSERT INTO {$db_prefix}boards
(ID_CAT, name, description, boardOrder, memberGroups)
VALUES ($boardOptions[target_category], SUBSTRING('$boardOptions[board_name]', 1, 255), '', 0, '-1,0')", __FILE__, __LINE__);

Substituir por
Código: [Seleccione]
// Insert a board, the settings are dealt with later.
db_query("
INSERT INTO {$db_prefix}boards
(ID_CAT, name, description, boardOrder, memberGroups, board_icon)
VALUES ($boardOptions[target_category], SUBSTRING('$boardOptions[board_name]', 1, 255), '', 0, '-1,0' , '')", __FILE__, __LINE__);

/languages/index.english.php

Pesquisar
Código: [Seleccione]
?>
Colocar por
Código: [Seleccione]
$txt['icon'] = 'Name of the icon file:';
$txt['icon_a'] = 'Enter the name, with the extension, of the icon you want shown before the category description.';
$txt['show_icons'] = 'Show icons before categories?';

Ou em Pt

languages/index.portuguese.php

Pesquisar
Código: [Seleccione]
?>
e coloque antes
A Traduçao que quer....que esta em En..

Bom trabalho