News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

[SOLVED] Childboard counting

Started by jeroenenagnes, November 24, 2008, 05:03:08 AM

Previous topic - Next topic

jeroenenagnes

Hi,

I've got a mainboard with a couple of chilboards.
On the index site i would like that you see after each chilboard the number of posts inside. Should look like (1), (19), etc.
Now it only shows the name and post are added to the total count of the mainboard.


Jeroen.

Marcus Forsberg

If you hover the childboards name you see topics and posts.

jeroenenagnes

Yes i know that thank you.
But i wan't that it is visible when you see the index.
Users won't go hovering over all childboards.


Jeroen.

Marcus Forsberg

./Themes/default/BoardIndex.tempalte.php

Find:

$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';

Replace whit:
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a> (' . $child['posts'] . ')';

jeroenenagnes

Wow, that works great.
Thank you for your quick response!


Jeroen.

Marcus Forsberg


Advertisement: