Search Results for 'theme'
-
AuthorSearch Results
-
April 22, 2015 at 11:48 pm #238238
In reply to: HIde BuddyPress and bbPress items from guests
bp-help
Participant@caniwigirl
I personally would choose to add it to bp-custom.php this is the best approach in case you decide to change themes down the road because if you place it in your themes functions.php or in a child theme of that themes functions.php then you will loose that functionality if you do change themes. The bp-custom.php acts more or less as a plugin independent from the theme you may use. Good luck!April 22, 2015 at 11:33 pm #238237In reply to: HIde BuddyPress and bbPress items from guests
caniwigirl
ParticipantThanks. So, to summarize for others wanting to do the same… The code to add to the functions.php file in the theme (or child theme) would be:
function bp_guest_redirect( $name ) { if( ! is_user_logged_in() ) { if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_blogs_component() || bp_is_directory() || bp_is_user() || bp_is_members_component() ) wp_redirect( get_option('siteurl') . '/wp-login.php/' ); } } add_action( 'get_header', 'bp_guest_redirect', 1, 1 );April 22, 2015 at 9:17 pm #238230In reply to: allow search by username
evilnut
Participant@henrywright
Thanks. I understand that.
Right now I am just looking for a way to be able to search members by username.
Then I will try to solve it by modifying bp-custom.php or function.php in theme-child.April 22, 2015 at 5:00 pm #238216In reply to: Buddy Press – Blank Pages
danbp
ParticipantHave you already tested with one of WP default theme, as some details around pages have been changed recently in WP and BP.
After an update, and some BP pages won’t show up, you can also try be re-saving pretty permalinks. Or disable a BP component, save and reactivate and save again.
Sorry no other idea to share at the moment. 😉
April 22, 2015 at 3:09 pm #238211In reply to: Comment button stops working after refresh
shanebp
ModeratorI ended up duplicating the site
Good, now you have a dev site.
Try turning off all plugins except BP and continue using the 2015 theme.
If the problem persists, then it might be a BP issue.
If not, turn the other plugins back on one at a time and hopefully find the plugin that is causing the issue.April 22, 2015 at 2:51 pm #238209In reply to: Comment button stops working after refresh
maruyamah
Participant@shanebp Thanks! I was trying to avoid doing that because part of the site is live and uses our theme. I ended up duplicating the site, changing the theme, and trying it again and it still didn’t work. The problem is exactly the same. The theme I used this time was 2015.
April 22, 2015 at 9:18 am #238195In reply to: Calling a post authors activity stream
UrbanFix
Participant@danbp
I have attempted to use the ‘little plugin’ you mentioned but when I add the following two lines i get an error! COuld you please add them for me?$temp_post = get_post($post_id); $user_id = $temp_post->post_author;I have sucessfully changed the user id as you mentioned without any trouble.
public function generate_activity_stream( $atts, $content = null, ) { //allow to use all those args awesome! $atts=shortcode_atts(array( 'title' => 'Latest Activity',//title of the section 'pagination' => 'true',//show or not 'display_comments' => 'threaded', 'include' => false, // pass an activity_id or string of IDs comma-separated 'exclude' => false, // pass an activity_id or string of IDs comma-separated 'in' => false, // comma-separated list or array of activity IDs among which to search 'sort' => 'DESC', // sort DESC or ASC 'page' => 1, // which page to load 'per_page' => 5, //how many per page 'max' => false, // max number to return // Scope - pre-built activity filters for a user (friends/groups/favorites/mentions) 'scope' => false, // Filtering 'user_id' => $user_id, // user_id to filter on 'object' => false, // object to filter on e.g. groups, profile, status, friends 'action' => false, // action to filter on e.g. activity_update, new_forum_post, profile_updated 'primary_id' => false, // object ID to filter on e.g. a group_id or forum_id or blog_id etc. 'secondary_id' => false, // secondary object ID to filter on e.g. a post_id // Searching 'search_terms' => false, // specify terms to search on 'use_compat' => bp_use_theme_compat_with_current_theme() ), $atts ); extract( $atts ); ob_start(); ?>Thanks,
Urban-fixApril 21, 2015 at 4:34 pm #238169In reply to: Comment button stops working after refresh
shanebp
ModeratorI am using a custom theme, so it’s possible that is the problem,
Switch to a WP theme like 2013.
If the problem goes away, then it’s something in your theme.April 21, 2015 at 2:20 pm #238157In reply to: Register page password strength and hint
leanneoleary
ParticipantI am using Cinematix (http://themeforest.net/item/cinematix-buddypress-theme/4959387) and haven’t customised it in any way.
I have found the default HINT for wordpress is the following:
<?php _e(‘Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! ” ? $ % ^ & ).’); ?>
I assume this is what is being used? If so I can just add this password hint but what file do I need to edit?
Many thanks for your help.
April 21, 2015 at 2:14 pm #238156In reply to: Register page password strength and hint
Henry Wright
ModeratorWhich theme are you using and have you customised the registration page in any way?
April 21, 2015 at 1:03 am #238138In reply to: Add Friend Button
novanotion
ParticipantI upgraded to BuddyPress 2.2.3. I changed to Twenty Fourteen theme and it still does the same thing. Even when I change the view from All Members to My Members all the buttons still say Add Friend
April 20, 2015 at 11:32 pm #238137In reply to: Sorting members by id in members-loop
danbp
ParticipantDon’t hack core files !
It will be overwriten at next BP update.
Use preferably a filter function. Give this a try (add it to bp-custom.php) :
function members_dir_oldest_first( $bp_user_query ) { if ( 'newest' == $bp_user_query->query_vars['type'] ) $bp_user_query->uid_clauses['order'] = "ASC"; } add_action ( 'bp_pre_user_query', 'members_dir_oldest_first' );April 20, 2015 at 8:27 pm #238127In reply to: Add Friend Button
@mercime
Participant@novanotion First of all, please upgrade to the latest BP 2.2.3 version, a security release, if you haven’t yet.
To your topic, change to the Twenty Fourteen or Fifteen theme, does the same issue show up or does it only show up when you’re using your current theme?
April 20, 2015 at 12:54 pm #238100In reply to: Members loop doesn’t show new members
shanebp
ModeratorMembers won’t appear in the members loop until they have a last_activity entry.
Logging in will create that entry.
Or you can give them one as soon as a member is registered via front or back end:function webmister_add_last_activity( $user_id ) { bp_update_user_last_activity( $user_id, bp_core_current_time() ); } add_action ('user_register', 'webmister_add_last_activity', 20, 1);Put the function in your theme/functions.php or in bp-custom.php.
April 20, 2015 at 12:26 pm #238098In reply to: Members loop doesn’t show new members
danbp
ParticipantThnak you.
Have you a test site or a local install where you can make some test ?https://buddypress.org/support/topic/when-asking-for-support-2/
I tried to change role and other fields in new members, but nothing happened.
On a single regular install, all BuddyPress members have the default role you assigned to new users in WP settings > general. There is nothing to change at this level when they don’t show up on member’s directory.
If you need some fake BuddyPress users and content, i suggest you to use BuddyPress Default Data, which is great to control if anything is working correctly.
Deactivate your theme and all other plugins except BP and use Twenty Fifteen while testing.
Activate also wp_debug in wp-config, and see if you get somme php errors.April 20, 2015 at 8:35 am #238085In reply to: How to add sidebar to single update/comment page
danbp
ParticipantFirst off, all active BP components should have a assigned page. (mandatory)
This page must be blank, without any template model or parent page.As you use Twenty Eleven via a child theme, read here:
https://codex.buddypress.org/themes/bp-theme-compatibility-and-the-wordpress-default-themes/twenty-eleven-theme/ How to get the sidebar is explained there.Where is WP installed ?
Site url is vatpt1.thevillageblog.com/
Blog seems to be in /villageatthepark/April 19, 2015 at 6:11 pm #238055In reply to: Unable to create a group
danbp
ParticipantActivate wp_debug in wp-config and do a test with Twenty Twelve, Thirteen or Fifteen theme.
Deactivate all plugins except BP and bbPress.Then report given errors here (without server path details if possible – just begin of error message and file name ).
Other issues with same theme: https://buddypress.org/support/search/onecommunity+theme/
OMG, lost in the forest… wouh hou !
April 19, 2015 at 6:01 pm #238053danbp
Participantwhy do you use the trunk version ? Use the stable version, when you start with BuddyPress.
Album doesn’t exist in BuddyPress.
For the button issue, maybe you have a problem with your theme ?Please give more details after reading here.
April 19, 2015 at 5:48 pm #238050danbp
Participant– keep in mind that I’m not doing a full on translation, just this BuddyPress translation to change Friends to Connections.
you put only those strings into your custom po. If the concerned string is on a template file, you can also hardcode it there, and use a template overload to get in from your child-theme in that case. So you haven’t to struggle with poEdit. In this case also, you have to take care of the details given by @shanebp.
– does the language define statement in wp-config.php need to be set for this to work?
This is no more used since WP 4.0. You can remove it.
– buddypress-en_US.po and buddpress-en_US.mo files need to be in which folder?
/wp-content/languages/plugins/ (the po file is not used by gettext, it’s only a human readable work file – you can store it elsewhere if you want. You just have to remind where in that case 😉 ).
if you put it in /language/ (of course you can), you will see buddypress-en_US as a language setting. Which is of course not the site language.
But in any case, keep a copy of your work in a safe place outside of WP.
April 19, 2015 at 4:35 pm #238041danbp
Participantthis is obvious, but unfortunately despite your details, difficult to help out, because you don’t tell which code is concerned… or what you used to do your change. 😉
Generally, when it doesn’t translate, it’s because a typo error. A custom function, a theme using outdated strings and a lot of little details like missing dots, comas or percent sign.
Here some tricky examples which can produce a missing translation.
Original code looks like this:%d friends Activity feed for %s's friends. Friends <span class=\"%s\">%s</span>If %d is typed %s, or if the end point after friends is missing or you forgot to anti-slash or a double cote in the html, gettext mismatch the source and the translation and doesn’t execute it.
First thing to do in your situation, is to compare what is in your po file to what is in the BP code. Assuming BP code is the master, and always right. Po can be wrong: old version, manually modified, corrupted. Po must in any case be saved as text format in utf8 without BOM. This is invisible, but a real source of issues, specially when anything seems the same and desperatly stays untranslated/unmodified.
To do this, open the po in a text editor. Search for the string, check the file position given above the string, and read carefully and triple check, that the original BP code and the string in the po are strictly identic.
If nothing found, ensure there is no custom function somwhere, or a theme playing around the buddybar or subnav.
April 19, 2015 at 1:38 pm #238029In reply to: Bp register page
shanebp
ModeratorThe @ symbol is added in this file:
buddypress\bp-templates\bp-legacy\buddypress\members\single\member-header.phpCreate a template overload of that file and remove the symbol.
April 18, 2015 at 7:29 pm #238013In reply to: Where are loops put?
danbp
ParticipantIf you want to customize a loop, you simply copy the original file from legacy to your child-theme.
If you need a custom function to work on it, you add it to bp-custom.php or to your child-theme functions.php
Guess there is nothing special to call around index.php. Generally it’s entry.php or activity-loop.php which are concerned to customize activities.
That’s exactly the question why i told you to read carefully the codex first. 😉
April 18, 2015 at 7:25 pm #238012In reply to: Where are loops put?
@mcuk
Participant* bp-legacy>buddypress>activity>index.php (in child theme folder)
April 18, 2015 at 7:08 pm #238007In reply to: Where are loops put?
danbp
ParticipantLoops are in templates.
See bp-templates/bp-legacy/buddypress/
And read carefully template hierarchy to understand how all this is working together.
-
AuthorSearch Results