Search Results for 'theme'
-
AuthorSearch Results
-
September 30, 2016 at 7:14 am #259267
In reply to: [Resolved] Account Details Profile Details Merging
danbp
ParticipantHi,
have you correctly set up the child theme ?
You can test the CSS by adding it directly to your theme csss file (just while testing). If it works there, it should work in the child. If not, you have a problem with the child.It could also be that you use a theme who give you the opportunity to add custom css via the theme settings page. If it is the case, you add the css there.
You can also try by adding !important to each rule. Ie.
font-size: 15px!important;September 30, 2016 at 2:58 am #259260In reply to: [Resolved] Account Details Profile Details Merging
metalhead
ParticipantThanks very much guys!
One last question: If I go for the css trick, which css file is associated with register.php?
I have a child theme, and I tried adding the code to the .css file in the root of the child theme folder, but that didn’t work.
September 29, 2016 at 7:24 pm #259247In reply to: Whats new tinymce not showing HTML inline styles
danbp
ParticipantDo you mean html
<style>tag or inline css style ?The form is texturized and use wp_kses filter. To allow some html tags (at your own risk), you can use such a function:(in bp-custom or child theme functions.php)
function bpfr_notice_allowed_tags( $activity_allowedtags ) { $activity_allowedtags['p'] = array(); $activity_allowedtags['strong'] = array(); $activity_allowedtags['s'] = array(); return $activity_allowedtags; } add_filter( 'bp_activity_allowed_tags', 'bpfr_notice_allowed_tags' );September 29, 2016 at 10:36 am #259224simon1970
Participant@henrywright Thanks, yes I would like to be able to use translation files and have tried in the past too but for some reason I can’t get them to work. I suspect it might have something to do with BeTheme as this theme has caused me lots of issues in the past. I will probably try to get to the bottom of it again sometime but for now I’m really glad I got the templates working anyway π
September 29, 2016 at 8:36 am #259216In reply to: What theme does buddypress dot org use?
Henry Wright
ModeratorI’ve tested BuddyPress on Twenty Fifteen and Twenty Sixteen recently, both work great. Outside of those 2 themes you’ll have many choices but my best advice would be to set up a testing site and try out before you go live.
Hope this helps.
September 29, 2016 at 7:42 am #259212In reply to: BuddyPress pages style issues
danbp
ParticipantHi,
color scheme’s are usually defined by the theme. Positioning elements needs some ID’s or class correctly defined and a medium knowledge for HTML & CSS handling.
if you create a child theme, you can change a lot of things related to BuddyPress, including CSS.
Read through the theme guidelines on BP Codex to get a general overview and check also the documentation of your theme.
Unfortunately, you use a premium theme and, as we have no access to his code, we can’t assist you more for it. Any questions related to it should be asked on your theme support.
But don’t hesitate to search the BuddyPress forum using keywords like css, template and so on…
September 28, 2016 at 9:44 pm #259203In reply to: [Resolved] Activity stream – removing information
shanebp
ModeratorManually delete the existing entries.
Place this in your theme/functions.php or in bp-custom.php to prevent creation of new entries.function bp_activity_do_not_save( $activity_object ) { $exclude = array( 'updated_profile', 'new_member' ); if( in_array( $activity_object->type, $exclude ) ) $activity_object->type = false; } add_action('bp_activity_before_save', 'bp_activity_do_not_save', 10, 1 );September 28, 2016 at 4:41 pm #259201In reply to: What theme does buddypress dot org use?
GeekGal
ParticipantThanks. That goes a little bit beyond what I was looking for. Was hoping just for a theme. Do you recommend any reliable stable themes for buddypress? Thanks.
September 28, 2016 at 3:16 pm #259198In reply to: BuddyPress Favorites in
danbp
ParticipantSorry, I haven’t tested the plugin i mentionned. You’re right it doesn’t show a button but simply display favorites differently.
OK, here is a snippet you can add to bp-custom.php which will add a Favorite button to blog posts.
Note
the function works with currrent BP version (2.6.2).
The grey side of this solution is that you have to use a child-theme and to tweak a little the way the button will show. This is very theme dependant and would not be used the same way if you use ie. Twenty Sixteen or ie. Graphene.While using 2016, you can simply echo the button on the template.
If you use a more complex theme, you could probably use an existing action hook of the theme. This means that you need a function who hooks into such a predefined placeholder.In any case, the file to modify is your theme’s single.php. Copy it into the child theme to get:
/wp-content/themes/child-theme/single.phpIf you don’t see any do_action( ‘something’ ), you add the following in an appropriate place:
echo get_fav_or_unfav_button_for_post( $post );
Certainly inside the post loop, and probably below the post and before the comments.If you see some action hooks in single.php, you add this function to bp-custom:
function fav_buttons() { echo get_fav_or_unfav_button_for_post( $post ); } add_action( 'graphene_before_comment_template', 'fav_buttons' );You need to change
graphene_before_comment_templateto the action name used by your theme.add_action( 'graphene_before_comment_template'Hope to be clear.
And here the function for the button:
function get_fav_or_unfav_button_for_post( $post ) { global $bp, $activities_template, $post; // only show the button to logged-in users if ( ! is_user_logged_in() ) { return ''; } $activity_id = bp_activity_get_activity_id( array( 'user_id' => $post->post_author, 'type' => 'new_blog_post', 'component' => 'blogs', 'item_id' => 1, // blog_ID 'secondary_item_id' => $post->ID // post_ID ) ); if ( ! $activity_id ) { return ''; } bp_has_activities(); // update $activities_template with user's favs $old_value = false; if ( isset( $activities_template->activity->id ) ) { $old_value = $activities_template->activity->id; $activities_template->activity->id = $activity_id; } else { $activities_template->activity = (object) array( 'id' => $activity_id ); } // build the template $code = ''; $code .= '<div class="activity-meta">'."\n"; if ( ! bp_get_activity_is_favorite() ) { // if not favorited, add a "Favorite" button $code .= ' <a href="'.bp_get_activity_favorite_link( ).'" class="button fav bp-secondary-action" title="Add to my favorites">Favorite</a>'."\n"; } else { // else, add "Unfavorite" button $code .= ' <a href="'.bp_get_activity_unfavorite_link( ).'" class="button unfav bp-secondary-action" title="Remove from my favorites">Unfavorite</a>'."\n"; // Bonus button: "View all my favorites" $code .= ' <a href="'.bp_loggedin_user_domain() . 'activity/favorites/" class="button unfav bp-secondary-action">View all my favs</a>'."\n"; } // closing .activity-meta $code .= '</div>'."\n"; if ( false !== $old_value ) { $activities_template->activity->id = $old_value; } else { //$activities_template->activity = null; $activities_template->activity = (object) array( 'id' => $activity_id ); } return $code; }And voila !
September 28, 2016 at 8:49 am #259189In reply to: Members deleted after 3-4 days
danbp
ParticipantSalut,
members are deleted 3 or 4 days after their registration
Perhaps simply because they deleted their account ? π
Check Settings > BuddyPress > Options
Suppression de compte []Les membres peuvent supprimer eux-mΓͺmes leur compteor some custom function in theme or bp-custom ?
To know if it is related to theme, Force Photo or any other plugin, deactivate it(them) and see if it change something.
Nothing better at the moment.
September 27, 2016 at 1:22 pm #259157In reply to: [Resolved] Child Theme
danbp
ParticipantIs the child theme only good for Buddypress editing? YES
Or can I use it to edit another plugin as well? NO
Plugins don’t have (at the moment) a child-plugin.September 27, 2016 at 1:19 pm #259155danbp
ParticipantHi,
no need to triple post. One topic is enought. (i deleted the 2 others).
You have trouble with a plugin, and this plugin has is own support. You have to ask there and give more details about your install (WP/BP version, used theme name, plugin list).
September 27, 2016 at 11:27 am #259149In reply to: [Resolved] Child Theme
metalhead
ParticipantI did what you said and it’s working now. Thank you very much!
It’s confusing as to why the new sub-folders differ so much from the originals. (In the child theme, we don’t have bp-templates, for example.)
Is the child theme only good for Buddypress editing?
Or can I use it to edit another plugin as well?
If I can use it to edit other plugins, could you give me an example of how I will create that path?
September 27, 2016 at 7:33 am #259141In reply to: buddypress user settings problem
danbp
Participantguess you made some mistake while activating BuddyPress and using your theme. Probably you have also some other plugins in use ?
So, aside from reading absolutely throuhg the install BP documentation, i strongly recommand that you check the site fonctionnalities by using only:
WP+BP+Twenty Sixteen theme. No other plugin, no custom code.
If you allowed registration, you have a login widget (the one coming with WP) you can activate in the sidebar. Do this for testing the password change (click on lost password ?) once active.
Also on the basic install, you should have all BP menus in the usermenu (top right corner) and on a user profile.
Once anything ok on this install, upload BP Default Data plugin and activate it. This will add fake datas in all parts of BP, so you have content everywhere that let you test completely the site.
Go through and see how it works.
If all seems ok, you can then activate the final theme. Simply remind that BP pages should be empty, without any content or template model.
Don’t forget to set up pretty permalinks (whatever but by default) and with a little luck, you’ll be on the right path.September 26, 2016 at 6:27 pm #259134In reply to: [Resolved] Child Theme
danbp
ParticipantHi,
it’s wrong !
1) You add only copies of the files you want to modify. The original templates are in
wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/2) the path in a child should respect the original directories, like this
wp-content/themes/graphene-child-theme/buddypress/members/register.phpSeptember 26, 2016 at 5:46 pm #259131simon1970
ParticipantHi,
Thanks for all your help. I still can’t get that method to work but I have found what I believe is a better (or at least an alternative) way to do this, using the bp-templates system. The bp-templates system was the method I had previously been trying to use but for some reason I couldn’t get it to work. It turns out I was using the wrong path for the templates in my child theme. The following article set me straight:
https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/
The above article explains the correct path for the templates. The mistake I made was to include bp-templates\bp-legacy followed by \buddypress in the path in my child theme. I should not have included the bp-templates\bp-legacy part of the path and just started with buddypress instead. I hope that makes sense.
Now I can make all my changes to the template files instead, and these changes won’t be affected by any updates.
Thanks again,
Simon
September 26, 2016 at 4:23 pm #259125In reply to: [Resolved] Child Theme
metalhead
ParticipantThanks! Now, to be certain, let me ask you this:
This is the original path to the original register.php:
public_html/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/register.phpThis is the new path that I created by adding new folders:
public_html/wp-content/themes/graphene-child-theme/buddypress/bp-templates/bp-legacy/buddypress/members/register.php
Please notice that I did NOT create a folder called “plugins,” during this process. Is this correct?
If not, let me know where I goofed. But if I am correct, and there will be no folder called “plugins,” with regard to the child theme, then let me ask this last question:
I will MAKE CHANGES TO the child theme’s register.php, and I will stop caring about what happens with the ORIGINAL register.php. Is this correct?
Thanks for your patience with me. I appreciate very much!
September 26, 2016 at 4:06 pm #259123simon1970
ParticipantHi,
After multiple unsuccessful attempts to get this to work using PoEdit and the plugin mentioned above I am starting to think that it might be a theme issue. I am using BeTheme. If anyone has any knowledge of how .mo files work with BeTheme, please let me know as I am pulling my hair out here.
Thanks,
Simon
September 26, 2016 at 2:23 pm #259120ckchaudhary
ParticipantHi,
Buddypress doesn’t ship with reduxframework files. You are probably using a premium theme. I suggest you deactivate all plugins except buddypress, activate twentysixteen theme and then test. This will rule out any theme conflicts. If it works with default theme, you’d know the issue lies somewhere in your theme.September 26, 2016 at 2:10 pm #259118In reply to: Group Avatar Upload Error
ckchaudhary
ParticipantHi there,
This appears to be some javascript issue, possibly an eror in your theme’s or some other plugin’s javascript code. Without looking at your website, it’s hard to guess anything.
Have you tried ruling out plugin&theme confilcts by disabling plugins and switching to default theme?September 25, 2016 at 10:09 pm #259111danbp
Participanthi Henry @henrywright,
wp-content/languages/plugins/buddypress-en_GB.mothis path is the one used by GlotPress’s official automated translation updates for BP (and any other plugin translation if it exist). Same behave for the languages/themes/ directory.
If you add a customized po/mo there, it will be overwritten at next update !
Since i18n new improvements in WP 4.6, the only way to keep the integrity of a custom translation actually, so far i know, is to use this plugin: wpt-custom-mo-file, who allows you to override and use your own translation files for any WordPress themes or plugins.
Just to let you know. π
September 25, 2016 at 5:06 pm #259107In reply to: [Resolved] Child Theme
Venutius
ModeratorThe answer is yes and yes!
Yes a BP theme is a WP theme that has been optimised for BP.
And yes, if you create a child theme and copy the PHP file into wp-content/mychildtheme/buddypress/etc the file will be protected from bp updated.
September 24, 2016 at 8:06 pm #259091In reply to: Hide page title on profile page only
shanebp
ModeratorTry this in your theme/functions.php
function shanebp_the_title( $title, $id ) { if ( bp_is_user() ) if ( $title == bp_get_displayed_user_fullname() ) $title = ''; return $title; } add_filter( 'the_title', 'shanebp_the_title', 100, 2 );September 23, 2016 at 8:33 pm #259075In reply to: Remove secrtion icons in profile
Venutius
ModeratorI’m not an expert but I think that would involve doing a template overload of the user profile php files and editing the files in the members/single section.
Sorry I can’t be more specific
September 23, 2016 at 7:59 pm #259074In reply to: Remove secrtion icons in profile
BillRox
ParticipantThanks Venutius,
Yes, the icons are from the Kleo theme and replace the links from Buddypress. I want to remove those sections.
Here are the default links in BP.

I want to remove some of those.
-
AuthorSearch Results
