How to limit # of forums displayed under mainpage categories, pagination, collapse ?
akm Offline
Member
***
Posts: 115
Joined: Nov 2011
Post: #1
Question How to limit # of forums displayed under mainpage categories, pagination, collapse ?
Where to find info on how to limit the number of forums displayed under each category at the main page display ?

ACP appears to have thread display number limits, but couldnt find forum display limits... missed something as usual ?

Thanks again for your help !
(This post was last modified: 02-05-2012 06:05 AM by akm.)
02-02-2012 03:43 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: How to limit # of forums displayed under categories at main page ?
As far as I know, there is no feature like that.

02-03-2012 02:29 AM
Find all posts by this user Quote this message in a reply
Zenk Offline
Junior Member
**
Posts: 27
Joined: Nov 2011
Post: #3
RE: How to limit # of forums displayed under categories at main page ?
ACP > Configuration > Settings > Homepage settings > 2nd box

Is that what you need?
02-03-2012 02:37 AM
Find all posts by this user Quote this message in a reply
akm Offline
Member
***
Posts: 115
Joined: Nov 2011
Post: #4
RE: How to limit # of forums displayed under categories at main page ?
(02-03-2012 02:37 AM)Zenk Wrote:  ACP > Configuration > Settings > Homepage settings > 2nd box
Is that what you need?

Thank you for the reply and suggestion.

If understand, you are referring to below ?

ACP » Board Settings/Forum Home Options: Subforums to show on Index listing

Think am looking for main forum list instead of subforum list ?

Never tried creating 'subforums', so not sure how that works.
(02-03-2012 02:29 AM)RateU Wrote:  As far as I know, there is no feature like that.

Thank you for the followup !

Was afraid of that.

Guess was thinking of something like next "pagination"thing...

   

When look at source on this forum get...

Code:
1
2
3
4
5
6
7
8
9
10
<div class="pagination">
<span class="pages">Pages (8):</span>
<span class="pagination_current">1</span>
<a class="pagination_page" href="forumdisplay.php?fid=31&amp;page=2">2</a>
<a class="pagination_page" href="forumdisplay.php?fid=31&amp;page=3">3</a>
<a class="pagination_page" href="forumdisplay.php?fid=31&amp;page=4">4</a>
<a class="pagination_page" href="forumdisplay.php?fid=31&amp;page=5">5</a>
... <a class="pagination_last" href="forumdisplay.php?fid=31&amp;page=8">8</a>
<a class="pagination_next" href="forumdisplay.php?fid=31&amp;page=2">Next »</a>
</div>


Will keep looking.
Ps: and thanks for getting me to correct forum.


Thanks again for your help !
(This post was last modified: 02-03-2012 04:48 AM by akm.)
02-03-2012 03:54 AM
Find all posts by this user Quote this message in a reply
akm Offline
Member
***
Posts: 115
Joined: Nov 2011
Post: #5
RE: How to limit # of forums displayed under categories at main page ?
(02-03-2012 03:54 AM)akm Wrote:  
(02-03-2012 02:29 AM)RateU Wrote:  As far as I know, there is no feature like that.
Thank you for the followup !
Was afraid of that.
Guess was thinking of something like next "pagination"thing...
Will keep looking.
(02-03-2012 03:54 AM)akm Wrote:  Guess was thinking of something like next "pagination" thing...
Will keep looking.

Found this for 1.6 ACP pagination, could it work for homepage...

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/**
092	 * Draw pagination for pages in the Admin CP.
093	 *
094	 * @param int The current page we're on
095	 * @param int The number of items per page
096	 * @param int The total number of items in this collection
097	 * @param string The URL for pagination of this collection
098	 * @return string The built pagination
099	 */
100	function draw_admin_pagination($page, $per_page, $total_items, $url)
101	{
102	    global $mybb, $lang;
103	     
104	    if($total_items <= $per_page)
105	    {
106	        return;
107	    }
108	 
109	    $pages = ceil($total_items / $per_page);
110	 
111	    $pagination = "<div class=\"pagination\"><span class=\"pages\">{$lang->pages}: </span>\n";
112	 
113	    if($page > 1)
114	    {
115	        $prev = $page-1;
116	        $prev_page = fetch_page_url($url, $prev);
117	        $pagination .= "<a href=\"{$prev_page}\" class=\"pagination_previous\">&laquo; {$lang->previous}</a> \n";
118	    }
119	 
120	    // Maximum number of "page bits" to show
121	    if(!$mybb->settings['maxmultipagelinks'])
122	    {
123	        $mybb->settings['maxmultipagelinks'] = 5;
124	    }
125	     
126	    $max_links = $mybb->settings['maxmultipagelinks'];
127	 
128	    $from = $page-floor($mybb->settings['maxmultipagelinks']/2);
129	    $to = $page+floor($mybb->settings['maxmultipagelinks']/2);
130	 
131	    if($from <= 0)
132	    {
133	        $from = 1;
134	        $to = $from+$max_links-1;
135	    }
136	 
137	    if($to > $pages)
138	    {
139	        $to = $pages;
140	        $from = $pages-$max_links+1;
141	        if($from <= 0)
142	        {
143	            $from = 1;
144	        }
145	    }
146	 
147	    if($to == 0)
148	    {
149	        $to = $pages;
150	    }
151	 
152	 
153	    if($from > 2)
154	    {
155	        $first = fetch_page_url($url, 1);
156	        $pagination .= "<a href=\"{$first}\" title=\"Page 1\" class=\"pagination_first\">1</a> ... ";
157	    }
158	 
159	    for($i = $from; $i <= $to; ++$i)
160	    {
161	        $page_url = fetch_page_url($url, $i);
162	        if($page == $i)
163	        {
164	            $pagination .= "<span class=\"pagination_current\">{$i}</span> \n";
165	        }
166	        else
167	        {
168	            $pagination .= "<a href=\"{$page_url}\" title=\"{$lang->page} {$i}\">{$i}</a> \n";
169	        }
170	    }
171	 
172	    if($to < $pages)
173	    {
174	        $last = fetch_page_url($url, $pages);
175	        $pagination .= "... <a href=\"{$last}\" title=\"{$lang->page} {$pages}\" class=\"pagination_last\">{$pages}</a>";
176	    }
177	 
178	    if($page < $pages)
179	    {
180	        $next = $page+1;
181	        $next_page = fetch_page_url($url, $next);
182	        $pagination .= " <a href=\"{$next_page}\" class=\"pagination_next\">{$lang->next} &raquo;</a>\n";
183	    }
184	    $pagination .= "</div>\n";
185	    return $pagination;
186	}

Also posted the question at http://community.mybb.com/thread-112767.html , but nothing there yet.
Maybe, like you suggested, there is no way to do it.
Sure would help though.


Thanks again for your help !
02-03-2012 11:13 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #6
RE: How to limit # of forums displayed under categories at main page, pagination ?
That won't help you.
This is somewhat difficult to implement.

Realistically, one would question why you want pagination.  You should probably be categorising your forums more if you have too many of them.
And clicking is far less user friendly than scrolling, so you don't gain much from that.  Note that this form of hiding also makes stuff like search more difficult to use.

My Blog
02-03-2012 03:12 PM
Find all posts by this user Quote this message in a reply
akm Offline
Member
***
Posts: 115
Joined: Nov 2011
Post: #7
How to limit # of forums displayed under mainpage categories, pagination, collapse ?
(02-03-2012 03:12 PM)ZiNgA BuRgA Wrote:  That won't help you.
This is somewhat difficult to implement.
Realistically, one would question why you want pagination.  You should probably be categorising your forums more if you have too many of them.
And clicking is far less user friendly than scrolling, so you don't gain much from that.  Note that this form of hiding also makes stuff like search more difficult to use.

Thank you, good point.
Will take a look a the sub-forums idea to minimize the homepage scrolling.
Challenge is, for this site purpose, have (now) 2 categories which ideally need a couple dozen or so forums under each, and then maybe another couple dozen sub-forums.
Maybe could categorize more, but either way there may be a lot of categories with forums under, to scroll down through at homepage.
Trying to strike a balance between too much scrolling and the way it is displayed up front.

Question...
Could it be possible to make the homepage open with categories normally collapsed, and then expand them to see the forums under ?
Make expand and collapse button/function very obvious, so users could easily see what they need to do to see the forum list under each category ?
Guess just wondering if possible, so know whether to look into further.

Thanks again for your help !
(This post was last modified: 02-05-2012 06:07 AM by akm.)
02-05-2012 04:20 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #8
RE: How to limit # of forums displayed under mainpage categories, pagination, collapse ?
There's a bunch of forum tab modifications if you're interested.
But seriously, I prefer scrolling and I believe it to be much more user friendly as it's much easier to do whether you're on a PC, laptop or phone.

My Blog
02-05-2012 10:29 AM
Find all posts by this user Quote this message in a reply
akm Offline
Member
***
Posts: 115
Joined: Nov 2011
Post: #9
RE: How to limit # of forums displayed under mainpage categories, pagination, collapse ?
(02-05-2012 10:29 AM)ZiNgA BuRgA Wrote:  There's a bunch of forum tab modifications if you're interested.
But seriously, I prefer scrolling and I believe it to be much more user friendly as it's much easier to do whether you're on a PC, laptop or phone.

Thank you for the confirmation and thoughts !
Its definitely a balancing act.
In this case it would be only 1-click (try to make as obvious as possible) and then scrolling for the rest of the trip.
Will also be running a prototype past some (very critical) folks to see what they think.
Where to start looking for info on 'tab modifications' ?

Thanks again for your help !
(This post was last modified: 02-05-2012 10:57 AM by akm.)
02-05-2012 10:56 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #10
RE: How to limit # of forums displayed under mainpage categories, pagination, collapse ?
Tabs only seems reasonable for rol games forums and alike, as many users who go there ofter, already know where their place is or whatnot.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
02-05-2012 03:09 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: