Jepper
  •  Jepper
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2008-11-07T03:19:41Z
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.
Sponsor
mddubs
2008-11-07T04:59:55Z
That's a good question, I'd also like to know if there's a way this can be done.
UserPostedImage 
www.bunkerhollow.com  | www.careercomputing.com 
When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )
idunno
2008-11-08T10:55:15Z
Forgive me,
I think its a good question too.

I subscribed to this thread too for sure.
Jepper
  •  Jepper
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2008-11-09T06:28:54Z
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
:?

lefty
  •  lefty
  • 54.2% (Neutral)
  • YAF Forumling
2008-11-10T09:23:03Z
If anybody has an answer to this, that would be pretty amazing. Thanks in advance!
stewartlab
2008-11-10T15:51:35Z
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
idunno
2008-11-11T02:47:31Z
wow

i dont even own a compiler yet.

anybody know where I can get a used one cheap!
Jepper
  •  Jepper
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2008-11-11T06:49:32Z
This is beyond my skill set for now. I guess expanded view is not too bad afterall.

Thanks.

Joel





Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2008-11-11T23:53:20Z
Jepper wrote:

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.


Which version of YAF? I can already tell you it's much easier in YAF v1.9.3 than in v1.9.1.x.
Jepper
  •  Jepper
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2008-11-12T04:09:39Z
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
lefty
  •  lefty
  • 54.2% (Neutral)
  • YAF Forumling
2008-11-12T06:35:32Z
So it's easier, but how do we do it?
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2008-11-12T12:36:10Z
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.
Jepper
  •  Jepper
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
2008-11-12T13:56:51Z
That sounds great.

Thank you Jaben

Joel

:-d

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved