Forum Replies Created
-
see here if it can help you:
https://buddypress.org/support/topic/bp-wordpress-activity-stream-excerpt-problem/#post-202047
Am i working on the right file ? No.
Also, hacking core files is not best practice. And give bp version and theme name please.In reply to: [Resolved] How to disable bp-legacy cssYes i understand (i’m also using a bootstrap theme), you can do like you want. But don’t claim after that that BP doesn’t work correctly.
BuddyPress css file contain only styles he need for itself. If your theme doesn’t obey to BP, you have to adapt the theme throught a child theme. This will also preserve BP’s compatibility with other themes.
Imagine you have to debug something while using a modified BP or what will happen if you decide to use another theme…
Keep also in mind that BP evolves more rapidly as most of themes. So IMHO it’s better you keep BP intact and alter the theme (if absolutely necessary because of a conflict – and unknow so far). And i don’t think that BP can’t be used with a bootspraped theme.
In reply to: Deleting Single PhotosWhich photo are you talking about ?
In reply to: [Resolved] How to disable bp-legacy cssi’m afraid that BuddyPress need this css file.
In reply to: Security – Hidden groupsit depends on how you use bbpress ! As standalone forum or as group forum.
If you use buddypress’s group forums, you create a hidden group which will be only seen by the members who belongs to it and nobody else.
If you use bbpress outside of BP as standalone forum, you can use Private Groups plugin.
Remember also that Everything in a BuddyPress community revolves around its members.
you jumped into an over 18 mounths old thread titled How To Limit/Hide The “Friends” Tab and you speak about translation….
Please open a new topic and give details about your issue, BP version and theme.In reply to: Add Button In Members Directoryguess you have better to ask the plugin author.
In reply to: Buddypress loginadd the bbpress login widget into the sidebar.
there is a more elegant way to style SWA excerpt.
The display css trick hides only things on frontend, for humans, but the data is still in the source. So if you don’t want to use it, you can also remove it from the logic, to spare a little server ressource, at least.For 2.0 and above, use these sinppets from within functions.php or bp-custom.php
Filters the length (default length is 225 char)
Reference: bp-core/bp-core-template.php:541function bpfr_custom_length( $excerpt_length) { $excerpt_length = '200'; // change value to your need return $excerpt_length; } add_filter( 'bp_activity_excerpt_length', 'bpfr_custom_length', 10, 1);Append text filter
function bpfr_custom_append_text( $append_text) { $append_text = 'your append text here'; return $append_text; } add_filter( 'bp_activity_excerpt_append_text', 'bpfr_custom_append_text', 10, 1);In reply to: [Resolved] Can't change landing page for groupsThis snippet is working.
- Is your functions.php correctly formated ?
- XYZ is a fake name. You have to enter one of your group name. As it is a slug format, it is also case sensitive.
- Set wp_debug on “true” in wp-config and see if you get error messages
In reply to: Customise the group home viewIn fact you need a plugin that could read in your user’s brain and will show them immediatly what they dreaming about in time. 😉 Come back in 68 years, 2 weeks and 3 days, maybe will have a beginning of such a solution.
Activity pages (group, profile, site) are filtrable and if this is not enough, you can also show another tab in place of the “home” landing tab.
Don’t think to much that We live in a world of one click and zero patience. This perhaps applies to less than 2% of the world’s population.
In reply to: php error logi believe that wp_icl_strings is related to a multilingual plugin, like wpml or buddypress-multilingual.
Deactivate it and see what happen.
Comment in bp-messages-loader.php
/** * Implementation of BP_Component for the Messages component. * * @since BuddyPress (1.5.0) */ class BP_Messages_Component extends BP_Component { /** * If this is true, the Message autocomplete will return friends only, unless * this is set to false, in which any matching users will be returned. * * @since BuddyPress (1.5) * @var bool */ public $autocomplete_all;So yes it is implemented since BP 1.5
By default you get only suggestion of your friends names. You can get all user names, by adding this to your bp-cutom.php file
define( 'BP_MESSAGES_AUTOCOMPLETE_ALL', true );But never use this constant if you have hundreds of user ! (imagine the length of such a list !)
In reply to: [Resolved] Translation for SpanishYou’re welcome. Glad you got it ! 😉
In reply to: Problems with "pending" tabHum… have you activated pretty permalinks ? This is made by chosing one of the permalink option, except default, in the WP permalink settings.
Does your host allow multisite ?
Have you added the htaccess code after network activation ?See also this related topic.
In reply to: php error logIs this a riddle ? When you get an error, you must say what you did and whith what !
BP version, theme, plugin. Thx.In reply to: [Resolved] Translation for SpanishYes it is weird ! And it is not a buddypress issue but a translation issue.
The glotpress po file is uncomplete and contains many errors.
Not sure if it can have an influence on the automatted language upload, but the header is missing the language parameter. (@r-a-y, @boone)I first tested it “as is” and got same errors as you.
I applied patch #5887… nothing
I used the function mentionned by @r-a-y… nothing
I added the mo into suggested /wp-content/languages/plugins/buddypress/bp-languages/buddypress-es_ES.mo… nothingSo i went back to my original config and used the same settings i usually use for my fr_FR BP version (/wp-content/languages/plugins/buddypress-es_ES.mo)… nothing !
WTF ? 👿 #grumbl…@?/;rrrrr !
So i decided to make a new po by updating the one found on glotpress. (i’m working with poEdit)
This resulted in around 1300 (a little more) new lines and over 100 deprecated lines… and a lot of approximative strings….In these approx, i found groups, activity and all other strings you mentionned not getting translated. I simply reverted them to valid and bam, the translation worked.
I suggest the following:
- revert back to standard config (no language patch, no language custom functions, no extra language folder) and po/mo in wp-content/languages/buddypress-xx_XX.mo
- download the po from glotpress
- open the file with a text editor and remove the header and replace it with this one:
msgid "" msgstr "" "Project-Id-Version: BuddyPress 2.1\n" "POT-Creation-Date: 2014-09-26 13:34+0100\n" "PO-Revision-Date: 2014-09-26 14:19+0100\n" "Last-Translator: \n" "Language-Team: \n" "Language: es_ES\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;" "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;" "esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n" "X-Textdomain-Support: yes\n" "X-Poedit-Basepath: .\n" "X-Generator: Poedit 1.5.7\n" "X-Poedit-SearchPath-0: ..\n"- create a folder in BP called bp-languages-ES (or whatever)
- add the po to this folder
- open the file with poEdit
- update the catalog from source
Now you can see all untranslated lines, the one who are approximative and the one who are already translated.
At this stage, the file is translated to 53% and you’ll have to translate around 770 strings (of 2668).
You also have to check each string containing count variables like %s or %1$s (many are old and must be modified). You’ll find also some plural strings. This is particulary true for approximative strings, who may be similar to the english phrase, but aren’t. Needs good eyes and slow checking ! 😉
Once finished, save your work and copy the mo file into the appropriate language folder:
/wp-content/languages/plugins/buddypress-es_ES.mo (if you want to use your custom translation only)
/wp-content/languages/buddypress-es_ES.mo – if you want automagical 👿 glotpress updates (when avaible, complete and without errors of course).In reply to: [Resolved] Translation for Spanishjust checked the bp po file from glotpress. The file contains an error which may mo not working correclty, but I have to investigate more indeep as this doesn’t solve the problem.
In reply to: [Resolved] Translation for SpanishDon’t you like answering questions ?
It will became difficult to help you if you don’t. 🙄In reply to: [Resolved] Translation for Spanishthe url you provided gives Página en Construcción ! We’re unable to login for the moment.
What is your theme, which plugins do you use ?
And if you use a cache, clear it before applying changes.In reply to: How to display user friends?This is already implemented.
profile > friends
In reply to: Can not post updatesAre you logged in when trying to post an update ?
Are you member of the group you want to post an update ?
Can you post an update on site wide activity ?
Can you post an update on YOUR profile ?In reply to: Activity feed Error when clicking on "comment"which theme do you use ?
Make also a test with 2014 theme.In reply to: Problems with "pending" tabhave you activate members syncing in bp settings ?
have you activate a page to each component of bp ?