BuddyDev

Search

Anonymous plugin – bugs

  • Participant
    Level: Enlightened
    Posts: 30
    Katrine Spencer on #53322

    Hello

    I’m on the final setup of my site and I still have some issues with the Anonymous plugin.

    1. I’m using TranslatePress to translate my site since it’s the only one that really allows for dynamic content.
    I do have some issues with some of the translation not working (at least the one with Anonymous posting into groups).

    2. When someone decides to reply to an update as Anonymous this leaves the username as a link for #, but this is the only place it does this. Everywhere is the name itself is not a link – I would like the link to be removed here too.

    3. In BuddyPress it apprently links to the “conversations” – this is an issue since this looks bad because it’s not configured/compatible with the Anonymous plugin. This means the page itself is missing CSS-styling etc. I would love for activities/updates made by an Anonymous user to not have that link on the post – or then the CSS style to support it so that it looks like the rest.

    Here are some images that you can use.

    https://ibb.co/xfq2kzG
    https://ibb.co/ykgd4tw
    https://ibb.co/fXxQQMf
    https://ibb.co/8zhmFFV
    https://ibb.co/C8NBYst
    https://ibb.co/5MF7Z1S

  • Keymaster
    (BuddyDev Team)
    Posts: 24524
    Brajesh Singh on #53325

    Hi Katrine,
    Thank you for using the plugin and sharing your issues.

    1. Is that the only instance in anonymous plugin which is not being translatable? Have you tried translating/localizing anonymous plugin?

    2. That is to conform with the markup on that page. It should not link to the actual user. Is it linking to the actual user? I am looking into it(assuming it is about group activity comment?)

    3. I am sorry, we lack control over it. It is injected by template pack/BuddyPress and we have ensured that it does not reveal the poster. You will need to manage the css(Most of the default template have the ability to handle activity/p/activity_id) screen. I will explore it again to see if it is feasible to disable link to supply some css(problematic as ever theme have their own way).

    I will get back to you in next 24 hours.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 30
    Katrine Spencer on #53326

    Hi again 🙂

    1. I’ve used both Loco Translate and TranslatePress for the translation, since Loco Translate alone does not have the ability to translate dynamic content (eg. BuddyPress Activity) and TranslatePress does. I did try to edit the strings in both plugins (gettext etc) – but neiher worked for that specific string (only some of the other text worked). It seems like that string alone (when an anonymous user post something into a group) it’s not translated. I don’t see the “mentioned” or any of the other ones even being showcased on the site at all.

    2. It doesn’t link to anything just a blanc page (#) – but still looks wierd that this is the only place where the name itself is “highlighted” as a link and the rest isn’t).

    3. My theme is running on the “old” buddypress template (nouveau) since it haven’t been updated to be compatible with the “new” setup (Legacy). Dosen’t seem to have an impact on the rest of the Anonymous plugin though.. Not sure where the issue is with this one, but would be amazing to actually have that page either removed or working with Anonymous too.

    Thank you, looking forward for your feedback 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 24524
    Brajesh Singh on #53341

    Hi Katrine,
    Thank you for the patience.

    You need to translate this string

    
    %1$s posted an update in the group %2$s
    

    I am not sure how that works with the TranslatePress.

    2. The link:- For activity, we do not have control. I checked that again. There are times when we update it while saving. That has no link. But if we did not do that at the time of creation, we wilter away the user’s url.

    3. We could change the link to single activity post to ‘#’ too. The reason it was left is to allow people read the whole activity. Would you like that to change, Please let me know.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 30
    Katrine Spencer on #53342

    Hi again

    1. I already translated the string in both Loco Translate and the TemplatePress and evverything should be translated, but for some reason it dosen’t “reconize” it and translate it on the frontend on the site. So it must be some “text” somewhere else that is not being picked up by the translation plugins.

    2. That’s wierd, but maybe it has to be highlighted in the BuddyPress forum for a fix? 🙂

    3. Would it b possible to only have this “option” to not have a link on the single activity on the posts that are anonymous – or would it be for every activity post? 🙂

    Thanks 🙂

  • Participant
    Level: Enlightened
    Posts: 30
    Katrine Spencer on #53343

    Hi again..

    I tried deleting the activity post itself that didn’t want to translate (despite clearing cache and everything)..
    When I created the post again it worked with the correct translation. So something seems to have been “stuck” in a cache or something.. But now the translation works. 🙂

    Still need help to figure out the link for the “View Debate” / single actitivy page that is not reading correct with the CSS for Anonymous.. 🙂 Thanks!

  • Keymaster
    (BuddyDev Team)
    Posts: 24524
    Brajesh Singh on #53344

    Hi Katrine,
    Thank you. I am glad the first part did work.

    You may use this code to disable the view discussion for single activity for anonymous activity.

    
    
    /**
     * Disables the view discussion for anonymous activity.
     */
    add_filter( 'bp_activity_permalink', function ( $link, $activity ) {
    
    	if ( function_exists( 'bp_is_anonymous_activity' ) && bp_is_anonymous_activity( $activity->id ) ) {
    		return '';
    	}
    
    	return $link;
    }, 20, 2 );
    
    

    Hope that helps.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 30
    Katrine Spencer on #53345

    Hello again

    This did not work – it just removed the entire header of anonymous posts in general. 🙂

    https://ibb.co/SQBQqXJ

You must be logged in to reply to this topic.

This topic is: not resolved