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
Hide "Unread and recently updated topics" at bottom of forum?
Avatar
Halo Diehards
Member
Free Members
sp_UserOfflineSmall Offline
Oct 14, 2014 - 8:33 pm

I see a list of "Unread and recently updated topics" at the bottom of my forums when viewing in guest mode and as a regular member, but not as a moderator. I've been all through settings and can't for the life of me find out how to turn that off. Can someone please help? Thanks! :D

Edit: I guess it's not an option? I might be able to hide it with css but would like a better way.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 14, 2014 - 8:55 pm

actually quite easy... in your group view template file, just change:

        sp_RecentPostList('show=10', __sp('Unread and recently updated topics'));

to

     if ($spThisUser->moderator) sp_RecentPostList('show=10', __sp('Unread and recently updated topics'));
Avatar
Halo Diehards
Member
Free Members
sp_UserOfflineSmall Offline
Oct 15, 2014 - 7:11 pm

Ok, thanks. But since I'm not familiar yet with messing around with SP child themes or inserting php or however I would do this so it wouldn't disappear on an update, I opted to go the css route. (Might come back later and try to do it right)

Anybody else interested in that css, it works to put this in your WordPress child theme's css:

#spMainContainer #spRecentPostList {
  display: none !important;
}
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 15, 2014 - 8:23 pm

if you created a child theme or your own sp theme as we always recommend, you would not lose any changes...

Avatar
jlinnation
CA
Member
Free Members
sp_UserOfflineSmall Offline
Oct 17, 2014 - 3:01 am

Awesome.  Thanks!

Was easier than I thought it would be.  Looks much more cleaner for those who aren't registered.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 17, 2014 - 4:24 am

Great you got it sorted as you want it.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Halo Diehards
Member
Free Members
sp_UserOfflineSmall Offline
Oct 20, 2014 - 1:51 pm

Unfortunately, my fix is not a fix at all. This css also hides the recent posts when you click on your notifications and go to the recent-posts-specific url from there. Since it is the same WordPress page id, it can't be ruled out that way. The only difference is the url, as far as I can see (in regards to css id's). So I'm not sure if this can be hidden with css after all.

Mr Papa said
if you created a child theme or your own sp theme as we always recommend, you would not lose any changes...

 

Ok. Worked up the guts to try the child theme again. Started from scratch and copied the entire group view template php into it, made the changes Papa posted up there in post #2. That's how to do it, right? It seems to have worked, although my recent posts images are all as if the posts have already been read. Hoping that's some sort of re-set thing that happened because I changed themes and not something else?

Avatar
Halo Diehards
Member
Free Members
sp_UserOfflineSmall Offline
Oct 20, 2014 - 3:05 pm

Yeah, to add to that above post ^ just got another new post and it's looking like the child theme change causes the "new post" image to not show on the notification page. It still shows on the forum page and in the forum itself, on the thread. It was showing before I did this "fix", any ideas what's going on here?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Oct 20, 2014 - 4:06 pm

Yes that is the way to do it. If it's a CSS change you only need the changed rules in the stylesheet as it will load them individually, if it's a template, you will need (I think) to have the entire template in your child theme - with changes made.

I'm pretty sure all the code change does is only allow it to be viewed by a moderator. When you made the child theme did you copy over the images folder? If you haven't customised any of these icons you don't need them in your child theme.

Other than that I'm not sure.. Which page are you referring to by 'notification page'? Are we talking about the 'this forum has unread posts' button in the group view?

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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