How to limit # of forums displayed under mainpage categories, pagination, collapse ?
akm Offline
Member
***
Posts: 115
Joined: Nov 2011
Post: #13
RE: How to limit # of forums displayed under mainpage categories, pagination, collapse ?
(02-07-2012 10:44 AM)ZiNgA BuRgA Wrote:  
(02-05-2012 10:56 AM)akm Wrote:  Where to start looking for info on 'tab modifications' ?
http://duckduckgo.com/?q=forum+tabs+site%3Amybb.com

Thank you for the 'tabs' info.
Am really leaning toward the 'collapse' idea.
Found a thread at MyBB...
http://community.mybb.com/archive/index....http://community.mybb.com/archive/index.php/thread-
...that think talked about using cookies for the collapse/explode thing.
Also found below code at global.php...

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// set up collapsible items (to automatically show them us expanded)
if($colcookie)
{
	$col = explode("|", $colcookie);
	if(!is_array($col))
	{
		$col[0] = $colcookie; // only one item
	}
	unset($collapsed);
	foreach($col as $key => $val)
	{
		$ex = $val."_e";
		$co = $val."_c";
		$collapsed[$co] = "display: show;";
		$collapsed[$ex] = "display: none;";
		$collapsedimg[$val] = "_collapsed";
	}
}

...which have no idea about.
Firefox lists the used cookies including 'collapse' (scrnshot attached).
Assume it is created by the above code ?
Also assume it covers all collapsible fields, so would need to somehow specify the 'categories' only to be collapsed by default.
Obviously just grasping for straws at this point.
Know very little about cookies code, period.
Does the cookie thing sound like the direction to go for the default 'category' idea ?
If so, good place to look for info on how to work with cookies code for categories (other than the above MyBB thread) ?



Attached File(s) Thumbnail(s)
   

Thanks again for your help !
02-07-2012 04:40 PM
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 ? - akm - 02-07-2012 04:40 PM

 Standard Tools
Forum Jump: