Search Results for 'theme'
-
AuthorSearch Results
-
September 9, 2015 at 3:02 pm #244182
In reply to: Private Messages – Reply only for Admins
danbp
Participant@tischla,
unable to reproduce your issue.
Did you activated Private Messaging component in BP settings ?Which them and plugins are you using ?
Have you tested with only WP/BP enabled (without other plugins) and One of Twenty’s theme ?September 8, 2015 at 11:37 pm #244175rezon8dev
ParticipantOK will do @shanebp.
Can anyone give me a hand and let me know if this code looks proper? Even if I remove this from my child theme functions.php file and add the following to my member-header.php file:bp_member_profile_data( 'field=Artist Name' ); bp_member_profile_data( 'field=Musical Genre' ); bp_member_profile_data( 'field=Location' );I get similar results; the custom fields being displayed multiple times, oddly when I add the above to the member-header.php I get the Artist name field showing 4 times in a row rather than repeating sets of fields 1-4 and then fields 1-4 again duplicating when the code in a previous post above is in the functions file…
September 8, 2015 at 10:32 pm #244172rezon8dev
Participant@shanebp, I’ve tracked it down but still cant figure out what is wrong. This was all working until I upgraded to the latest bp… It is in my functions file for my theme, it is this function to place 3 xprofile fields in the member header area:
/** * Add extended profile fields to the member profile header area */ add_action( 'bp_profile_header_meta' , 'display_user_xprofile_fields' ); function display_user_xprofile_fields() { $artistname = bp_get_member_profile_data('field=Artist Name'); $musicalgenre = bp_get_member_profile_data('field=Musical Genre'); $location = bp_get_member_profile_data('field=Location'); if ($artistname || $musicalgenre || $location) { echo '<div class="mdetcenter artist"><h4 class="user-nicename">'. '' . $artistname . '</h4></div>'; echo '<div class="mdetcenter genre">'. '' . $musicalgenre . '</div>'; echo '<div class="mdetcenter location">'. '' . $location . '</div>'; } }Can you see what is wrong? This is driving me crazy…
September 7, 2015 at 4:37 pm #244153In reply to: Users can´t create groups!
modemlooper
Moderatoryou need to debug a bit, try deactivating plugins and change themes to verify those are not causing the problem.
Are you running a cache on the site?
September 6, 2015 at 1:31 pm #244119danbp
ParticipantYes ! You need to use template overload, then you can remove that part from the template.
While creating a new group:
See bp-templates/bp-legacy/buddypress/groups/create.php
While modifying a group:
bp-templates/bp-legacy/buddypress/groups/single/admin.phpCaution: if you do this, you can only use public or private groups. Hidden groups are “invite users” only.
September 6, 2015 at 8:32 am #244118In reply to: Profile Signature
danbp
ParticipantIt is standard! At least if you use xprofile component to let your users enter their signature.
1) Create a new field. Call it Signature and give it a textarea type.
2) Once this field is edited by a user, during registration or later, the signature appears on his profile.3) if you want this field somewhere else, for ex on the profile header, you simply write a function to call this field and hook it into the template you want.
Ie. Add this to child theme functions.php or bp-custom.php
function my_signature() { if ( bp_is_active( 'xprofile' ) ) if ( $signature = xprofile_get_field_data( 'Signature', bp_get_member_user_id() ) ) : // field name; case sensitive echo $signature; endif; } add_filter( 'bp_before_member_header_meta', 'my_signature' );Or to use Henry’s advice
add_filter( 'bp_after_profile_content', 'my_signature' );Reference
September 6, 2015 at 7:56 am #244115danbp
ParticipantPlease give details about your config: theme, plugin list.
https://buddypress.org/support/topic/when-asking-for-support-2/On a default install, there are no restriction for visitors to see all profiles.
Have you tested without captcha plugin ?
Do you use a cache ?
While testing after been connected as admin, it’s important to ensure that your brower history & cookies are cleared.September 6, 2015 at 6:02 am #244113Tafmakura
ParticipantFound the solution, by placing buddypress.js in my child theme file (childtheme/buddypress/js/buddypress.js) as advertised, the problem was the activity privacy plugin https://wordpress.org/plugins/buddypress-activity-privacy/ this conflicts with my overide, afteruninstalling it my buddypress.js works!!!
September 5, 2015 at 7:25 pm #244103shanebp
ModeratorIf you use Dan’s approach, you want to do it by first making a template overload of the file he links to. And then writing a conditional for the calls to the user link. It will work fine.
Or you can use the filter hook for
bp_activity_user_link()and then you don’t need to touch template files. You could write a filter in theme/functions.php – something like:function imborx_profile_link( $link ) { if( $link != bp_loggedin_user_domain() ) $link = // custom url return $link; } add_filter( 'bp_get_activity_user_link', 'imborx_profile_link', 15, 1 );September 5, 2015 at 6:41 pm #244100danbp
ParticipantSee template entry.php
Caution: modification are preferably done via child-theme.
September 5, 2015 at 3:13 pm #244091In reply to: [Resolved] Gravatar won’t update?
shanebp
ModeratorThis is not a gravatar:
http://chocobento.x10.mx/wp/wp-content/uploads/avatars/1/63d3ab039b099fd772971c5498789561-bpfull.jpg

You can disable gravatars by adding this to your theme/functions.php
add_filter('bp_core_fetch_avatar_no_grav', '__return_true');September 5, 2015 at 12:23 pm #244083In reply to: [Resolved] How To Get Notification Count? (Code)?
AilyRoot
ParticipantHello
thanks for this, but I am not looking for customize that tool bar, we want to move that part to somewhere else on to theme though
September 5, 2015 at 11:35 am #244080In reply to: No option to upload profile photo in BP
Henry Wright
ModeratorCan you try deactivating all of your plugins whilst you have the TwentyFifteen theme activated? Sometimes a rogue plugin can be responsible.
September 5, 2015 at 9:45 am #244073In reply to: New plugin: BuddyPress Mute
Henry Wright
ModeratorHey djsteveb
Thanks for your feedback! As you say it could be a plugin conflict or maybe even a theme issue.
Not using GitHub isn’t a problem. Once you’ve completed all of your tests, can you post the issues you find on the plugin’s support forum? I’d be happy to take a look
September 5, 2015 at 7:29 am #244069In reply to: [Resolved] How To Get Notification Count? (Code)?
danbp
Participanthi ailyroot,
no time to sort out what you need, but see here 3 snippets using different wya to add such item to a theme main menu or custom menu, with fixed or free position… Test and take the one you need.
//fixed position function my_nav_menu_notif_counter($menu) { if (!is_user_logged_in()) return $menu; else $notif = '<li>Notif '. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</li>'; $menu = $menu . $notif; return $menu; } add_filter( 'wp_nav_menu_items', 'my_nav_menu_notif_counter' ); //choose position function my_nav_menu_positioned_notif_counter( $items, $args ) { if( $args->theme_location == 'primary' ) // only for primary menu { $items_array = array(); while ( false !== ( $item_pos = strpos ( $items, '<li', 3) ) ) { $items_array[] = substr($items, 0, $item_pos); $items = substr($items, $item_pos); } $items_array[] = $items; array_splice($items_array, 0, 0, '<li>Notif '. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</li>'); // 0,0 is first position, 1,0 is second, etc $items = implode('', $items_array); } return $items; } add_filter('wp_nav_menu_items','my_nav_menu_positioned_notif_counter', 10, 2); // depending the theme, $theme_location may vary and this one use a menu ID function my_notif_link( $items, $args ) { $theme_location = 'primary';// Theme Location slug $existing_menu_item_db_id = 6; // menu id $new_menu_item_db_id = 66; // unique id number $label = 'Notificationas '. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); $url = bp_core_get_user_domain(bp_loggedin_user_id()) .'notifications/'; if ( $theme_location !== $args->theme_location ) { return $items; } $new_links = array(); if ( is_user_logged_in() ) { // only if user is logged-in, do sub-menu link $item = array( 'title' => $label, 'menu_item_parent' => $existing_menu_item_db_id, 'ID' => 'fugit', // menu name 'db_id' => $new_menu_item_db_id, 'url' => $url, 'classes' => array( 'menu-item' ) ); $new_links[] = (object) $item; // Add the new menu item to our array unset( $item ); // in case we add more items below $index = count( $items ); // integer, the order number. // Insert the new links at the appropriate place. array_splice( $items, $index, 0, $new_links ); // 0,0 is first position, 1,0 is second, etc } return $items; } add_filter( 'wp_nav_menu_objects', 'my_notif_link', 10, 2 );Happy testing 😉
September 5, 2015 at 3:36 am #244065In reply to: [Resolved] How To Get Notification Count? (Code)?
AilyRoot
ParticipantHi guys
we are looking for solution to get buddypress notifications work on our theme, we know it will be shown on wordpress’s default top tool bar but we want it to show somewhere else.We are using WP 4.3 with buddypress 2.3.3, we have added these to theme’s functions.php
function bpfr_add_notification_to_page_title( $title, $original_title, $sep ) { //do not change if the user is not logged in if( ! is_user_logged_in() ) return $title; $user_id = get_current_user_id();//logged in user's id $count = bp_notifications_get_unread_notification_count( $user_id ); if( $count > 0 ) $title = sprintf( "You Have %d New Notification(s) - ", $count ); return $title; } add_filter( 'wp_title', 'bpfr_add_notification_to_page_title', 100, 3 );then we add these to theme ‘s menu location
<?php echo bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); ?>but it is showing nothing, what is the correct steps to make this work please?
thanks
September 4, 2015 at 1:54 pm #244048In reply to: Issues displaying BuddyPress on my theme
itslino
Participant@djsteveb It’s not that its a mess.
I simply used the blankslate theme, then I wrapped the container within the wrapper to allow the menu css3 animation to work.BuddyPress is the only thing I’m having issues with, everything else works fine.
I just can’t tell why buddypress can’t display profiles. So i simply disabled it and am now looking for an alternative.September 4, 2015 at 8:48 am #244046In reply to: want to change the back ground colour
Paul Bursnall
ParticipantMake sure this is in your child theme custom css:
#td-outer-wrap { background-color: #colourhere; }
September 4, 2015 at 6:54 am #244043In reply to: Issues displaying BuddyPress on my theme
djsteveb
Participant@itslino – yeah I don’t see much about them in there either – the theme docs are a mess here, and non-existent for 2015 theme as well.
There was some site that listed a bunch of wordpress code and buddypress code – searchable and such, but I can’t .. wait I think it’s called hookr.io or something – found it – http://hookr.io/plugins/buddypress/#index=a if you type css in the filter box it limits what is displayed – it may help – but not sure. I have no idea how that works, if it’s up to date, and if all bp styling stuff actually has “css” in it’s tag or whatever.
I guess you could change to 2014 theme and go to each page and right click property inspector and copy the css.. then put that into notepad and search for everything “buddypress” – at least that’s what I have been thinking about doing.. I think there is also some different styles with 2014 and 2015 depending on what screen size you are viewing with – so may hve to check various media queries.. no idea if there is a better way.
I want to make some custom bp themes, but I can’t even get proper docs on working with latest / best coding practices with the wp default themes at the moment. There is some details on thesis.com err.. themeshaper.com – I think that stuff is out of date though –
If you get it figured out I’d love to see some info put together on all this.
September 4, 2015 at 4:47 am #244041In reply to: Issues displaying BuddyPress on my theme
djsteveb
Participanthave you looked into the codex area?
( https://codex.buddypress.org/themes/ )I have not yet begun to learn all that, so I can’t tell you anything about it.
Themes and buddypress and me are a challenge to say the least.. especially if you mixin rtmedia plugin.
Only thing I have been able to do is go back to the 2014 theme and try modding that.
September 4, 2015 at 4:43 am #244040In reply to: want to change the back ground colour
djsteveb
Participantman your theme there has a lot of places where the background color is set.. some for different screen sizes.. some just setting the background for menu and the search box..
open up your style.css and do a ctrl+f (find) for: background
start trying different values is all I can guess. I can’t find that particular rule using property inspector or firebug.. maybe you just need to add the rule. (save a copy of your original)
I’m not really sure, and not a css expert or anything..
But this isn’t really a byddypress fourm question – it’s more of a question for the theme and plugin designers perhaps.. maybe do some searches for “modifying wordpress themes”
September 4, 2015 at 4:25 am #244038In reply to: Buddypress pages not working
JigmeDatse
ParticipantWith Twenty Fifteen as the theme, and no other plugins enabled, the pages show up entirely blank. I’d really like to be able to use BuddyPress, but right now I don’t see what I can do to fix this.
Is it possibly an issue with the mod_rewrite either not being enabled on the Apache server, or that the .htaccess is missing something that needs to be in there?
September 3, 2015 at 6:47 pm #244030In reply to: Unable to create groups
shanebp
ModeratorIt’s probably more than a css issue.
Unless somebody else has that exact theme, it’s doubtful you’ll get much help.Since it’s a premium theme, try asking the theme author for support.
September 3, 2015 at 5:09 pm #244024In reply to: Unable to create groups
CarrieOlsen
ParticipantThanks for the reply. I figured it was incompatibility with the theme. Any suggestions on a fix without having to change themes? Like something that can be done with the CSS?
September 3, 2015 at 4:23 pm #244021In reply to: Unable to create groups
shanebp
ModeratorIt’s probably an issue with your theme.
To confirm, try switching to a WP theme like 2015. -
AuthorSearch Results