ciao! volevo sapere se esiste un modo per non far vedere nella board index le child boards.
mi spiego meglio: vorrei che non venisse neanche segnalato sotto la board principale. Semplicemente una persona potrebbe vederle solo entrando nella board principale... è possibile?
grazie!
Non ho avuto tempo di testarlo quindi lo devi fare tu.
in BoardIndex.template.php devi eliminare questa parte di codice:
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}
echo '
<tr>
<td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
<span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
</td>
</tr>';
Prova e fammi sapere :)
io come theme ho Dilber MC quindi la parte finale del codice che mi hai segnalato è diversa.. ho provato a eliminare quella che mi sembrava corrispondente ma poi dice che non riesce a caricare la pagina.. non so se sbaglio io o non funzioni.
visto che ci sono vorrei anche chiederti se sai come spostare la posizione dell'avatar nel post, mi piacerebbe metterlo proprio sotto il nome.. grazie ancora.
Quote from: BenniBoo on July 19, 2006, 08:39:52 AM
io come theme ho Dilber MC quindi la parte finale del codice che mi hai segnalato è diversa.. ho provato a eliminare quella che mi sembrava corrispondente ma poi dice che non riesce a caricare la pagina.. non so se sbaglio io o non funzioni.
visto che ci sono vorrei anche chiederti se sai come spostare la posizione dell'avatar nel post, mi piacerebbe metterlo proprio sotto il nome.. grazie ancora.
Non utilizzo quel tema quindi dovresti in base alle mie indicazioni relative al tema di default trovare la parte di codice adatta.
Per l'avatar stessa cosa in Display.template.php , per trovarne la posizione cerca 'avatar' .
Quote from: Yakuza on July 19, 2006, 07:19:05 AM
Non ho avuto tempo di testarlo quindi lo devi fare tu.
in BoardIndex.template.php devi eliminare questa parte di codice:
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}
echo '
<tr>
<td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
<span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
</td>
</tr>';
Prova e fammi sapere :)
da errore :(