php forum
php mysql forum
php mysql smarty
 
Topic Options
#312332 - 12/25/06 03:07 AM [7.x] [Beta] Increase # of subforum displayed
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Hi,

If you wish to increase the number of subforums being displayed on the main forum list....

Edit \scripts\cfrm.inc.php

Change

if ($count > 3) break;

to

if ($count > 10) break;

Or whatever figure you require. The number displayed will be 1 higher than the number above.

Mine is 70 - but then I am not normal wink
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#312334 - 12/25/06 04:01 AM Re: [7.x]To increase number of subforums displaying... [Re: Ian_W]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
Keep in mind, in logical terms 0 is a number, thus 0 = 1; so it's not nessessarily one more than the inputted number, simply your number +1 wink...

I didn't even realise that there was such a check built in; but then again I don't use subforums much frown
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#312338 - 12/25/06 10:24 AM Re: [7.x]To increase number of subforums displaying... [Re: Ian_W]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Thanks Ian smile
_________________________
- Allen wavey
- What Drives You?

Top
#313275 - 02/25/07 07:58 PM Re: [7.x]To increase number of subforums displaying... [Re: AllenAyres]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 85
Loc: UK
Works for me 7.1 smile

Top
#313296 - 02/28/07 09:45 AM Re: [7.x]To increase number of subforums displaying... [Re: Mark_S]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 85
Loc: UK
7.1

It works as expected on the main forum page,
but if your subforums have more than 4 subforums they dont show?

Main Page as Ian says
Edit \scripts\cfrm.inc.php

Its about line 396
No need to change the '3' a few lines further down as that
only changes when ....... (dots will be displayed.)


==================================
Changing the sub sub forums Display
Edit \scripts\postlist.inc.php
Line : 352

if ($count > 3) break;
Change to if ($count > 5) break;

Now 6 sub sub forums show up instead of only 4

0 is equal to 1 wink
0,1,2,3,4,5 = 6

Working fine for me.

Top
#313298 - 03/01/07 05:04 AM Re: [7.x]To increase number of subforums displaying... [Re: Mark_S]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Oh okay - thanks.

None of my sub-forums have more than 2 sub-forums - so didn't pick this up smile

_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top


Moderator:  sirdude 
Who's Online
2 registered (arentzen, blaaskaak), 27 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks