Search Results for 'theme'
-
AuthorSearch Results
-
March 18, 2017 at 7:43 pm #264802
In reply to: Search, challenge to opponent
zo1234
ParticipantThat seems beyond the scope of buddypress, you may want to search for a gamification plugin. Also, don’t hold your breath on getting an answer here. For such a popular plugin, the support sucks and I’m becoming less and less of a fan of buddypress. The solutions aren’t straight forward, it’s “Here modify 20 files and create this new child theme and create 1000 lines of code”. Not a very user-friendly plugin compared to others.
March 17, 2017 at 4:23 pm #264783In reply to: Hide activity updates in member directory
shanebp
ModeratorPut it in your theme/functions.php
March 17, 2017 at 1:23 pm #264779In reply to: Hide activity updates in member directory
shanebp
ModeratorSince you don’t want to use the child theme / template approach, you could set the update to an empty string…
function filter_bp_get_member_latest_update( $update_content, $r ) { $update_content = ''; return $update_content; }; add_filter( 'bp_get_member_latest_update', 'filter_bp_get_member_latest_update', 10, 2 );March 14, 2017 at 5:53 pm #264709In reply to: Can’t update Member-Counter
shanebp
ModeratorIf a member has not logged in at least once, they are not considered ‘active’ and will not show in the count.
You could run this once in your theme/functions.php and then remove it. It will create an activity timestamp for all members with the role: subscriber.
function pp_add_last_activity() { $subscribers = get_users( 'fields=ID&role=subscriber' ); foreach ( $subscribers as $user_id ) { bp_update_user_last_activity( $user_id, bp_core_current_time() ); } } add_action('bp_init', 'pp_add_last_activity' );March 14, 2017 at 2:18 pm #264700travisrcampbell
ParticipantNever mind! it works 🙂 I just realized that I was saving the functions file in my main directory and not my child theme 🙂
March 14, 2017 at 1:46 pm #264699travisrcampbell
ParticipantHi Henry – I pasted this at the bottom of my functions.php file in my child theme and emails are still sent from wordpress@jamsession.dk.
March 13, 2017 at 9:51 am #264686In reply to: BuddyPress Newsletter relaunched
Slava Abakumov
ModeratorJust sent a new issue!
BuddyPress Newsletter – #24 – BP security release, Community Hosting, BuddyApp Theme, BP with WooCommerce etc
March 10, 2017 at 10:27 pm #264657In reply to: template overload isn’t working as expected
r-a-y
KeymasterActually, what hnla points out is correct. Disregard what I previously wrote, I was thinking of something entirely different!
index-directory.phphas to be a full template withget_header()andget_footer().You should copy your theme’s
page.phptemplate and rename it toindex-directory.php. Then move this file towp-content/themes/YOUR-THEME/buddypress/groups/index-directory.php.Please note that template hierarchy means modifying the surrounding elements of the page. If you just want to modify the group loop itself, then just copy
/groups/groups-loop.phpand make your changes to that file.March 10, 2017 at 9:39 pm #264655In reply to: template overload isn’t working as expected
kalico
ParticipantHi @r-a-y, Thank you for the reply. My parent theme doesn’t have that file, and yes I am using a child theme already, and I do understand that it doesn’t work with bp-default themes, but it SHOULD work with bp-default templates – no?
For reasons I don’t understand,
/bp-templates/bp-legacy/buddypress/groups/index.phpdoes not work as the index.php file when copied to
/community/groups/index.phpNow, if you’re saying I should not expect it to, then….what should I use as my template for the groups index?
If I’m reading correctly, @hnla says I should just use a regular page template from my theme, and strategically add in the contents of /bp-templates/bp-legacy/buddypress/groups/index.php (which, as he points out, is not a complete file with header, etc) and call it index-directory.php. (And thank you, @hnla for the reply as well 🙂 )
I can do that. However, I haven’t found any documentation to that effect, and it seems to be much more complicated than the template hierarchy documentation implies:
Therefore, you can modify any bp theme compatibility template by copying it over from:
/bp-templates/bp-legacy/buddypress/
To:
/my-theme/community/ or /my-theme/buddypress/
That is what I have always done, and I’ve never had this much trouble with it before.
I have other template modifications to make, and if Hugo’s instructions are correct, it would be really helpful to know where the documentation is, in case I have further issues.
If the template hierarchy page is correct, then something is wrong with my site, because I’m following those instructions (in spite of my original faux pas of using “themes” instead of “templates”).
Thanks in advance for any further clarification you can provide.
March 10, 2017 at 8:13 pm #264652In reply to: template overload isn’t working as expected
r-a-y
Keymaster@kalico –
Template hierarchy doesn’t work for bp-default themes or older-style BuddyPress themes that are derivatives of bp-default.In your situation, I would just modify/themes/YOUR-THEME/groups/index.phpdirectly.If this doesn’t exist in your theme, that means you are using a child theme, so copy/themes/PARENT-THEME/groups/index.phpto your child theme and make your mods.I’m so wrong! Read my updated reply below.
March 10, 2017 at 7:07 pm #264647In reply to: Activity Custom Content After Post Iteration
tommyhares
ParticipantThanks Henry, I have been trying to use that. However, I need to iterate through blog posts, not display the same content repeated. Also, tried directly modifying the activity-loop in a child theme, but it only cycles until the next ajax query. Any other solutions?
March 10, 2017 at 10:37 am #264636In reply to: template overload isn’t working as expected
Hugo Ashmore
Participant@kalico when you create thse template files for index they must be full templates not partials i.e they must include the WP get_header(), get_footer() and any other markup structures representing your themes structure.
March 9, 2017 at 10:11 pm #264632In reply to: template overload isn’t working as expected
kalico
ParticipantI’m now trying to re-word my original response, so hopefully it will get past whatever filter is preventing me from reposting the dropped message.
Thanks @danbp. Unfortunately, this wasn’t the solution I needed. Partly, perhaps, but not entirely.
As you pointed out, I was wrongly copying files from bp-themes rather than bp-templates (a codeblind mistake on my part). But I was doing everything else correctly, in terms of file structure and use of
/community/according to your write up.I went through my steps again, this time copying
/bp-templates/bp-legacy/buddypress/groups/index.phpover to
/community/groups/index.phpwith zero impact. (I test this by adding a bit of text in a spot that should display on the live site, and it does not show up. Tried several different places, no effect.)
This would seem to demonstrate that BP is not reading that index.php file at all. It’s only reacting to the template change if it is called “index-directory.php”.
I changed the file name (without moving the file) from index.php to index-directory.php, just as I did before, but again, it did not work as expected. The groups directory page picked up the new template, but it displayed a completely stripped-down version of the page, with no CSS at all (white background, default font, everything left-aligned, etc).
I have been assuming that the index.php file would be a proper starting point (a template) to create custom modifications to the groups directory page (i.e., index-directory.php), but clearly that does not hold true.
This seems very strange, because in looking at the php code in index.php, it’s got all the elements I see in the source for my live groups directory page. So it appears to be getting that exact same information from “somewhere else” within the plugin structure, but I can’t figure out where.
My question is now: What file should I use as a starting point to duplicate my existing groups directory, so I can make custom modifications?
I do hope you (or someone) can point me in the right direction. Thanks in advance!
March 9, 2017 at 7:14 pm #264627In reply to: Buddypress Technical Issues
Henry Wright
ModeratorTry doing the same thing using a different theme to see if your theme is causing the issue.
March 9, 2017 at 9:58 am #264613In reply to: template overload isn’t working as expected
danbp
Participantbp-default theme is the old mandatory theme. BP doesn’t use it anymore since 1.9. This historical theme is only in for backpat compatibility perhaps still in use on some very old installs…
Actually, BP fits to almost any modern theme, correctly formated and respecting WP’s code standarts.
What you can try is to create in your child theme, a directory called “community” or “buddypress”.
If you need to alter a bp template, you copy the original file from here:
/plugins/buddypress/bp-templates/bp-legacy/buddypress/You copy only the file you need and you respect the folder structure who starts from
/buddypress/.../Note that you if you want to use
/community/in the child, this folder is equal to/buddypress/in the original template folder. You copy (for ex.) group’s index.php file.
From:
/plugins/buddypress/bp-templates/bp-legacy/buddypress/groups/index.php
To:
/themes/my_child/community/groups/index.phpMarch 8, 2017 at 8:32 pm #264582In reply to: Issue with Avatars: wrong upload path
danbp
ParticipantAvatar upload path is:
../wp-content/uploads/avatars/user_IDHave you modified something in your htaccess file ?
Have you added some custom function to your theme or to bp-custom.php ?Control also all your media settings on dashboard and don’t forget to check the permalinks.
Finally, go to your server and check the wp-content/uploads/ permissions, including sub-folders.
(ie. 755, 705)March 8, 2017 at 8:14 pm #264581danbp
ParticipantDeactivate the mail plugin and add this snippet into your (child)theme functions.php file and give a try:
add_filter('wp_mail_from','custom_email_from'); function custom_email_from( $mail ) { $mail = 'noreply@example.com'; // Replace the email address here // return $mail; }March 8, 2017 at 3:52 am #264566In reply to: fatal error message
paripari
ParticipantThank you guys.
This one did the trick.
Your theme is using an older BuddyPress function – bp_is_member().
Switch that out for bp_is_user().
Theme author will update
/Hamid
March 7, 2017 at 1:41 pm #264548In reply to: Buddypress, BBPress, and breadcrumbs
danbp
ParticipantBuddyPress doesn’t use breadcrumbs. This belongs to bbpress and sometimes to a theme or a plugin.
Ask on respective support. Or try out this plugin.
March 5, 2017 at 11:55 pm #264510In reply to: fatal error message
Hugo Ashmore
Participant🙂 we might have spotted that – regardless you’ll need to approach the theme authors to update their theme or find a new theme.
March 5, 2017 at 11:52 pm #264509In reply to: fatal error message
r-a-y
KeymasterYour theme is using an older BuddyPress function –
bp_is_member().Switch that out for
bp_is_user().March 5, 2017 at 6:43 pm #264506In reply to: fatal error message
Hugo Ashmore
Participant@paripari it’s the weekend so help is likely to be a little slower.
Based on what you show it’s going to be quite hard to suggest what’s wrong apart from the obvious & from a jpg without any other detail of the events surrounding the problem almost impossible.
I can just about see that your using a custom theme ( I have quite good eyesight but that text is really small!) and that you have the issue referenced as occurring from the sidebar.php of the theme, I’m guessing a custom bp loop or widget. You’ll need initially to approach the theme authors and ask them if they can help out, if not then re-post here but supply a little detail about your setup and the sidebar file contents.
March 4, 2017 at 4:12 pm #264499In reply to: How do i use bp_user_query search_terms on my theme?
coolhunt
ParticipantOk. Im a dummy..
I need to use bp_has_members
bp_has_members("search_terms={return-users-with-term-from-get_search_query}")my goal is to have a code snippet that i can use inside my theme so that anytime theres a search – it also returns a list of bp members.
any ideas? (p.s. i really have no clue what im doing)
<p>members <?php echo bp_has_members("search_terms={return-users-with-term-from-get_search_query}"); ?>" . these are members </p> <p>normal post " <?php echo esc_html( get_search_query( false ) ); ?> ". Here are the results:</p>March 3, 2017 at 3:18 pm #264484In reply to: Compatible with Enfold
Paul Barthmaier (pbrocks)
ParticipantI don’t know what this means? Link?
I just see in the page of enfold that retirano
I don’t see how it loses compatibility with BuddyPress. AFAIK out of the box, Enfold doesn’t really have it. It needs to be customized in the child theme.
March 2, 2017 at 12:09 am #264431In reply to: Change Text on Registration Page
Henry Wright
ModeratorTake a look at the Template Hierarchy article. The register.php template is the one you’ll need to modify.
-
AuthorSearch Results