@danbp / https://buddypress.org/support/topic/which-files-create-the-page-titles-site-wide-activity-members-and-groups/#post-203971:
Nobody told you to put bp-loader in the child theme !
My question was:
Where I would have to place my bp-activity-loader.php-Copy?
And your answer was:
If you want to modify template files, you do that with a child-theme and by respecting the same directory structure
So, if your answer was not an answer on my question – what would be then the answer on my question?
—–
However:
Changing words with the translation file is best practice, so you haven’t to modify anything in a core file.
Of course, this would work; but I would not call this a ‘best practice’ – because ‘Neuigkeiten aus dem 1a-Spielwiese-Netzwerk’ is clearly not an a translation of ‘activity’.
And anyway: The page title ‘Members’ and ‘Groups’ are correctly translate within the Decker-translation, which I use:
http://1a-spielwiese.de/wp-content/uploads/2014/10/Members-Page-Title_translated.jpg
and
http://1a-spielwiese.de/wp-content/uploads/2014/10/Groups-Page-Title_translated.jpg
Nevertheless I got displayed in the Frontend ‘Members’ (not: ‘Mitglieder’) and ‘Groups’ (not: ‘Gruppen’), before I changed the core files today:
http://1a-spielwiese.de/wp-content/uploads/2014/10/Page-Titles.jpg
And other users have the same problem:
Ich möchte die Seite gerne komplett in deutsch gestalten, aber egal welche “.mo” Dateien ich ins buddypress/plugin/language Verzeichnis lade, alles ist auf deutsch, nur nicht die Überschriften “Sitewide Activity” “Members” etc.
http://forum.wpde.org/buddypress/58502-bp-1-1-sprache-nicht-komplett-deutsch-2.html#post575160 (09.09.2014, 20:52 h)
With the Cuny profile example here:
http://commons.gc.cuny.edu/members/apicciano/
I am assuming this is a highly customized Buddypress design and was wondering how much work (hours) roughly it would be to create something like this? Does anyone know?
Kris
this is bp jargon… and i wrote
bp-loader.php is a core file
and a template file is a file in or from bp-legacy/buddypress/
Therefore, placing the my bp-activity-loader.php inside my reddle-child/buddypress/bp-activity-folder would not ‘respecting the same directory structure’, rather changing it!
Nobody told you to put bp-loader in the child theme !
If you need to modify a core code, you generally use a custom function to add/remove/modificate the originla function, with help of a action hook for example. Or other technique. This depends for what and where to apply a modification.
The problem with loading scripts in the footer by default is dependency. Take jQuery for example, if WordPress were to load jQuery in the footer by default and a WordPress theme developer then loaded some jQuery-dependent code in the header or body then that jQuery-dependent code wouldn’t work. It’s these considerations the BuddyPress core developers have to make.
@danbp / https://buddypress.org/support/topic/which-files-create-the-page-titles-site-wide-activity-members-and-groups/#post-203962
‘by respecting the same directory structure as in bp-legacy/buddypress/…/file_name.php:’
But the EXAMPLE-loader.php-files are not inside the bp-legacy-folder!
The structure is:
- on the one hand, e.g.: buddypress/bp-actitvity/bp-activity-loader.php
- and on the other hand: buddypress/bp-legacy/buddypress/bp-activity – but there isn’t any bp-activity-loader.php
Within my child-theme-folder the equivalent for buddypress/bp-legacy/buddypress/bp-activity is simply buddypress/bp-activity (!) – or, as you explained there, regarding the members-loop.php:
wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php
To modify this file, you make a copy of it and put it into your child-theme
/your-child-theme/buddypress/members/members-loop.php
Therefore, placing the my bp-activity-loader.php inside my reddle-child/buddypress/bp-activity-folder would not ‘respecting the same directory structure’, rather changing it!
‘Members’ I found in the buddypress/bp-members/bp-members-loader.php
The relevant line there is:
'directory_title' => _x( 'members', 'component directory title', 'buddypress' ),
With ' ' (instead of ‘members’) I’m able to delete the text; but '' (instead of ‘members’) suprisingly produces ‘Mitglieder Verzeichnis’ (in German!) in des Frontend…
—
And the page title ‘groups’ is in the buddypress/bp-groups/bp-groups-loader.php
Changing words with the translation file is best practice, so you haven’t to modify anything in a core file.
If you want to modify template files, you do that with a child-theme and by respecting the same directory structure as in bp-legacy/buddypress/…/file_name.php:
wp-content/themes/your_child_theme/buddypress/…/file_name.php
1000 times explained and detailed on this forum and documented on Codex.
Thank you, @danbp!
I opened the .pot-file finally not with poedit (there I didn’t found any aside-information), rather with an editor. There I got the information, that I can find, e.g., ‘Site-Wide-Activity’ in the buddypress/bp-activity/bp-activity-loader.php.
I changed ‘Site-Wide-Activity’ into ‘Neuigkeiten aus dem 1a-Spielwiese-Netzwerk’ – and it works: 🙂
http://1a-spielwiese.de/activity/
I changed the original file at it’s original place. – Would it work with my child-theme-folder as well? If yes: Where I would have to place my bp-activity-loader.php-Copy?
On the highest level of my child-theme-folder? Inside my buddypress-folder there or inside my buddypress/bp-activity-folder there? Or anywhere else?
sorry to reply this, but all answers to your query are in the links i provided.
i have buddypress who put his scripts not to the footer (wtf ??)
perhaps because BP devs consider it is not necessary ? 😉
If you think it is dummy practice or better to get anything to footer by default, open a ticket and provide some patches. Maybe you can than discuss directly with a dev around the pro and contra for footer scripts.
the best, fastest and easiest way to check for a word used in buddypress is to open the pot file, where you find it aside the file(s) and line number where it is used.
Thank you,everyone.
It’s a difficult problem…
I changed the above keywordlist manually.
buddypress-ja.po
buddypress-ja.mo
But I don’t know that how to check “the header informations”.
like this.
I’m not a computer programmer..
Please tell me ,if you like.
I don’t get Japanese BuddyPress yet.
Thank you.
hi thanks for the rapid response,
so i’m a god dev on wp but i start to bp ant in wp i can put simply the script to the footer with the handle
then what i want to do is to minify and concatenate all js css then gzip it for cache and put all the string in deferer (js)
i have made it in an other web site : http://preuves-par-images.fr/
but now in an other i have buddypress who put his scripts not to the footer (wtf ??) coding dummy put the css in head and js to footer… so my simple question is hos can i put them in the footer ??
thanks in advance ! 🙂
I would like to have customized profile fields that allow me to enter multiple data entries for one field. Could someone point me in the right direction?
Example: On a parenting site, the user profile has ‘Children’ as a field group. Each separate child would be a single field in the field group. For each child you can enter the name and the birthday. This would require the single profile field to have a text field and a date selector in one.
Why: I want to be able to do this to display related information together, but also have the data grouped in a way on the back end that it exports correctly and I can call it as a single unit instead of 2 units per child (In the export you can’t tell the two fields are related, and they often don’t appear next to each other so the information is obscured.)
Notes: There are many work arounds to get it to display as a group of information, I have also tried using Conditional Fields for BuddyPress plugin – BUT I need a solution that groups the information on the back end so that is exports correctly.
Any thoughts? Am I way out of my league here? Thanks in advance!
thanks
here is the code on functions.php
function validate_referrer()
{
global $bp;
global $wpdb;
$referrer = $_POST['field_3'];
$members = $wpdb->get_var("SELECT * FROM wp_users WHERE user_login = '$referrer'");
if (!$members) {$bp->signup->errors['field_3'] = __('Please enter the correct referrer','buddypress');}
}
add_action('bp_signup_validate', 'validate_referrer');
Fresh install of the latest WP 4.0 and BP 2.1 and no other plugins. I have noticed that users can no longer delete their own activity because the delete button is gone. I have tested using twenty thirteen and twenty fourteen themes and I get the same result. However the admin has the delete button and is able to delete all activity. I have checked through BuddyPress’s setting so either I am overlooking something or is there a bug or maybe this is a new change which I personally don’t think is a good idea. Also note I test across several browsers with the same result. Please advise! Thanks!
Regards,
bphelp
Edit:
I should have read this first: https://buddypress.org/support/topic/buddypress-2-1-known-issues/
I suppose since this is a known bug you can close this thread. Sorry!
So the field should contain the user_login of one of the members?
Untested – try this in bp-custom.php.
Put the correct field name in ‘your-field-name’.
function crazy_check_referrer() {
global $bp, $wpdb;
$referrer_field = $_POST['your-field-name'];
$referrer_check = $wpdb->get_var( "SELECT ID from wp_users WHERE user_login = '$referrer_field' ");
if( $referrer_check == NULL )
$bp->signup->errors['your-field-name'] = __('That person was not found','buddypress');
}
add_action('bp_signup_validate', 'crazy_check_referrer');
@hnla / https://buddypress.org/support/topic/different-profile-types-and-different-user-roles-part-ii/#post-201146:
By chance I found the solution regarding the ‘default user role’-issue:
Within the wp-admin-folder there is not only an options-general.php, rather as well an options.php.
Within the comment at the beginning of this file is written: ‘If accessed directly in a browser this page shows a list of all saved options along with editable fields for their values.’
Therefore I adressed this file with 1a-spielwiese/wp-admin/options.php – and there I found the opportunity to change the default user role:
http://1a-spielwiese.de/wp-content/uploads/2014/10/wp-admin-options-php.jpg
After changing it into ‘fan’ (note: it’s not possible to leave the line blank!), on the page options-general.php?page=wp-roles-at-registration it is now possible to select only the roles ‘fan’ and ‘team’:
http://1a-spielwiese.de/wp-content/uploads/2014/10/rar-settings_without_subscriber.jpg
And after saving it, ‘subscriber’ disappears from the registration page as well:
http://1a-spielwiese.de/wp-content/uploads/2014/10/register-page_without_subscriber.jpg
—-
However, these other above mentioned problems:
A. How can I make profile fields, which are asigned only to one member category / user role, ‘required’? Cfr. above.
C. What is the purpose of the penultimate step of the instructions of @noizeburger? – What have I to check for seeing, whether it works or not?
and
D. Why does the last step of the instructions of @noizeburger do not work for me? How can I make the member category / user role unchangeable for my members?
@amalsh / @jonaro / @lebearuk / @kamillamonkey and @jeffacubed:
Do you have any idea regarding this issues?
– cfr. regarding D.: http://kampfsportlerinnenneuwied.1a-spielwiese.de/wp-content/uploads/sites/2/2014/09/user_role_still_changeble.jpg –
are still unresolved.
@danbp
I found the conflict plugin. It is the BuddyPress Like plugin. When I deactivate it I am able to edit the theme. Is there anything to do about it? Or just deactivate for now and than activate on production?
@danbp
I´ve deactivaded BR language and went to dashboard > apparence > menus and open screen options. It is frozen when the buddypress plugins is enabled. When is disabled all works fine.
Hello,
I have recently updated my BP plugin and I saw that it does not have a bp-language file so that I can change messages and text on the plugin, but this version seems to be missing this file !?
(I had my text modified from the core file, but with the update its no more there!! so I was thinking of going this way now but the new version does not have that file !)
any advises ?
Regards …