boardicon

Iniciado por candidosa2, 05 de Janeiro de 2008, 23:13

Tópico anterior - Tópico seguinte

0 Membros e 1 Visitante estão a ver este tópico.

candidosa2

    
theme/BoardIndex.template.php

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

echo '</a>
</td>


Colocar por baixo
';
//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
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
<tr>
<td colspan="4" class="catbg">', $txt['parent_boards'], '</td>
</tr>';


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


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

echo '</a>
</td>


Colocar este por baixo
';
//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.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.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
// 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
'board_icon' => $row_board['board_icon'],

source/MessageIndex.php

Pesquisar por
b.ID_BOARD, b.name, b.description,

Trocar por
b.ID_BOARD, b.name, b.board_icon, b.description,

Pesquisar por
'new' => empty($row_board['isRead']) && $row_board['posterName'] != '',
'name' => $row_board['name'],


Acrescentar
'board_icon' => $row_board['board_icon'],

theme/Settings.template.php

Pesquisar por
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
array(
'id' => 'show_icons',
'label' => $txt['show_icons'],
),


theme/ManageBoards.template.php

Pesquisar por
</tr><tr>';
}

// Options for board name and description.
echo '


Acrescentar

<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
foreach ($boardList[$catid] as $boardid)
{
$context['categories'][$catid]['boards'][$boardid] = array(
'id' => &$boards[$boardid]['id'],
'name' => &$boards[$boardid]['name'],


Colocar por baixo
'icon' => &$boards[$boardid]['board_icon'],

Pesquisar por
$boardOptions['board_name'] = preg_replace('~[&]([^;]{8}|[^;]{0,8}$)~', '&amp;$1', $_POST['board_name']);

Trocar por este
$boardOptions['board_icon'] = preg_replace('~[&]([^;]{8}|[^;]{0,8}$)~', '&amp;$1', $_POST['board_icon']);

Pesquisar por
$context['board_order'] = array();
$context['board'] = array(
'is_new' => true,
'id' => 0,
'name' => $txt['mboards_new_board_name'],
'description' => '',


Aumentar por baixo
'board_icon' => '',

Pesquisar por
$context['board']['name'] = htmlspecialchars($context['board']['name']);

trocar por esta
$context['board']['board_icon'] = htmlspecialchars($context['board']['board_icon']);

source/Subs-Boards.php

Pesquisar por
// 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
// 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
'order' => $row['boardOrder'],
'name' => $row['bName'],
'memberGroups' => explode(',', $row['memberGroups']),
'description' => $row['description'],



Aumentar a Linha
'board_icon' => $row['board_icon'],

Pesquisar por
if (isset($boardOptions['board_name']))
$boardUpdates[] = 'name = \'' . $boardOptions['board_name'] . '\'';


Colocar
if (isset($boardOptions['board_icon']))
$boardUpdates[] = 'board_icon = \'' . $boardOptions['board_icon'] . '\'';


Pesquisar por
// 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
'board_icon' => '',

Pesquisar por
// 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
// 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
?>

Colocar por
$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
?>

e coloque antes
A Traduçao que quer....que esta em En..

Bom trabalho