andrew55 (@andrew55)

Forum Replies Created

Viewing 25 replies - 26 through 50 (of 67 total)
  • @andrew55

    Participant

    I tested and it seems to work great. Thank you very much.

    I think this will help greatly.

    @andrew55

    Participant

    Thank you very much!

    @andrew55

    Participant

    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.

    @andrew55

    Participant

    This 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?

    @andrew55

    Participant

    thank you very much.

    @andrew55

    Participant

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

    @andrew55

    Participant

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

    @andrew55

    Participant

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

    @andrew55

    Participant

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

    @andrew55

    Participant

    Got 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>";
    }
    ?>

    @andrew55

    Participant

    This 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?

    @andrew55

    Participant

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

    @andrew55

    Participant

    kachan64 – 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 CAPS

    @andrew55

    Participant

    I tested this plugin: FriendlyCase

    And unfortunately, it doesn’t seem to be compatible with bbPress.

    @andrew55

    Participant

    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.

    @andrew55

    Participant

    @robkk – thanks for the clarification.

    @andrew55

    Participant

    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.

    @andrew55

    Participant

    This is exactly the same issue I found. So I guess it’s not just some strange issue on our site.

    Thanks for your efforts.

    @andrew55

    Participant

    My 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!

    @andrew55

    Participant

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

    @andrew55

    Participant

    Thanks for the tip!

    @andrew55

    Participant

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

    @andrew55

    Participant

    Got it – This seems to work for showing the first role:

    <?php
    $user = new WP_User( bbp_get_reply_author_id() );
    echo $user->roles[0];
    ?>

    @andrew55

    Participant

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

    @andrew55

    Participant

    Got it: loop-single-reply.php

Viewing 25 replies - 26 through 50 (of 67 total)