latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Hide topics from bbPress' Recent Topic widget

Home Forums Community Forum Hide topics from bbPress' Recent Topic widget

This topic contains 4 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years, 2 months ago.

Topic Author Topic
Posted: Thursday Oct 18th, 2012 at 9:29 pm #28955
Katie Wang
Username: evevera

Thanks,

Another question:

I have bbpress forum installed, is there a way to restrict topics from showing within the Recent Topic widget that users don’t have access to?

I can filter the forums using attach_s2member_query_filters() but the topics still show since they are not protected.

I’m also using custom capability instead of roles to separate the members.

List Of Topic Replies

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Friday Oct 19th, 2012 at 9:41 am #29003

Hmm… I was going to suggest trying to protect the topics with the URI restriction, until you mentioned being using ccaps instead of levels.

I guess you’ll need to create a hack that checks what forum the topic is in, then check if the user has access to that, and apply it to the topic.

Posted: Friday Oct 19th, 2012 at 5:17 pm #29068
Katie Wang
Username: evevera

Yea I did that, except I found out that if i use Alternate View Protection or attach_s2member_query_filters(), the first post of any bbpress thread doesn’t show up for some reason.

Is there a fix for that?

Posted: Saturday Oct 20th, 2012 at 9:00 am #29132

No, no idea. I haven’t used bbPress myself, or that widget, so I’ve never tried hacking it or found that problem yet.

Could you post the hack you tried, with all the info you can give, so someone with bbPress that is familiar with this may help you? Once you post that, I can then also ask Jason if he can spot from it why you may have that problem.

Thanks!

the first post of any bbpress thread doesn’t show up for some reason.

Where does the first post not show up? In the topic itself or in the widget?

Posted: Saturday Oct 20th, 2012 at 9:04 am #29133
[info_box]
I split the latest replies into their own thread, since they’re on a different topic than the original conversation.
[/info_box]
Viewing 4 replies - 1 through 4 (of 4 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.