Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Forum redirect/forum group view
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 16, 2014 - 12:34 am

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...

Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Sep 16, 2014 - 12:52 pm

How do I get rid of this:

Image Enlarger

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 16, 2014 - 2:34 pm

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/.....g-a-theme/)

andy-signature.png
YELLOW
SWORDFISH
Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Sep 16, 2014 - 4:56 pm

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/.....g-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'));

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 16, 2014 - 4:59 pm

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’));

*/

Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Sep 16, 2014 - 5:24 pm

Awesome, thanks for all the help! 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 16, 2014 - 10:07 pm

you are welcome!  glad we could help!

Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Sep 19, 2014 - 12:54 pm

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. 

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 19, 2014 - 1:06 pm

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?

Avatar
Alex T
Member
sp_UserOfflineSmall Offline
Sep 19, 2014 - 1:26 pm

Here's the code now:

Image Enlarger

 

Here's the edit:

Image Enlarger

 

And here's what happens when I do this:

Image Enlarger

The forums disappear...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626