Search Results for 'theme'
-
AuthorSearch Results
-
June 28, 2016 at 1:47 pm #255400
danbp
ParticipantBuddyPress doesn’t handle posts, but WP. BP only mention them on the site activity.
BuddyPres doesn’t handle the post author behave. If a post has a featured thumbnail, it’s the author who added it.
If a post is shown with a default featured thumbnail, it’s the theme who add that feaure, not BuddyPress.Globally, a post thumbnail is a theme feature. BuddyPress stopped to use his own theme since 1.7 and was endless improved since to work with about any WP theme.
Read WP codex page related to Post Thumbnail.
June 28, 2016 at 12:45 pm #255396In reply to: BuddyPress 2.6.0 “Espejo” is now available
m1000
ParticipantThanks, but how to fix it not touching buddypress files, I tried use remove_filter in functions.php of theme but it doesn’t work – http://pastebin.com/mgRe4e2Q
June 28, 2016 at 9:19 am #255392In reply to: member searching is not working
danbp
ParticipantI don’t think it’s an issue, but more a latency thing. The search field can be lame sometimes.
Looking for John Doe.
You search John = ok
You search Doe = okDoe is still in the search box. You add John after to search: Doe Joe.
Result: nothing because the user is registered as John DoeSame if you enter to rapidly search terms: johndoe This brings nothing.
Ensure that you entered correctly the terms. And test with one of WP’s default theme if you use a third party theme.
If you have some other plugin it can be possible there is a JS conflict somewhere, but imho, no as a single term search works.More a PBCK issue for now.
If you need absolutely this functionnality to work at 200%, perhaps try one of these plugins:
https://wordpress.org/plugins/bp-profile-search/
https://wordpress.org/plugins/buddypress-global-search/June 28, 2016 at 8:57 am #255387In reply to: member searching is not working
sharmavishal
Participantwhich theme are u using?
June 28, 2016 at 8:33 am #255382In reply to: buddypress doesn’t use my files child
danbp
ParticipantHi @simonmnt,
you should create a correct child-theme to get BP templates customization to work.
First, you need to declare the child via /your-child/style.css with the correct header information.
Eg. for a twenty fourteen child/* Theme Name: Fourteen-Child Description: My child theme for Twenty Fourteen Version: 1.0 Author: simon Template: twentyfourteen */ @import url("../twentyfourteen/style.css");Once done, you can select this child as site theme.
Now you can add a /buddypress/ folder to /your-child/
Inside this folder, you copy any file you need to modify from /bp-legacy/buddypress/
You copy only the file(not the whole /bp-legacy/buddypress/ folder) you want to change, by respecting eventually the original path. Eg
.
/your-child/buddypress/members/single/profile/profile-loop.phpIf you need custom functions for the theme, you add a file called functions.php inside /your-child/functions.php
If you need custom functions for BuddyPress (like most of the snippets you can find on this forum), you add them to wp-content/plugins/bp-custom.php
June 28, 2016 at 8:26 am #255381In reply to: Fatal error after update
oddreal
ParticipantResolved an error in Courses:
Fatal error: Class ‘BP_Groups_Group’ not found in /path-to-project/wp-content/themes/lms/framework/buddypress/metaboxes.php on line 15A friend of mine – CMS developer – took a look at this and advised to just check User Groups at BuddyPress settings page (http://your.site/wp-admin/admin.php?page=bp-components)
Have a nice day to all.
June 28, 2016 at 3:55 am #255367In reply to: Individual Groups Link Leads To 404
r-a-y
KeymasterNot sure what to look for that might be broken…..?
@kalico – Turn onWP_DEBUG:
http://wpexplorer-themes.com/total/docs/enabling-wp-debug/And see if any errors pop up. If you see some notices, post them here.
June 28, 2016 at 3:52 am #255366In reply to: Fatal error after update
r-a-y
Keymaster@metaverso – Your solution is a quick fix, but not the right solution.
We need to see what the underlying cause is.
If someone can pass me a copy of the LMS theme for solely debugging purposes, I can find out the problem. Contact me on wordpress.slack.com (r-a-y) or via email.
June 27, 2016 at 10:38 pm #255354danbp
Participant– BuddyPress pages have all an ID.
– BP pages are not ordinary static WordPress page, but dynamic pages, a kind of placeholder. They have no content and are only existing to have a slug (and a ID for DB magement) for WP/BP dialog.
Eg.your-site/activity/URL is empty when you deactivate BP.Let’s continue with the activity page as example.
This “page” is made of different parts, which are contextually loaded on their own template. Use the activity filter to see what is all coming up on the (url/activity/) page. About 10 items which would be 10 real pages on a WP site without BP ! And that’s just default. Many plugins use also BP’s activity…
For each component, there is a loop. As long as you are in such a loop, you can call what ever belong to that component from inside this loop. And for almost each loop, you have a template.
If you want the About page (default WP page) to show up on a profile, you load it on one of the profile templates, but not on the BP member page which is the “page” who host “profiles”, but also the “member director”y. And you don’t want About apearing there, isn’t it ? 😉
If you read the codex about theme develoment and template hierarchy, you may understand how all this is articulated.
June 27, 2016 at 7:37 pm #255346In reply to: restrict messages to user-admin-user
David Cavins
Keymaster@Earl_D: No. The above snippets are added to a custom version of the
buddypress/members/single/messages/compose.phpfile. Basically, if you add this file to your theme (following the structurebuddypress/members/single/messages/), it will be used in preference to the one BuddyPress ships with. Read more about adding custom template parts: https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/June 27, 2016 at 5:49 pm #255342In reply to: Activity embeds in activity stream
binary10
Participant@r-a-y i am not using any such custom code. I tested with all plugins disabled and with 2016 theme but doesn’t work. So i installed WP and BP separately to test and it worked but I still cannot get it to work on the main site. Anyways, thanks for your help
June 27, 2016 at 5:21 pm #255340In reply to: Help with user menu
danbp
ParticipantCheck your theme documentation and read WP’s Menu Guide.
June 27, 2016 at 5:19 pm #255339In reply to: How to add widget to new front.php template
danbp
ParticipantRead from here:
June 27, 2016 at 5:05 pm #255336In reply to: bp_activity_filter_kses function
danbp
Participantcolor buttons are TinyMCE tools and not html tags. The only way to get them would be to use the editor toolbar.
Here a scenario you could use:
– create a child-theme and add post-form.php to it (copy from bp-templates/bp-legacy/buddyPress/activity/post-form.php).
Result:your-child-theme/buddypress/activity/post-form.phpIn that file, go to line:40 where textarea start.
Inser this action hook:<?php if ( bp_is_groups_component() ) : ?> <?php do_action( 'blablabla' ); ?> <?php endif ?>Then add this
<?php if ( ! bp_is_groups_component() ) : ?>
<textarea class="bp-suggestions"......bla...bla...</textarea>
and add <?php endif ?> after the textarea closing tag.This contionnals will show a custom area for the desired group and prevent update area to appear on all other groups home pages.
So if a user is member of different groups, he will get a texteditor for group_id 13 and the normal update area on all others.
The custom template is ready. Now the fonctions we need.
Open bp-custom.php (or create it) and paste in those snippets.
Adding the texteditor:
function bpfr_whats_new_tiny_editor() { // deactivation of the visual tab, so user can't play with style tools //add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 ); $content = ""; // building the what's new textarea if ( isset( $_GET['r'] ) ) : $content = esc_textarea( $_GET['r'] ); endif; // adding tinymce tools $editor_id = 'whats-new'; $settings = array( 'textarea_name' => 'whats-new', 'teeny' => false, 'media_buttons' => true, 'drag_drop_upload' => true, 'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' )); // get the editor wp_editor( $content, $editor_id, $settings ); } add_action( 'whats_new_textarea', 'bpfr_whats_new_tiny_editor' );A simple function who add the original textarea for users who are group members, but not allowed to rich edit.
function my_textarea() { ?> <textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10" <?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?> ><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea> <?php }And the last one, where you set up the group allowed to publish updates using edit tools.
function trotro() { if ( bp_is_groups_component() ) : $check = groups_is_user_member( bp_loggedin_user_id(), bp_get_group_id() ); $check_group = bp_get_group_id(); if ($check != 0 && $check_group == 21 && 'leon' == bp_current_item() ){ echo 'Wow! You can rich edit in this group.'; bpfr_whats_new_tiny_editor(); } else { echo 'Sorry, you cannot rich edit in this group'; my_textarea(); } endif; } add_action( 'blablabla', 'trotro' );Now, any member which is part of the group leon, group id 23 can publish updates and use the color picker and all other things which are on the edit bar.
Only thing you have to do is to adjust leon and id to your rules.
Successfully tested on 2.6 and 2016.
May this help you to go further with your BuddyPress project. 🙂
June 27, 2016 at 4:16 pm #255331In reply to: Fatal error after update
r-a-y
Keymaster@oddreal – Without having access to the theme, it’s hard to tell what the problem is, but I’m guessing it’s a problem with not checking if the Groups component is active.
Tell the theme author to use
bp_is_active( 'groups' )to check if the Groups component is active before doing whatever group check is applicable in the widget code.June 27, 2016 at 4:12 pm #255329In reply to: Fatal error after update
oddreal
Participant@r-a-y, it’s a premium theme. Please see the link on it:
http://themeforest.net/item/lms-responsive-learning-management-system-wordpress-theme/7867581/supportHere can also be requested a backend demo.
Thank you for a prompt reply.
June 27, 2016 at 4:07 pm #255327In reply to: Fatal error after update
r-a-y
Keymaster@oddreal – Is this theme freely available on wordpress.org or Github so we can take a look? Or is this a premium theme?
June 27, 2016 at 4:02 pm #255326In reply to: Fatal error after update
oddreal
ParticipantHi,
I’ve faced the same problem. The patch https://buddypress.trac.wordpress.org/attachment/ticket/7140/7140.01.patch releaved me from the initial problem but now I have another one error message at the same place – Courses Group widget (it doesn’t allow to edit Courses):
Fatal error: Class ‘BP_Groups_Group’ not found in /path-to-project/wp-content/themes/lms/framework/buddypress/metaboxes.php on line 15Please advise.
June 27, 2016 at 2:56 pm #255319In reply to: Embedded webpages on activity feed?
danbp
ParticipantMaybe a theme setting or function ? What if you deactivate BP Wall ?
June 27, 2016 at 12:59 pm #255314In reply to: calling BP function in bbpress return nothing
shanebp
ModeratorYou should not change that function. You should use the hook.
Try something like this in your theme functions.php:
function hosam_delete_notification( $topic_id ) { // you cannot send an array // create individual variables $user_id = 386; // etc bp_notifications_delete_notifications_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false ); } add_action( 'bbp_trash_topic', 'hosam_delete_notification' );June 27, 2016 at 12:35 pm #255309In reply to: Activity embeds in activity stream
danbp
Participantdid you tested with 2016 and all plugins disabled ?
Does your theme use some specific functions for BP ?
Have you custom code in bp-custom or functions.php ?June 27, 2016 at 9:14 am #255299In reply to: Full Width
Lars Henriksen
ParticipantHi Snorklebum,
Thanks for sharing – can I see your page?
I would like to use a full-width template for group pages only.
Did you just upload a file named ‘full-width.php’ in you child theme with
<body <?php if ( !bp_is_blog_page() ) { body_class( ‘full-width’ ); } else { body_class(); } ?>>?How do you activate full-width for buddypress groups only – code says ‘blog_page’?
Thanks,
Lars
June 27, 2016 at 7:23 am #255288In reply to: Activity embeds in activity stream
binary10
ParticipantWhat type of activity item are you trying to embed?
status update
I saw the video but it doesn’t work on my installation. I am using WP 4.5.3 and BP 2.6. Also as in the video when the permalink is pasted into the visual editor it immediately gets converted into an embed but it doesn’t happen with my install. Is it some problem with WordPress? Other embeds work fine
Also tested with 2016 theme but still doesn’t work? What might be the problem?
thanksJune 27, 2016 at 2:47 am #255280In reply to: Post Update: Unable to See the buddypress Activity
tse11
ParticipantIs there any other solution besides rolling back. My theme is now updated to accommodate the new BudyPress and this would cause another problem.
June 26, 2016 at 1:27 pm #255255In reply to: l can not change the link extension
danbp
ParticipantNav items names can be changed via the language file.
Which language do you use on your site ?
Which language is used with BuddyPress ? (if turkish, get in touch with one of the editors here and ask for update)
Is your theme fully translated to that language ?To move the User Menu sub-menu, read here.
Check also your theme support forum, perhaps you’ll find some related topics to this WP core menu.
-
AuthorSearch Results