YAFLogo

Jepper
  • Jepper
  • 62.6% (Friendly)
  • YAF Forumling Topic Starter
16 years ago
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
  • mddubs
  • 100% (Exalted)
  • YAF Developer
16 years ago
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
  • idunno
  • 59% (Neutral)
  • YAF Forumling
16 years ago
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
16 years ago
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
16 years ago
If anybody has an answer to this, that would be pretty amazing. Thanks in advance!
stewartlab
16 years ago
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
  • idunno
  • 59% (Neutral)
  • YAF Forumling
16 years ago
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
16 years ago
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
16 years ago

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.

Jepper wrote:

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
16 years ago
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
16 years ago
So it's easier, but how do we do it?
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
16 years ago
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
16 years ago
That sounds great.

Thank you Jaben

Joel

:-d