Forum Replies Created
-
In reply to: disable bbp email sending for custom role?
I tested and it seems to work great. Thank you very much.
I think this will help greatly.
In reply to: disable bbp email sending for custom role?Thank you very much!
In reply to: disable bbp email sending for custom role?Robin, thank you very much for the reply.
We do have dozens and dozens of unsubscribes a week, sometimes more, due to the size of our community. It would take too much to adjust settings for users individually.
I did check out plugin. In description of plugin, it says “No email sending to blocked users”
This could be promising. I installed it but don’t see a setting for this feature. Maybe plugin does this automatically? I will try to find out from plugin author.
I was thinking I could give users I need to block a WP role in membership script such as “unsubscribe”
Then, I could easily set all these users to “blocked” as bbp role (through mass action). If emails don’t go out to blocked users, this might work.
In reply to: excerpt for bbpress topic meta descriptionThis would be powerful. Would really help boost SEO to get all those meta descriptions pulled from topics, replies, etc. Any experts out there have a solution? Maybe a function to point the meta description at the content of topics, replies, etc?
In reply to: show only if it applies to reply authorthank you very much.
In reply to: show only if it applies to reply authorOK, forget my additional code. Can someone please let me know what snippet (just for bbBress) to show something only in the profile area of the reply author, only if it applies to them.
In other words: “show if it applies to this specific reply author.”
I’ve edited loop-single-reply.php with great results for similar features.
Thanks for any suggestions.
In reply to: show only if it applies to reply authorI don’t mean to ramble, but I think the solution will be something such as:
if (Am_Lite::getInstance()->haveSubscriptions(364) && ($reply_user_id($topic_id) ))
I just add bbpress statement to my already existing “if” statement using an “And” operator.
I’m just getting caught up on the bbpress part.
Any suggestions on what the bbpress code would be to “just show for the author of this reply?”
Thanks for any help.
In reply to: show only if it applies to reply authorI seems like this should work, but it doesn’t:
<?php if (bbp_get_reply_author_id($reply_id)) { ?> my other code goes here <?php } ?>
It seems like it should wrap my code with a statement of “show only for the author of this reply” but it’s not working like this.
Any suggestions on what the code would be to “just show for the author of this reply?”
Thanks for any help.
In reply to: Help With aMember Integrationtvirtual – did you ever get this resolved? Sounds like you need to be using the aMember login form, not bbPress login form.
I have integrated the two scripts nicely and would be glad to help (if you still need it). aMember support through tickets is also top notch.
In reply to: add custom link under author link in repliesGot it! This seems to work:
<?php $reply_user_id = bbp_get_reply_author_id(); global $wp_roles; $reply_user = new WP_User( $reply_user_id ); $roles = $reply_user->roles; $role = array_shift($roles); if ($role == 'graduate' ){ echo "<a href='http://www.mysite.com/page2/'>Graduate</a>"; } ?>
In reply to: add custom link under author link in repliesThis also seems like it should work to me:
<?php $user = new WP_User( bbp_get_reply_author_id() ); if ($role == 'Graduate' ){ echo "<a href='http://www.mysite.com/page2/'>Graduate Link</a>"; } ?>
But it’s still not showing link in replies for uses who have “graduate” role. Any suggestions?
In reply to: add custom link under author link in repliesThis is the best I’ve come up with so far, but it’s not working yet. Seems like this should work properly. It’s still getting printing the link in profile area in the replies:
<?php $reply_user_id = bbp_get_reply_author_id(); global $wp_roles; $reply_user = new WP_User( $reply_user_id ); $roles = $reply_user->roles; $role = array_shift($roles); if ($user_role == 'graduate') { echo "<a href='http://www.mysite.com/page2/'>Graduate Link</a>"; } ?>
Thanks for any suggestions on how to get it right.
In reply to: add custom link under author link in replieskachan64 – thank you. That is a good start. My main issue at this point seems to be that roles I’m using aren’t bbpress roles, so how I need to pull them is different. I will keep working at it.
In reply to: reformatting ALL CAPSI tested this plugin: FriendlyCase
And unfortunately, it doesn’t seem to be compatible with bbPress.
In reply to: Hide forum post content in activity streams?Actually, this isn’t working right. I prevents any topic/replies from being posting on activity walls at all. I guess it’s back to the drawing board.
I’m wondering if this might do it – putting a div class around the topic/reply content in the template files of bbPress, and then only hiding this div in BuddyPress. But then I’m thinking it might result in the same issue – nothing topic/replies show in activity wall at all.
In reply to: Hide forum post content in activity streams?@robkk – thanks for the clarification.
In reply to: Hide forum post content in activity streams?I’m still testing, but I think this does it:
.activity-list li.bbp_topic_create .activity-content .activity-inner, .activity-list li.bbp_reply_create .activity-content .activity-inner { display: none !important; }
It shows bbPress forum titles in BuddyPress activity streams, but not content of the reply/post.
Hope this helps anyone who might need it.
In reply to: Showing freshness of replies in forumsThis is exactly the same issue I found. So I guess it’s not just some strange issue on our site.
Thanks for your efforts.
In reply to: Showing freshness of replies in forumsMy guess is that this has to do with the forums being imported from phpBB? Since import, when a new topic is created or replied to, I notice it’s freshness is accurate.
So I guess I’ll just hide the freshness until we get some more activity (just so members don’t get confused). I’m still very very happy with bbPress!
In reply to: Showing freshness of replies in forumsSure: https://www.lifeleap.org/community/
For example, at the bottom forum (Metaphysical Healing), it says the last activity was 2 years, 9 months ago. But if you open forum, you will see last activity was very recent.
In reply to: need help with strange sticky behaviourThanks for the tip!
In reply to: need help with strange sticky behaviourHey – thanks for at least looking into it. If that’s the worst limitation of bbPress, I have no complaints!
I was just asking here because I thought there might be a simple solution. I guess I could hire a coder and post the fix back here.
In reply to: Displaying User role beside their repliesGot it – This seems to work for showing the first role:
<?php $user = new WP_User( bbp_get_reply_author_id() ); echo $user->roles[0]; ?>
In reply to: Displaying User role beside their repliesI’m very happy to have found this – very useful.
Question – any suggestions on how to adjust the code to where subscribers can also view the role of other users.
Thanks for any help.
Got it: loop-single-reply.php