Advertisement:

Author Topic: [SOLVED] Childboard counting  (Read 1800 times)

Offline jeroenenagnes

  • Semi-Newbie
  • *
  • Posts: 56
[SOLVED] Childboard counting
« on: November 24, 2008, 05:03:08 AM »
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.
« Last Edit: November 24, 2008, 05:45:36 AM by jeroenenagnes »

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: Childboard counting
« Reply #1 on: November 24, 2008, 05:13:48 AM »
If you hover the childboards name you see topics and posts.

Offline jeroenenagnes

  • Semi-Newbie
  • *
  • Posts: 56
Re: Childboard counting
« Reply #2 on: November 24, 2008, 05:21:38 AM »
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.

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: Childboard counting
« Reply #3 on: November 24, 2008, 05:27:24 AM »
./Themes/default/BoardIndex.tempalte.php

Find:

Code: [Select]
$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:
Code: [Select]
$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'] . ')';

Offline jeroenenagnes

  • Semi-Newbie
  • *
  • Posts: 56
Re: Childboard counting
« Reply #4 on: November 24, 2008, 05:45:17 AM »
Wow, that works great.
Thank you for your quick response!


Jeroen.

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: [SOLVED] Childboard counting
« Reply #5 on: November 24, 2008, 05:46:15 AM »
No problem :)