BuddyDev

Search

Replies

  • Participant
    Level: Guru
    Posts: 794
    Tosin on #48865

    ok thanks Brajesh,

    I have disabled it, please kindly let me know if there will ever be a replacement or update for the medium editor.

  • Participant
    Level: Guru
    Posts: 794
    Tosin on #48850

    Hi Brajesh

    After further testing I noticed that the encoding issue only occurs when publishing or editing with the buddyblog medium editor.

    After deactivating the buddyblog medium editor, everything works fine and there are no more encoding issues.

  • Participant
    Level: Guru
    Posts: 794
    Tosin on #48837

    I just found out its an encoding problem that can occur on old post when database has been migrated,

    I tried this code but it did not work

    function fix_weird_characters() {
        global $wpdb;
        $replacements = array(
            '“' => '“',
            '”' => '”',
            '’' => '’',
            '‘' => '‘',
            '—' => '–',
            '–' => '—',
            '•' => '-',
            '…' => '…'
        );
        foreach ($replacements as $key => $value) {
            $query = $wpdb->prepare(
                "UPDATE {$wpdb->posts} SET post_content = REPLACE(post_content, %s, %s)",
                $key,
                $value
            );
            $wpdb->query($query);
        }
    }
    add_action('wp_loaded', 'fix_weird_characters'); 
  • Participant
    Level: Guru
    Posts: 794
    Tosin on #48831

    Thanks Brajesh

    Illbe looking forward to the next update

  • Participant
    Level: Guru
    Posts: 794
    Tosin on #48795

    Thanks for the feedback

    So if this is not scalable, then its better I stick to your advise as am planning or a large community platform

  • Participant
    Level: Guru
    Posts: 794
    Tosin on #48784

    By default new users are subscribers but their role changes to contributor on first login, so I want to hide all activities of subscribers who have never logged in.

    Inactive users are subscribers
    Active users are contributors

  • Participant
    Level: Guru
    Posts: 794
    Tosin on #48783

    Thanks Ravi

    I have tested the latest version which works perfectly so this issue is now resolved.

  • Participant
    Level: Guru
    Posts: 794
    Tosin on #48769

    Gentle reminder sir

    Thanks

  • Participant
    Level: Guru
    Posts: 794
    Tosin on #48643

    (alphabetical) works by default with or without it, I have also tried online, newest, random and popular which are all not working.

    I also made sure to clear my cache everytime

  • Participant
    Level: Guru
    Posts: 794
    Tosin on #48630

    I also have this code

     function open_external_links_in_new_tab_bp_activity( $query_string, $object ) {
      if ( $object != 'activity' ) {
        return $query_string;
      }
      ?>
      <script type="text/javascript">
      var links = document.getElementsByTagName("a");
      for (var i = 0; i < links.length; i++) {
        var link = links[i];
        if (link.hostname != window.location.hostname) {
          link.target = "_blank";
        }
      }
      </script>
      <?php
      return $query_string;
    }
    add_filter( 'bp_ajax_querystring', 'open_external_links_in_new_tab_bp_activity', 10, 2 );