Support » Plugin: Invite Anyone » Tags being truncated when sending invites

  • I have a BuddyPress site using this plugin but the emails aren’t working properly. The line “To accept this invitation, please visit…” truncates the accept URL tag to “PTURL%%” killing the link back to the site.

    Any ideas why this might be happening? It’s getting truncated no matter which email template field I put it in, so it seems like it’s probably something in the plugin’s templating engine.

    Any help would be greatly appreciated.

    TIA

    Plugin v 1.3.16
    WP v4.7.3
    BP v2.8.2

    This is a multisite install, but I think that’s normal for Buddypress, no?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m having the same issue as @fotan

    WP v4.7.3
    BP v2.8.2
    Plugin v1.3.16

    This isn’t a multisite install.

    If I edit the footer text, returning it to %%ACCEPTURL%%, and save it. It shows fine but after navigating away to another section of the site and coming back, it shows as PTURL%% in the footer text again.

    If I try that with a single percentage sign (%ACCEPTURL%), the truncation results in CEPTURL%

    • This reply was modified 2 years, 9 months ago by alanmccann.
    • This reply was modified 2 years, 9 months ago by alanmccann.

    I found a temporary solution that worked for me and involved editing the plugin

    
    /invite-anyone/admin/admin-panel.php:
      652  			case 'default_invitation_message' :
      653  			case 'addl_invitation_message' :
      654: 				if ( function_exists( 'sanitize_textarea_field' ) ) {
      655: 					$value = sanitize_textarea_field( $value );
      656  				}
      657  			break;
    

    changed to

    
    /invite-anyone/admin/admin-panel.php:
      652  			case 'default_invitation_message' :
      653  			case 'addl_invitation_message' :
      654                           $value = $value;
      655: 				//if ( function_exists( 'sanitize_textarea_field' ) ) {
      656: 				//	$value = sanitize_textarea_field( $value );
      657  				//}
      658  			break;
    

    And that seems to work. I hesitate creating a pull request as I don’t know wordpress well enough to understand what ‘sanitize_textarea_field’ is doing.

    • This reply was modified 2 years, 9 months ago by alanmccann.

    One more issue: The number of allowed invitations keeps getting reset to 1 no matter what I set it to. I can’t figure this one out.

    follow

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Tags being truncated when sending invites’ is closed to new replies.