Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

No threaded view for guesrts by default?

Quote Reply
No threaded view for guesrts by default?
Hello,
I've installed a german version of gforum and all works fine. I've created a guest user and in the setup I switched on the threaded views by default for that user.

If an unknown user is visiting the forum know he should see the threaded view, I thought. But this doesn't work, new user always get the collapsed view...

I only want to use the threaded view as standard-view for the forum...

any ideas?

Kai
___________________________________________
http://www.westalgarve.de
http://www.portugalforum.org
http://www.portugal-links.de
Quote Reply
Re: [kailew] No threaded view for guesrts by default? In reply to
In your GForum admin area, go to "Setup -> Defaults". Right at the bottom, you will see an option "post_display_default", which you can set to "flat" or "threaded".

Ivan
-----
Iyengar Yoga Resources / GT Plugins

Last edited by:

yogi: Sep 16, 2002, 6:14 AM
Quote Reply
Re: [yogi] No threaded view for guesrts by default? In reply to
Hi yogi,
thanks so far, but this solved the problem not completely. Ok, now a guest would view a theme threaded after he opened it.

But I like to have the posts threaded in the forum overview...

I hope you understand what I mean...

Kai
___________________________________________
http://www.westalgarve.de
http://www.portugalforum.org
http://www.portugal-links.de
Quote Reply
Re: [kailew] No threaded view for guesrts by default? In reply to
It seems that the thing you want to do is not possible. I had a quick look at the code, and indeed whether the forum is displayed "collapsed" or "expanded" can only be chosen for users that are logged in. Maybe Jason can add a "forum_default_view" option for the next release.

As a workaround you could change the links in the "category_list.html" template from

gforum.cgi?forum=<%forum_id%>

to

gforum.cgi?forum=<%forum_id%>;<%unless current_user_forum_view%>do=forum_view_expanded<%endunless%>

or something like that (haven't tried this, but looks like it works!).

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] No threaded view for guesrts by default? In reply to
Hi Ivan,
wow ...
I've done your suggested changes and it seems to work fine.

Maybe better to make this an option in the next version, but for the moment it's ok for me

thx a lot

Kai
___________________________________________
http://www.westalgarve.de
http://www.portugalforum.org
http://www.portugal-links.de
Quote Reply
Re: [kailew] No threaded view for guesrts by default? In reply to
Thanks!, I have been looking in on how to do this and here it is! Now, if you can go one step further, is there anyway we can create a variable to set when a guest first hits the category_list.html page so that we don't automatically keep setting him to expanded view?

Something like this:

Code:
gforum.cgi?forum=<%forum_id%>;
<%unless current_user_forum_view %>
<%if guest_first_time_to_cat_list%>
do=forum_view_expanded;
----> set the guest_first_time_to_cat_list to zero <----
<%endif%>
<%endunless%>;
I don't know enough about session variables or how to set a variable but this would be the approach. Can anyone help out here? The guest session variable, guest_first_time_to_cat_list would have to default to non-zero somewhere. I'm guessing current_user_forum_view is only settable if you are registered user?

Last edited by:

mrknowitall: Sep 16, 2002, 10:22 PM