Skip to:
Content
Pages
Categories
Search
Top
Bottom

Shall I make activity releted content fields as utf_general?

  • Hello Friends,

    I have been testing for while today. Most of the parts are working fine as per my requirements but only hurdle is activity local language is not supporting.

    Ex. If i write a blog in local language then it shows properly but in activity it is not supporting i have checked database also utf is used so it must be some where in the code. plz if any one having idea let me know. im also searching. check out my site http://marathibloggers.com.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Ok got the solution.

    I want to pin point some thing here plz let me know if im going wrong.

    I wanted activity should display in local languages also.

    So i have updated

    1. /bp-activity/bp-activity-templatetags.php

    2. wp_bp_activity_sitewide table

    Updates are as follows.

    1.

    here coz of local language when we create post url getting converted to utf so its long test with sting and special chars that is the reason in the formation of site wide activity sprintf is used so it is not allowing big utf type url.

    In function bp_activity_content_filter

    I commented //$content[0] .= ‘%s';

    and in function bp_activity_insert_time_since

    return sprintf( $content, ‘  ‘ . bp_core_time_since( strtotime( $date ) ) . ‘ ‘ . __(‘ago’, ‘buddypress’) );

    replaced with

    return $content . sprintf( “%s”, ‘  ‘ . bp_core_time_since( strtotime( $date ) ) . ‘ ‘ . __(‘ago’, ‘buddypress’) );

    2. In wp_bp_activity_sitewide table updated content field with utf8_general_ci

    This is for site wide activity to work with local languages. For profile make changes with other tables related to user_activities all other works fine.

    Sounds good – can you submit a patch?

    sure, where exactly i have to submit patch.

    On trac, so create a new ticket that explains the problem and what the patch does to fix, then you can attach the patch file to the ticket:

    http://trac.buddypress.org/newticket

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Shall I make activity releted content fields as utf_general?’ is closed to new replies.