Search Results for 'theme'
-
AuthorSearch Results
-
June 17, 2016 at 8:14 pm #254759
In reply to: Activity Feed
rblea24
ParticipantThe link is not restricted to members anymore.
–https://www.goalsarecool.com/activity/
Yes, users can comment on my site.
Yes, I have tested with Twenty Sixteen theme and the issue is still there.Anything you can do to help would be greatly appreciated.
Thanks!
June 17, 2016 at 7:31 pm #254757danbp
ParticipantYou have to debug and for this, use a Twenty theme. Read more use ajax and can generate conflict with outdated theme or plugins, or simply not updated js files.
Actually there is a little JS notice:
OneSignal: Could not load iFrame with URL https://otoparkcom.onesignal.com/sdks/initOneSignalHttp. Please check that your 'subdomainName' matches that on your OneSignal Chrome platform settings. Also please check that your Site URL on your Chrome platform settings is a valid reachable URL pointing to your site.June 17, 2016 at 7:00 pm #254754danbp
Participantwhen the cover image option is enabled, BP use cover-image-header.php not member-header.
To get your idea to work, you need a function to calculate who is online and to add a class to the exiting div. Depending the result, we can then add an online or an offline class.
And of course, some css rules.The function to add this class to the div with an action hook.
Add it to bp-custom.phpfunction check_connected(){ $last_activity = bp_get_user_last_activity( bp_displayed_user_id() ); $curr_time = time(); $diff = $curr_time - strtotime( $last_activity ); $time = 5 * 60; // = 3mn - time must be in seconds if( $diff < $time ) { echo 'online'; } else { echo 'offline'; } } add_action( 'online_class', 'check_connected' );Now you just have to add the hook to the template. Open from within child-theme,
/buddypress/members/single/cover-image-header.php
Go to line 25, and change
<div id="item-header-avatar">
to
<div id="item-header-avatar" class="<?php do_action( 'online_class' ); ?>">Open /child-theme/style.css and add:
div.online img { border: solid 2px #008000!important; background: rgba( 255, 255, 255, 0.8 )!important; } div.offline img { border: solid 2px #be3631!important; background: rgba( 255, 255, 255, 0.8 )!important; }And voila, you’re done !
Note: you can use the same hook in member-header.php, so you can enable/disable cover-image without loosing the on/offline layout on profile header avatar.
June 17, 2016 at 4:17 pm #254744In reply to: Default Profile Visibility
Paul Wong-Gibbs
KeymasterThat screen isn’t provided by BuddyPress. It’s something provided by another plugin, or perhaps within the theme. Can you identify which one?
June 17, 2016 at 2:25 pm #254740sharmavishal
Participantthis should fix it for u
THEME UPDATE – VERSION 3.0.11 (June 7th 2016)
Updates and fixes.
Updated to Slider Revolution v5.2.5.3.
Fixed BuddyPress multi-field checkboxes being output twice.
Fixed some PHP notices.June 17, 2016 at 2:17 pm #254736danbp
ParticipantI’m unable to reproce this issue.
Check following tables for duplicate entries in DB
wp_bp_xprofile_fields and wp_bp_xprofile_groups (wp is the table prefix; could be different on your install)Provide the list of used & activated plugins.
Did you found a similar issue mentionned on Salutation support ?
Note that it’s a premium theme for which we can’t assist you, as we have no access to it’s code or support.June 17, 2016 at 1:29 pm #254735jodys
ParticipantI did more testing. It’s not the theme.
I have two other groups of fields that have single select radio buttons. When I changed the type of field to multi-select radio button instead of checkboxes, it worked.
June 17, 2016 at 12:27 pm #254734In reply to: global avatar
sharmavishal
ParticipantJune 17, 2016 at 8:31 am #254730sharmavishal
Participantcan u test this on default 2015 or 2016 theme and let me know if the issue still remains?
June 17, 2016 at 8:29 am #254729In reply to: Private messages isn’t working
sharmavishal
Participant@sjoerdlagraauw as r-a-y mentions test this version of bp
BuddyPress 2.6.0 Release Candidate 1 now available for testing
regarding @mention as danbp suggested its not a bp issue. i checked this myself. its working in default 2016 theme of wp. but NOT working for other paid themes i have.
mostly paid themes or custom themes use their own jss/css stuff in their own custom manner which creates an issue.
if you got jss/css issues best of be asked at the custom themes support
June 17, 2016 at 6:22 am #254724In reply to: Private messages isn’t working
Sjoerdlagraauw
ParticipantJust to make sure I understand. Is it a theme problem of will it be solved in the next update of Buddypress @sharmavishal, @r-a-y and @danbp? Cause there are some other issues with ajax in this theme as well.
I am in no hurrie so if it will be solved next week that would save me a lot of searching and debugging 😉
Thanks for all the help!
June 16, 2016 at 9:29 pm #254713danbp
ParticipantI tested your code and got first a page not found error while trying to send a private message from the new position.
I deactivated both action hook in cover and home files.
Disallowed cover image option. And tested again and everithing worked.
Allowed cover image and worked also.So i confirm that your code works and all buttons show up (with active href’s), at least with Twenty Sixteen theme, at the members profile page bottom.
In resume, the only thing you have to do is to deactivate the original action hook in both files (so you can allow/disallow cover images).
Forgot to mention that there is a litle error in your code line 133
<?= wpautop(xprofile_get_field_data("About me", bp_displayed_user_id() ) ); ?>Should be
<?php wpautop(xprofile_get_field_data("About me", bp_displayed_user_id() ) ); ?>June 16, 2016 at 6:38 pm #254695danbp
ParticipantI made some changes on BuddyPress theme
– if don’t show what you did, how could it be possible to help you ?
Revert back step by step to find what you did wrong.
June 16, 2016 at 6:32 pm #254694In reply to: Remove nav items and hide header
danbp
Participantyou can use a function within bp-custom.php
Something like:function bpfr_remove_nav_tabs() { bp_core_remove_nav_item( 'messages' ); // and so on for each item you want to remove } add_action( 'bp_setup_nav', 'bpfr_remove_nav_tabs', 15 );References
nav-item
http://hookr.io/plugins/buddypress/2.4.3/functions/bp_core_remove_nav_item/
sub-nav-itemFor the header thing, see template file and made your modification from within a child-theme.
– profile pic and username: bp-templates/bp-legacy/buddypress/members/single/member-header.php
– cover image: bp-templates/bp-legacy/buddypress/members/single/profile.phpJune 16, 2016 at 3:58 pm #254658In reply to: Private messages isn’t working
sharmavishal
Participantdanbp is right…i tested @mentions on kleo/boss themes and didnt work….it worked on 2016 wp theme
June 16, 2016 at 3:40 pm #254645In reply to: Private messages isn’t working
danbp
Participantout of the box, i have no idea. Something is apparently called to early. It’s difficult to say “what”. Have you tested with a Twenty theme ?
Maybe check also all your js file version, ensure also the’re unique. If you find two with diff. version #, remove the oldest…Search also on forum for missing @mention or @mention not working….
That’s even debuging… you have to search long and hard. 😉
June 16, 2016 at 2:23 pm #254641Masoud
Participant@shanebp
hi. tnx for answer and patience. got 5 more minutes? 🙂
i read and worked on what you said. and if i want to be honest, i could’t do anything special unfortunately.
now, i want to ask your opinion about this idea:
i’ve come up with the idea of hiding that field. (not email field), how?
with the use of if condition… (if it’s not empty show it. if it has data, hide it)!
——-
i’ve created a custom-meta with this code in theme functions:add_action( 'personal_options_update', 'my_save_extra_profile_fields' ); add_action( 'edit_user_profile_update', 'my_save_extra_profile_fields' ); function my_save_extra_profile_fields( $user_id ) { if ( !current_user_can( 'edit_user', $user_id ) ) return false; /* Copy and paste this line for additional fields. */ add_user_meta( $user_id, ‘person_relation’, 30318 ); update_usermeta( absint( $user_id ), 'person_relation', wp_kses_post( $_POST['person_relation'] ) ); update_user_meta( $user_id, 'person_relation', $_POST['person_relation'] ); }and used it in my buddypress signup form, to get data from users. ok?
after what you said, i went to edit.php (copy to my theme buddypress folder…)
and added these codes. but it seems that they do not recieve/send data at all.
it looks like they are empty!! 😐
after<?phpat the start,
i added :global $user, $user_id; $person_relation = get_the_author_meta( 'person_relation', $user->ID ); $user_id = get_current_user_id();and in the
<form>,
i added this piece of code (not working)
then copied and changed the “save changes button”.
so there is 2 buttons. one is for my-custom-meta, and the other is for buddypress form.
buddypress edit page
if user writes the name and click save. the box/button, all should gone. and i have to see the data in Users admin panel.
but nothing is getting save… and i dont know where am i doing it wrong<?php if( $person_relation == '' ): ?> <tr> <th><label for="person_relation">Invitor's Name</label></th> <td> <input type="text" name="person_relation" id="person_relation" value="<?php update_usermeta( $user_id, 'person_relation', $_POST['person_relation'] ); ?>" class="regular-text" /><br /> <span class="description">Please enter your invitor's name.</span> </td> </tr> <input type="hidden" id="userID" value="<?php echo $user_id ?>"/> <div class="submit"> <input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php esc_attr_e( 'Save Name', 'buddypress' ); ?> " /> </div> <input type="hidden" name="person_relation" id="person_relation" value="<?php update_usermeta( $user_id, 'person_relation', $_POST['person_relation'] ); ?>" /> <?php add_action( 'personal_options_update', 'my_save_extra_profile_fields' ); ?> <?php add_action( 'edit_user_profile_update', 'my_save_extra_profile_fields' ); ?> <?php do_action( 'xprofile_profile_field_data_updated'); ?> <?php endif; ?>so sorry for long description. tnx for help.
any suggestions do you have?June 16, 2016 at 12:11 pm #254626In reply to: Private messages isn’t working
danbp
ParticipantPrivate message
A user must have friends to send private messages or visit the profile of another user to send him a msg.
To get it to work, you need also to enable following options in BP settings:
– Friend Connections
– Private messaging
Additionnally, if you want to be notified by email
– NotificationsWhatever the option you activate, best practice is to control how it works on your config. To do that, use only WP, BP and one of Twenty’s theme before activating a third party theme and any other plugin.
This will ensure you that BP is fully working on a standart WP config.Mention
@mention use AJAX which can in some case, mostly with sophisticated themes or frameworks, lead to conflict. In that case, the culprit isn’t BP or WP, but the theme or a plugin whose code (generally) use a different standart as WP.
If you get issues with mention or messaging, activate wp_debug in wp-config and check your browser JS console to track down errors. The one or the other can give you precious debug information. You can also use a debug tool like Firebug.
June 15, 2016 at 5:35 pm #254584danbp
Participantadd this from within your child-theme style.css:
#buddypress .standard-form#signup_form div.submit { float: left!important; background-color: orange!important; height: auto!important; } #buddypress .standard-form div.submit input { margin: -12px 3px 3px 3px!important; }June 15, 2016 at 11:53 am #254573Topic: Blank notifications in Buddypress
in forum How-to & Troubleshootingmyndphunkie
ParticipantHi Guys,
BuddyPress v2.5.3
Wordpress v4.5.2
My own theme created with ArtisteerGetting blank notifications for every user. Seems to happen when something is triggered (ie: user is mentioned in the activity wall or something else).
Never used to happen, can only assume an update has caused it.
Has anyone else had this? Is there a log file I can check to see what’s going on?
Thanks
June 15, 2016 at 6:45 am #254566In reply to: register page problem
Masoud
Participantsolved it.
hopefully someone from wordpres.org helped me.
here is the link for anyone in the future faced the same problem as me.
wordpress.org pagethe answer was:
If you want to add some user meta info in user database while registration you need to use “user_register” filter like below code:Add code in your themes function.php fileadd_action( 'user_register', 'my_user_meta_save', 10, 1 ); function my_user_meta_save( $user_id ) { if ( isset( $_POST['first_name'] ) ) update_user_meta($user_id, 'first_name', $_POST['first_name']); }June 14, 2016 at 7:37 pm #254555In reply to: Hide All Members Tag
danbp
ParticipantNo idea ! The snippet doesn’t change any URL, it only remove the count part of the original text.
Check your theme or any custom function using a redirection. Sorry, can’t help you for this issue.June 14, 2016 at 1:22 pm #254545dainismichel
Participanti have an important project to finish, so i can’t post my setups right now — but honestly — i was hoping that others would post reasonable plugin and theme combinations that work well when installed. basically, combos where you can configure some settings, sure, but where you don’t have to do custom programming just to get basic community registration, splog protection, and member interaction to work properly.
June 14, 2016 at 4:48 am #254536In reply to: WP User Avatar Not Showing in BuddyPress
r-a-y
KeymasterSo what you’re looking for is to use a custom user avatar instead of BuddyPress’?
Try the following code snippet in your theme’s
functions.phporwp-content/plugins/bp-custom.php:remove_filter( 'get_avatar', 'bp_core_fetch_avatar_filter', 10, 6 );Update – That code snippet only reverts the avatar in WordPress posts and comments.
To override BuddyPress avatars in BuddyPress content with a custom avatar solution, you would have to hook into the
'bp_core_fetch_avatar'filter:
https://buddypress.trac.wordpress.org/browser/tags/2.5.3/src/bp-core/bp-core-avatars.php?marks=534-549#L534June 13, 2016 at 11:14 pm #254531In reply to: text field pre fill
danbp
ParticipantThe correct file is bp-legacy/buddypress/activity/post-form.php. Don’t modify it, but copy/paste (same path – same file name) buddypress/activity/post-form.php to your child-theme and do your changes from there.
-
AuthorSearch Results