Forum Replies Created
-
In reply to: cover-image missing when overloading CSS folder
Add this inside the header, just after Template Version
@import url("../name of the parent theme/style.css");and give a try.May work… or not. It does with “usual” themes like Twenty Sixteen. But for a framework like Genesis, i ignore if it would. And as yo use a premium framework theme, see the theme doc or contact the genesis support. We can’t help much with such issues, except if somebody using the same theme would be able to answer.
In reply to: [Resolved] Allow html in xprofile fields@djpaul ‘s advice is wise !
But you could try following which doesn’t compromise your security and will avoid the sky falling on your head !First remove the filter hack, we don’t need it.
Then built your drop-down list and add only the site name instead the whole URL.
For example,
– create a new field
– call it Test drop down
– enforce visibility
– disallow clickable
– add some options: buddypress.org, wordpress.org
– save
Go to your profile > edit and choose buddypress.org. Save.
You see now buddypress.org on your profileNow we have to make this text clickable and linked to bp.org
For this, you can use this snippet, placed in bp-custom.php
function bpfr_set_checkbox_output( $field_value ) { // ensure xprofile is activated if ( bp_is_active( 'xprofile' ) ) // call the field $bp_this_field_name = bp_get_the_profile_field_name(); // field name (case sensitive) if( $bp_this_field_name == 'Test drop down' ) { // here we change site name to url $field_value = str_replace('buddypress.org' ,'http://buddypress.org', $field_value); $field_value = str_replace('wordpress.org' ,'http://wordpress.org', $field_value); } // fire the result! return $field_value; } add_filter( 'bp_get_the_profile_field_value', 'bpfr_set_checkbox_output' );In reply to: Full Width Profile PagesHi,
your site is pwd protected, so i removed the link to it.
You can do that by CSS from within your child-theme style.css
As it is not only BuddyPress css, but also dependent of your theme, you have to check for the correct classes and id’s to use.1) we hide first the sidebar on the profile.
2) we enlarge the content part to full width (100%)On each BP page is a page-id-{number}. You need it to define the style for this page only.
As example, this is working with Twenty Sixteen
/* remove sidebar */ body.page-id-0 aside#secondary { display: none; } /* enlarge content to full width */ body.page-id-0 div#primary{ background-color: yellow; width: 100%!important; }In reply to: how to create a my profile menu itemSorry, whithout the code snippet you use to add your menu, it is not possible to answer correctly.
In reply to: cover-image missing when overloading CSS folderTry to forget the bp child css folder and simply add your custom rules to child/style.css
Just in case of, can you provide the /child/style.css header you use and the theme name ?In reply to: General question for editing BP pages1) & 2) /activity controls the site activities, while /members/single/activity/ controls the members activity tab on profile.
3) plugins/buddypress/bp-templates/bp-legacy/ and plugins/buddypress/bp-templates/bp-themes/
/bp-legacy/ contains /buddypress/ the current version templates.
/bp-theme contains /bp-default/, the historical BP theme (since 2007). This theme is relatively frozen and remains just for backcompatibility, in case some vintage coders continue to use it.Since BP 1.9, you can use almost any existing WP theme, so far it is respecting wp theming standarts.
4) each component has a header. The respective files are in bp-legacy/buddypress/
/members/single/
/groups/single/
Here can find a list of functions/filters/hooks related to cover (bp 2.4.3)5) impossible to say, as it depends of the instructions ! Can you give a link ?
In reply to: cover-image missing when overloading CSS folderHi,
you add only custom css rules to /child/buddypress/css/buddypress.css
You don’t neeed to copy the whole original content to child. This avoid also to duplicate code.
Files contained in child have priority over theme.
In other terms what is not found in child (php, htlm, js, css) will be taken from the original source.
In some cases, when you create a custom css rule, you need to add!important, like this:
color: #000!important;By the way, you give high priority to the rule and you’re sure it is always interpreted.And of course, you need to triple check what you code. CSS rules with missing semicolon, or who aren’t closed can generate issues, from not be applied to blank pages…
In reply to: My profil link on menu header with submenuHi,
that’s a wordpress question (related to
wp_nav_menu_items).See WP Codex for answers:
Many similar related topics also on BuddyPress forum. Ie. :
https://buddypress.org/support/topic/how-to-get-notification-count-code/In reply to: Online StatusHi,
check the code you used for “16 minutes ago”. You will find it in the buddypress-de_DE.po file. Normally, you should have
%s ago -> vor %s. If you omit % or s, the string won’t be translated.If it’s not a typo error of yours:
– where is this untranslated “ago” string showing ? Site activity, profile, widget, other ?– do you use a specific “buddypress” theme ?
– does the issue remain when using the “official” translation file ? If not, download it here (po & mo). Don’t forget to remove your version before adding the original one into wp-content/languages/plugins/
In reply to: [Resolved] Allow html in xprofile fieldsHi,
try first with
add_action( 'bp_init', 'blah...' );You may also have to ensure you use the correct filter to remove. Those are listed in:
bp-xprofile/bp-xprofile-filters.phpIn reply to: Resquesting about button in widgetHi,
give details if you expect help !
Which widget are you talking about ?
“course” is not part of BuddyPress. Plugin name ? Theme ?In reply to: how to create a my profile menu item[Moved to another forum by OP request]
You can try this snippet which will add the link to main menu (aside About, Home etc):
function my_nav_menu_profile_link($menu) { if (!is_user_logged_in()) return $menu; else $profilelink = '<li><a href="' . bp_loggedin_user_domain( '/' ) . '">' . __('My Awesome Profile') . '</a></li>'; $menu = $menu . $profilelink; return $menu; } add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' );Another way to do this is explained in this topic.
@r083r7,
glad you got it to work ! 😉
Not sure if it is a theory or simply how it works, but deactivating/reactivating (plugins, themes) will in most case recalculate the permalinks.In reply to: need help for cover photoIn reply to: Registration validation based on profile fieldIn reply to: Groups on Buddy pressHi,
if you mean mailing blog posts to members and if you use BuddyPress only for it’s group component, you have better to use WP Groups plugin. You don’t need BP.
if you mean group notices, you can code something yourself or use this plugin or this one and send the post permalink to the group users.
Not exactly what you asked for, but i have no better idea.
For the phone question, i’ve never heard about such an app.
In reply to: Customize Confirm Registration EmailIn reply to: How to hide / remove the General tab under Settingshi @sherissa_r,
i asked on Slack where @hnla answered that “clearly something is wrong”. I opened a ticket, just in case of.Now we’ve to wait a little moment the time a dev can investigate this.
In reply to: [Resolved] Site Wide Activity Streamtry by adding
$retval['per_page'] = 50;Codex reference
In reply to: repair activity stream does not workHallo,
i guess you need to test a new activity first before saying it doesn’t work.
Now that you changed the topic slug, publish a new topic and see if it comes up on SWA.Activities are registered in real time. It’s an history and in this, it is not refreshed recursively.
You can test this also by reverting the site language to english. Publish something in english and this publication will appear in english on SWA.
Revert back to german, publish something in german. It will appear in german and the previous activity will remain in english. 🙂
Same behave when you use a plugin which generate an activity. You will see it on SWA. Uninstall the plugin and his activity will still be in.As you mentionned topics, you could try the forum repair tool ?
wp-admin/tools.php?page=bbp-repairIn reply to: Text or redirecting custom message past registrationHi,
can be done from within the language file, if you want the message to be full part of the success message.
The original string is here: bp-templates/bp-legacy/buddypress/members/activate.php:43
Your account was activated successfully! Your account details have been sent to you in a separate email.or if you want to show persistent instructions, you can use one of the hooks available on the activation page:
bp-templates/bp-legacy/buddypress/members/activate.phpThis will need a function like these:
function my_registration_message() { echo 'My message text'; } add_action( 'bp_before_activate_content', 'my_registration_message' );You can use same function to show a custom message on the register page, in wich case you use one of the existing hook in
bp-templates/bp-legacy/buddypress/members/register.phpFor ex.
add_action( 'bp_before_register_page', 'function_name' );In reply to: [Resolved] bp-reshare filter name for the loopHi,
see here:
and a today’s example here:
https://buddypress.org/support/topic/site-wide-activity-stream/In reply to: [Resolved] Site Wide Activity StreamTry this:
function bpfr_filtering_activity( $retval ) { if ( bp_is_page( 'activity' ) ) { // activities to filter on, comma separated $retval['action'] = 'new_forum_post, new_forum_topic'; } return $retval; } add_filter( 'bp_before_has_activities_parse_args', 'bpfr_filtering_activity' );In reply to: How to hide / remove the General tab under SettingsIs it possible to have the contents of the Email tab load automatically?
Afaik no. While testing the snippets, i discovered that none of the tab show his content when you remove the General tab. I ignore if it is a bug (and doubt it is one) or intended so. In fact, profile settings are not intented to be removed, but that’s pure theory. 🙂
The funny news is that i can display the content of third party plugins who share the profile settings tab with BP. Conclusion: BP hide the whole settings content, but other plugins can still use it.
Strange and not user friendly – and never mentionned on this forum so far i know. But i must admit it is an exceptionnal case.Maybe calling @djpaul or @dcavins to this topic can bring another opinion ? I go to mention this on Slack immediatly, so hopefully we will be quicly fixed.
Wait and see ! 🙂
Glad you got it ! We all learned a day from our mistakes… 😉