How to limit # of forums displayed under mainpage categories, pagination, collapse ?
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #23
RE: How to limit # of forums displayed under mainpage categories, pagination, collapse ?
(02-09-2012 12:33 PM)akm Wrote:  Should only apply to the homepage category display.
And, yes, would like the homepage to open always with categories in a collapsed view... and, if possible, to go back to the collapsed view if the homepage is refreshed.

If you don't mind the categories will be collapsed when the index is refreshed or every times the index is accessed, you can try this:

functions_forumlist.php, find:

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
if(isset($collapsed[$collapsed_name]) && $collapsed[$collapsed_name] == "display: show;")
{
	$expcolimage = "collapse_collapsed.gif";
	$expdisplay = "display: none;";
	$expaltext = "[+]";
}
else
{
	$expcolimage = "collapse.gif";
	$expaltext = "[-]";
}


Change it to:

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
if(isset($collapsed[$collapsed_name]) && $collapsed[$collapsed_name] == "display: show;")
{
	$expcolimage = "collapse.gif";
	$expaltext = "[-]";
}
else
{
	$expcolimage = "collapse_collapsed.gif";
	$expdisplay = "display: none;";
	$expaltext = "[+]";
}


Personally (only my personal opinion), I prefer to do a template edit (maybe forumbit_depth1_cat) by using a javascript toggle things, like accordion and etc.


02-10-2012 01:26 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: How to limit # of forums displayed under mainpage categories, pagination, collapse ? - RateU - 02-10-2012 01:26 AM

 Standard Tools
Forum Jump: