andrew55 (@andrew55)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 55 total)

  • andrew55
    Participant

    @andrew55

    yes that sends individual.

    Ok, I guess that’s good news. In that case, maybe I’ll to try to find a function which creates a placeholder/token which can be used in the bbPress emails for the username. If anyone knows of such a thing, please let me know.


    andrew55
    Participant

    @andrew55

    That’s great to hear that you might soon have a solution. I see now why it’s difficult to include a personal greeting.

    I was using “BP Emails for BBP” which seemed to solve that issue, but the plugin wasn’t working right for us.

    Currently, I use “AsynCRONous bbPress Subscriptions” which I think would correct the issue you are referring to, but I’m not 100% sure.

    Thanks for the clarification.


    andrew55
    Participant

    @andrew55

    @robin-w – thank you very much for sharing the “from email” snippet. Works great!

    In reply to: bbpress Like Button

    andrew55
    Participant

    @andrew55

    This might be promising:

    Topic Like Button for bbPress


    andrew55
    Participant

    @andrew55

    Robin – works great. Thank you very much.

    I have a board which has about 20 forum icons, and I’m really looking forward to speeding the site up by switching over to fonts.

    This helps a lot, and I think it will help others also.


    andrew55
    Participant

    @andrew55

    Robin – Thank you very much.

    I have topic icon created in test forum (it’s in 2nd forum):

    homepage

    I’ve tried and tried, but I can’t figure out how to style the font awesome font.

    I need to get it moved down, and I need to get the title and description of forum moved to the right a bit.

    Anyone have a suggestion for how to accomplish this? Or, is there maybe a better way to use Font Awesome fonts as topic icons (template edit, function, etc)?


    andrew55
    Participant

    @andrew55

    Sorry for all the confusion. I was guessing this was a bbPress issue. After digging and digging, I discovered the issue is actually from this plugin:

    You Have a New (BuddyPress) Message

    It appears to be creating the paragraph and break, even when there is no message notice present. This is what’s causing the spacing issue. I really like plugin, so I will experiment to see how I can make it work.

    Also, did you get my email earlier? Just checking!


    andrew55
    Participant

    @andrew55

    Correct. I checked the page again though, and there is no paragraph or break below [bbp-forum-index]

    But of course, I can’t guarantee WordPress isn’t creating something there.


    andrew55
    Participant

    @andrew55

    The paragraph/break was there before the social icons were installed (Super Socializer). It’s just more obvious now.

    I thought paragraph/break was part of bbPress, but maybe I put them in there last year. I’ve been going through theme files and don’t see anything which should cause this.

    The into text and picture of hands is just a widget, which goes away after signup/login. I tested, and this isn’t the issue.

    Any suggestions for this strange issue?


    andrew55
    Participant

    @andrew55

    I found this plugin which seems to do the job:

    Real-Time Find and Replace


    andrew55
    Participant

    @andrew55

    Robin – That’s a powerful plugin. I’ve had it installed for some time. Should be part of bbPress core!

    In plugin, I see where you can change names of roles. This is helpful, but many of our roles are WP roles and custom roles (which I don’t see listed in plugin).

    Any other suggestion on how to change the name of a WP or custom role (just what displays on front-end)?

    For example, if I have a custom role “unsubscribed,” how can I change this to “Inactive”

    Thanks for any help.


    andrew55
    Participant

    @andrew55

    Ok, I see now.

    Yes, it’s a role we are trying to change. We are doing some whacky things with roles. On frontend of bbPress, sometimes we display bbPress roles and sometimes standard WordPress roles.

    I was looking for a method to change how roles are displayed on frontend, without changing the actual name of the role in the database.

    For example, instead of “Participant,” is shows as “New Member”

    Or, instead of “Subscriber,” is shows as “Student”

    Maybe there are different methods to accomplish this for standard WordPress roles and bbPress roles?

    Thanks for any suggestions.


    andrew55
    Participant

    @andrew55

    This is exactly what we need. But when I use this function…

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'Subscriber' ) {
    	$translated_text = 'Member';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );

    …it doesn’t change “Subscriber” to “Member” in profile area or anywhere else.

    Any suggestions on what I can do to get this working?

    Thanks for any help.


    andrew55
    Participant

    @andrew55

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

    I think this will help greatly.


    andrew55
    Participant

    @andrew55

    Thank you very much!


    andrew55
    Participant

    @andrew55

    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

    @andrew55

    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

    @andrew55

    thank you very much.


    andrew55
    Participant

    @andrew55

    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

    @andrew55

    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

    @andrew55

    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

    @andrew55

    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

    @andrew55

    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

    @andrew55

    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

    @andrew55

    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.

Viewing 25 replies - 1 through 25 (of 55 total)