Support Forum

Forum redirect/forum group view

35 Answers

New Answer

MP Mr Papa
Mr Papa
Member

confused… when I go to http://www.ohhtee.com/forum/ why am I ending up at http://www.ohhtee.com/forum/guests/

seems like you are redirecting guests to the guest forum page… they have to be able to see the group view page to see the forum…

AT Alex T
Alex T
Member

I am not sure why it is doing that.  I noticed ti started doing that when I started messing with the settings.  That just started happening earlier?

AT Alex T
Alex T
Member

I finally figured it out.  I had checked the “Skip group view on single forum sites” in the “Single Forum Sites” tab.  This was stopping me from changing all of this!  I suppose there’s no way of hiding the user group when you have two forums?

MP Mr Papa
Mr Papa
Member

hiding user group? do you mean forum?  if so, correct…  for single forum sites, you can, but with more than one forum, the group is needed or you cant see both forums – as you  were witnessing with the redirect…

AT Alex T
Alex T
Member

How do I get rid of this:

I’m not sure what setting I need check to remove what’s underneath the forum when a guest visits?

YS Yellow Swordfish
Yellow Swordfish
Member

If you mean remove the latest forum post listing then you need to make a small change to one of the forum templates. In this case the spGroupView.php template in the /templates folder of the Simple:Press theme you are using.

Right near the bottom is the call to the display function: sp_RecentPostList() and you will need to simply remove it. Although I would just comment it out as you may one day decide to resurrect it.

As always we recommend that you create your own SP theme or child theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/)

AT Alex T
Alex T
Member

Yellow Swordfish said
If you mean remove the latest forum post listing then you need to make a small change to one of the forum templates. In this case the spGroupView.php template in the /templates folder of the Simple:Press theme you are using.

Right near the bottom is the call to the display function: sp_RecentPostList() and you will need to simply remove it. Although I would just comment it out as you may one day decide to resurrect it.

As always we recommend that you create your own SP theme or child theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/)

Can you explain what you mean by “comment it out”?  Can I just hide it without removing the code?  What would I change in here: sp_RecentPostList(‘show=10’, __sp(‘Unread and recently updated topics’));

IK Ike
Ike
Member

To comment out, you would simply place

/*before the function, and after would come*/

Just like that in fact! That way it will be ignored.

So the line you pasted would become:

/*sp_RecentPostList(‘show=10′, __sp(‘Unread and recently updated topics’));*/

i.e The whole function start to finish. If you are unsure you can always do it like:

/*

sp_RecentPostList(‘show=10′, __sp(‘Unread and recently updated topics’));

*/

AT Alex T
Alex T
Member

Ike said
To comment out, you would simply place

/*before the function, and after would come*/

Just like that in fact! That way it will be ignored.

So the line you pasted would become:

/*sp_RecentPostList(‘show=10′, __sp(‘Unread and recently updated topics’));*/

i.e The whole function start to finish. If you are unsure you can always do it like:

/*

sp_RecentPostList(‘show=10′, __sp(‘Unread and recently updated topics’));

*/

I’m assuming that all I need to do is to remove the /* and */ from the ends to get this function back?  I’ve actually done this, but it breaks the link to the forum for some reason?  Apparently some users were actually using this and have requested for it to be brought back. 

IK Ike
Ike
Member

Yeah, to get the function back just remove the /* from the start, and the */ from the end.

All this does is set anything inside to be ‘ignored’

I’m not surprised some users were using it, it’s a pretty useful function, but I don’t understand how removing it could break anything, which ‘link to the forum’ are you referring to?

AT Alex T
Alex T
Member

Here’s the code now:

 

Here’s the edit:

 

And here’s what happens when I do this:

The forums disappear…