YAFLogo

Posted by: Jepper - Friday, 7 November 2008 04:19:41
Is there a way to have the forums collapsed when one logs in? My default view shows forums expanded when you go to the home page and after you log in.

Posted by: mddubs - Friday, 7 November 2008 05:59:55
That's a good question, I'd also like to know if there's a way this can be done.

Posted by: idunno - Saturday, 8 November 2008 11:55:15
Forgive me, I think its a good question too. I subscribed to this thread too for sure.

Posted by: Jepper - Sunday, 9 November 2008 07:28:54
Just for the record, I am running: YAF version 1.9.1.8 (NET v2.0) Windows Server 2003 IIS 6.0 Theme: Camo1 I did find that for the camo1 theme, the expand.gif name is wrong and should be collapse.gif. Also, collapse.gif name should be expand.gif. I fixed this but it has no effect on the default opening view. My site still opens in expanded view by default. I reversed the order in which "Panel_Expand" and "Panel_Collapse" run with no success. When it comes to code, as you can tell, I am lacking big time. I will continue trying to figure this out. In the meantime, I hope someone more skilled than me will give us some help. Joel :?

Posted by: lefty - Monday, 10 November 2008 10:23:03
If anybody has an answer to this, that would be pretty amazing. Thanks in advance!

Posted by: stewartlab - Monday, 10 November 2008 16:51:35
Just to let you guys know you are going to have to rewrite some main code to get this to work. Unfortunately this is not a javascript call, this is a aspx postback call that is doing a DB query when you click the expand / collapse button. Say in your main forum you want to collapse the 1st category topic the postback call is the Name/ID tag in the Input field. exp:(forum:_ctl1:CategoryList:_ctl1:expandCategory) so when you click on that input button it calls to Forum 1 Category 1 and it wants it to collapse. But when its collapsed it is the same code to expand that category back open. So it is storing it in the database that the category is either open or closed. So if you really want to get this accomplished you are going to have to look at the main source and do a recompile of the dll that is needed. I think it just should be rewritten completely and be done by a javascript script but that is my personal preference

Posted by: idunno - Tuesday, 11 November 2008 03:47:31
wow i dont even own a compiler yet. anybody know where I can get a used one cheap!

Posted by: Jepper - Tuesday, 11 November 2008 07:49:32
This is beyond my skill set for now. I guess expanded view is not too bad afterall. Thanks. Joel

Posted by: Jaben - Wednesday, 12 November 2008 00:53:20
[quote=Jepper]Is there a way to have the forums collapsed when one logs in? My default view shows forums expanded when you go to the home page and after you log in.[/quote] Which version of YAF? I can already tell you it's much easier in YAF v1.9.3 than in v1.9.1.x.

Posted by: Jepper - Wednesday, 12 November 2008 05:09:39
I am running: YAF version 1.9.1.8 (NET v3.0) Windows Server 2003 SP2 IIS 6.0 I need to upgrade to 1.9.3. After doing so, will there be some Javascript that we can modify versus re-writing code, compiling and re-publishing? Thank you for your help, Joel

Posted by: lefty - Wednesday, 12 November 2008 07:35:32
So it's easier, but how do we do it?

Posted by: Jaben - Wednesday, 12 November 2008 13:36:10
There is a way to do it in v1.9.3 -- but it's not simplistic. I think I'm just going to add this to v1.9.3 final -- you can define the initial state of the panel per category.

Posted by: Jepper - Wednesday, 12 November 2008 14:56:51
That sounds great. Thank you Jaben Joel :-d