News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Child Boards

Started by BenniBoo, July 19, 2006, 06:49:20 AM

Previous topic - Next topic

BenniBoo

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!

Yakuza

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 :)
In all honesty, the past is the past and problems happen all the time. It's how we deal with it that's important. - Joseph Fung

English: Please don't ask for support on my mods in PM or MSN/ICQ, use the right board. Thank you.
Italiano: NON fornisco supporto tecnico via PM o MSN/ICQ, scrivete nel forum adatto e se posso aiutarvi rispondo con piacere.

BenniBoo

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.

Yakuza

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' .
In all honesty, the past is the past and problems happen all the time. It's how we deal with it that's important. - Joseph Fung

English: Please don't ask for support on my mods in PM or MSN/ICQ, use the right board. Thank you.
Italiano: NON fornisco supporto tecnico via PM o MSN/ICQ, scrivete nel forum adatto e se posso aiutarvi rispondo con piacere.

sunless

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  :(

Advertisement: