Search Results for 'theme'
-
AuthorSearch Results
-
April 4, 2017 at 5:31 pm #265245
In reply to: Adding a full buddypress page to a new page
r-a-y
KeymasterIf you wanted to add a heading to your Members Directory template, there are two methods:
1. Override the Members Directory template part:
The template part is the actual template file used to render the Members Directory output.
Copy
/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/index.phpTo:
wp-content/themes/YOUR-THEME/buddypress/members/index.phpAnd make whatever changes you need to make.
2. Override the Members Directory template hierarchy:
https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/Template hierarchy basically means a page template used for the surrounding template part.
If you don’t want to read the guide above, basically, copy your theme’s
page.phpand move it to/buddypress/members/index-directory.phpin your theme’s directory. Then, add your heading before the page loop.April 4, 2017 at 2:01 pm #265237In reply to: BuddyPress Newsletter relaunched
Slava Abakumov
ModeratorBuddyPress Newsletter #27 – mainly BuddyPress news, and a new theme – Besocial!
April 4, 2017 at 4:19 am #265230In reply to: template overload isn’t working as expected
kalico
ParticipantHallelujah! After MUCH ado, I have finally figured out what the heck is going on here.
At first, every change I made per the instructions from @hnla and @r-a-y had failed. I was sure it must be something in my set up, so I did a LOT of detective work and testing, and finally discovered multiple sources of problems.
Although it’s unlikely this will be relevant to many others, I am posting it just in case it might help someone. I always like reading other people’s solutions — it often gives me fresh ideas, even if it’s not an exact fit. So here goes….
1) I was copying my page.php from my child theme to use as
/groups/index-directory.php, and it was breaking the groups directory page. Well…it’s in the child theme because it’s been modified from the parent theme, and whatever mods I made were not playing nice with the BP template hierarchy system. When I copied page.php from the parent theme, it worked just fine. (Maybe that’s why they are theme devs and I am a lowly hacker…)Now having solved the problem of which file makes the best template for a new groups directory, I had to figure out how to actually affect the area of the page that I want to affect: the section where the tabs and the group search live. Those are not in the page.php file, they are coming from somewhere else.
I hunted down some bits of code that were in the section I wanted to modify, and searched all the theme and plugin files on my system for that snippet, and discovered the next problem…..
2) The only place that the code exists is in BP Groups Hierarchy plugin, and BP itself. I had BP Groups Hierarchy (old version, with Ray’s compiled updates) enabled, along with an older version of BuddyPress (due to incompatibility issues between new BP and old BP Groups Hierarchy). Within this environment, the BP Groups Hierarchy plugin was actually taking over the display of the
groups/index.phpso none of my changes were showing up.3) The next thing I realized is that I have a customized community.php file (a.k.a. buddypress.php) which is where my buddypress loop actually lives. Or, more specifically, that file is pulling
content-page.php. So I had to use that file (which had already started out as a copy of the parent theme’spage.php) to create a working and fully compatible template.In a nutshell, my new groups/index-directory.php goes something like this:
The first part comes from COMMUNITY.PHP, which is a customized version of the PARENT THEME’S PAGE.PHP
Then the PAGE TITLE CODE is copied from the child theme’s CONTENT-PAGE.PHP
Next I replace THE LOOP from COMMUNITY.PHP with the ENTIRE CONTENTS of the original/default GROUPS/INDEX.PHP. We’ll call this the “new loop”.
After the “new loop” section of the code, then my CUSTOM COMMUNITY.PHP FILE takes over again, filling out the rest of the file with the sidebar and footer.
Note: Somewhere in here, I had to add a
?>to close the PHP. Can’t remember exactly where, but something I copied did not have a closing PHP tag. So if you get a blank screen, that would be a good place to look. 🙂I’ve posted my entire custom
index-directory.phpin a gist in case anyone wants to see it. It is commented in 4 places where I transitioned from one fragment to another. You can search on “GROUPS INDEX TEMPLATE” to find the comments in the gist. My parent theme is Zerif Pro, and I have a customized community.php/buddypress.php file. so you CANNOT JUST COPY this code. It just serves as an example of how I cobbled the code together to get a working template. Hope it is helpful.Grateful thanks to Ray and Hugo for all the assistance and advice!
April 4, 2017 at 2:56 am #265228In reply to: Filtering activity
Onlyanurse
ParticipantI didn’t have a child theme. Is there any way someone can tell me what code to use to get rid of all the unwanted stuff and just have updates only?
April 3, 2017 at 9:19 pm #265198In reply to: Login page dont responsive
r-a-y
KeymasterIt’s responsive for WordPress default themes like one of the Twenty themes.
@hnla – Perhaps we should extend responsive support for the registration screen to bp-legacy / bp-nouveau directly instead. I know breakpoints will be an issue, but we could probably settle on a width.April 3, 2017 at 2:49 pm #265184In reply to: Log In and Registration
David Cavins
KeymasterThe log-in page is a WordPress page. There is a guide on how to customize it:
https://codex.wordpress.org/Customizing_the_Login_FormThe registration page is created by BuddyPress and can be modified in many ways. You’ll need to understand theme compatibility and overriding templates:
So you could create your own copy of
buddypress/members/register.phpin your theme to make big changes, or potentially hook into the actionbp_before_register_pageto just add some html to top of the BP page.Best of luck.
April 2, 2017 at 11:11 am #265156In reply to: Remove Last Activity
Henry Wright
ModeratorYou will need to modify the template file. See the Template Hierarchy article for more info.
March 31, 2017 at 3:54 pm #265104In reply to: ?No Sidebar on Profile Page?
danbp
ParticipantHi,
BuddyPress pages are not ordinary WordPress pages. These pages should be blank, without any template assigned. BP pages exist only for internal purpose and to have their own slug (and the benefit of permalinks). The content is always dynamic and change depending the context.
That is also the reason why you shouldn’t use a “page builder” for them untill you’re very comfortable with code and design.
If you need a full width output or a sidebar, you adjust that in your theme settings or preferences. You can easely do that with WP’s Customizer. Or course reading your theme documentation can also help.
If it is not possible that way, i recommand you use a child-theme, and add him any necessary part you’re actually missing. But ensure first that these parts are really missing !
BuddyPress comes with a few CSS rules who normally fit with any correctly coded theme. This means that it actually can be used with almost any existing theme.
BuddyPress has no sidebar
BuddyPress can be viewed on any existing device
BuddyPress fit to any screen size
This means that you have to adjust your theme first, and not BP.For more details, read from Codex
March 31, 2017 at 3:38 pm #265103In reply to: ONE word I can’t find/translate.. Please help?
danbp
ParticipantHi,
open your buddypress-nk_NO.po file with a text editor (notepad++ or so) and check you have a plural form for the untranslated string.
The’re several strings containing “members” with a count, but it will be easy to find if you search for “msgid_plural”.
At least, you should find something constructed like this:#: bp-templates/bp-legacy/buddypress/members/single/groups/invites.php:34 msgctxt "Group member count" msgid "%d member" msgid_plural "%d members" msgstr[0] "%d medlem" msgstr[1] "%d medlemmer"Again, note that it is only an example, you may find other strings containing “medlem” that you have eventually to adjust.
The important thing to control is the existence of “%d” and naturally, the presence of the plural form string in the translation.
If you still have trouble after controling/repairing/modifying, it could be possible that it is your theme. To ensure, do the same check in your theme translation.
Other thing to take in account
I’m not 100% sure, but so far i remember, the norvegian buddypress version is not completely translated.
Unfortunately, translate.wordpress.org is actually down and it is impossible to access the plugins translations at this time…What i expect is that you have an old po file, fully translated, but perhaps not with the most recent changes and updates, which could explain that even if you have plural forms in your translation, they won’t show up in some places.
For ex. because the plural code changed from %s (in your version) to %d or something like that.
To avoid this, you can download the most recent pot file and rename it to buddypress-nk_NO.po.
Then you rename YOUR current version to .pot(with a T), import it to the new file, and adjust or complete the missing strings.March 30, 2017 at 4:00 pm #265085In reply to: Hidden Groups – Unable to access as Super Admin
r-a-y
KeymasterIt took me awhile to think about what might be causing the issue and I just remembered the problem.
It’s a theme conflict with BuddyPress.
BuddyPress adds the CSS class
hiddento a group in the group loop. Some themes might already have a.hiddenclass declared, so hidden groups are not shown because of this.Can you add the following CSS snippet to your CSS?
#buddypress .bp-single-group.hidden {display:block;}I believe this should fix your problem.
March 28, 2017 at 8:51 pm #265057r-a-y
KeymasterDo you have the friends component active?
It could be caused by the at-mentions suggestions code.
Try disabling it by adding the following to your theme’s
functions.phpor bp-custom.php file:
remove_action( 'bp_activity_mentions_prime_results', 'bp_friends_prime_mentions_results' );March 28, 2017 at 8:18 pm #265051r-a-y
KeymasterSounds like a problem with your theme. What theme are you using?
Also, on your production site, you should disable debug messages such as those by changing
WP_DEBUGtofalseinwp-config.php.March 28, 2017 at 1:57 pm #265047Topic: Error in Group Docs
in forum How-to & Troubleshootingtimtellean
ParticipantWP ver. 4.73
BP ver. 2.82
metro magazine pro themeI see this error when trying to view my group.
Warning: Creating default object from empty value in /home/wp_5cnhby/ntcep.org/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-member.php on line 1170
March 24, 2017 at 10:04 pm #264987In reply to: Mediapress help
joeyfogas
Participantthanbk you for that information. and yes, I have tried all the base themes. same result
March 24, 2017 at 9:06 am #264976In reply to: Mediapress help
danbp
ParticipantHave you tried with another theme, like Twenty Fifteen ?
You wwill have more chance if you ask on the mediapress support.March 24, 2017 at 8:59 am #264972In reply to: Group photo are no more displayed
danbp
ParticipantMoved to a separate topic.
It is pretty difficult to help you as you give no details about your install.
Do you use a child theme and/or custom functions ?
Do you use a media plugin ?Have you started to debug: deactivate all plugins but BP, changed your theme in favour of a Twenty theme, activate wp_debug in wp-config.php ?
March 23, 2017 at 8:37 pm #264961In reply to: Filtering activity
Venutius
ModeratorYou probably just need to copy the content of your old child theme buddypress directory into your new childtheme directory.
March 23, 2017 at 12:54 pm #264948In reply to: Add New Tab Private to each user
danbp
ParticipantCopy the whole content of that example file into bp-custom.php.
You can also transform it into a mu-plugin by just adding it some header information.
Once done, you can test the tabs and try to understand how they work. And then apply your own preference.
March 23, 2017 at 8:53 am #264940In reply to: Accept / Reject Friend Request NOT WORKING :(
edwardianhall
ParticipantThanks for getting back to me. Have asked the theme authors to look into it. Will let you know the issue once resolved.
March 22, 2017 at 11:56 pm #264932In reply to: Accept / Reject Friend Request NOT WORKING :(
Henry Wright
ModeratorBeing a premium theme the best thing to do is contact their support team. Unfortunately, because the SocialChef theme’s code is private there’s not much we can do here to help.
March 22, 2017 at 6:49 pm #264914In reply to: customizing profile-header
danbp
ParticipantLooking at the given code in the first topic let think that you try something hazardous 🙂
<h2 class='user-displayname'> <?php bp_displayed_user_displayname(); ?> <small>@<?php bp_displayed_user_mentionname(); ?></small> </h2>h2is a title tag whith (generally) a fixed size, depending your theme. Whatever that size is, anything inside the title tag will be affected by his size.This means in this case, that your <small> tag is affected by <h2>. So if the h2 is set to 15px and small is not defined, both will be 15px.
You probably have to declare correctly your CSS classes as explained here.
FYI, there is a similar template which is cover-image-header.php which you c(sh)ould try to use for your modifications. Maybe the profile page will show up like you want, specially if you allow your members to change their profile header ? 😉
March 22, 2017 at 12:16 pm #264894Topic: Profile Visibility Not showing Dropdown
in forum How-to & TroubleshootingDroidism
ParticipantEnvironment:
PHP 7.0.3
Apache webserver
MySQL v5.5.49
WordPress v4.7.3
BuddyPress v2.8.2
Theme: Emmet Lite v1.5.0
Other plugin: noneHi,
I have installed BuddyPress on a fresh local install and used the Emmet Lite theme.
My problem is that when I create a user, login to the site using a completely different browser, with the cache purged and browsing history removed on start, and go to the user profile, I do not have the option to change the profile visibility. The dropdown for the Name is not showing at all.
Please see settings-profile-visibility on the BuddyPress codex.
When you view the image you will see “Base -> Name” and “Visibility -> Everyone” in a dropdown. In my install the “Visibility -> Name” is not a dropdown and not selectable attall.
Thanks in advance for helping me figure this one out.
March 21, 2017 at 9:14 pm #264876In reply to: messages not sending
Henry Wright
ModeratorHave you changed theme over the past week or installed new plugins?
March 21, 2017 at 12:52 pm #264865In reply to: customizing profile-header
Henry Wright
ModeratorCan you show us the full path you have to your child theme’s member-header.php file?
It should be your-theme/buddypress/members/single/member-header.php
March 18, 2017 at 8:13 pm #264805In reply to: Dynamic Profil Link
valmirveklas
ParticipantDude I also rode around for at least a week to find all the information to do my way. But I did and it’s working a lot. I’m going to code for you.
The comments are in English, use google to translate.
See example there on my platform soamigo.com.brSee the ready code just put in the functions.php file of your theme.
-
AuthorSearch Results