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 ?
As far as I know, there is no feature like that.
ACP > Configuration > Settings > Homepage settings > 2nd box
Is that what you need?
(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...
[
attachment=688]
When look at source on this forum get...
Code:
<div class="pagination">
<span class="pages">Pages (8):</span>
<span class="pagination_current">1</span>
<a class="pagination_page" href="forumdisplay.php?fid=31&page=2">2</a>
<a class="pagination_page" href="forumdisplay.php?fid=31&page=3">3</a>
<a class="pagination_page" href="forumdisplay.php?fid=31&page=4">4</a>
<a class="pagination_page" href="forumdisplay.php?fid=31&page=5">5</a>
... <a class="pagination_last" href="forumdisplay.php?fid=31&page=8">8</a>
<a class="pagination_next" href="forumdisplay.php?fid=31&page=2">Next »</a>
</div>
|
Will keep looking.
Ps: and thanks for getting me to correct forum.
(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:
/**
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\">« {$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} »</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.
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.
(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.
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.
(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' ?
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.