Forum Replies Created
-
Author
-
CenkParticipant
Hi,
I tried the code. The profile fields are still linked. It works when I deactivate the Buddypress Xprofile Custom Fields plugin.
I did this.
<?php
if ( !defined( ‘BP_AVATAR_THUMB_WIDTH’ ) )
define( ‘BP_AVATAR_THUMB_WIDTH’, 120 ); //change this with your desired thumb widthif ( !defined( ‘BP_AVATAR_THUMB_HEIGHT’ ) )
define( ‘BP_AVATAR_THUMB_HEIGHT’, 120 ); //change this with your desired thumb heightif ( !defined( ‘BP_AVATAR_FULL_WIDTH’ ) )
define( ‘BP_AVATAR_FULL_WIDTH’, 580 ); //change this with your desired full size,weel I changed it to 260if ( !defined( ‘BP_AVATAR_FULL_HEIGHT’ ) )
define( ‘BP_AVATAR_FULL_HEIGHT’, 580 ); //change this to default height for full avatardefine( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );
define( ‘BP_GROUPS_DEFAULT_EXTENSION’, ‘members’ );
function remove_xprofile_links() {
remove_filter( ‘bp_get_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 9, 2 );
}
add_action( ‘bp_init’, ‘remove_xprofile_links’ );?>
Thanks again.
CenkParticipantHi,
Can you help me to remove the profile links?
Example:
Name: Something (linked)
Gender: Something (linked)I’m using Buddypress Xprofile Custom Fields Type plugin
Thanks,
Cenk
CenkParticipantI made a comment as another user. Still no results.
<?php /* Only show if Buddypress is installed */ ?><?php if (function_exists(‘bp_is_active’)): ?><li class=”relative”>” class=”tiny secondary button radius”><i class=”icon-user hide-for-medium-down”></i> <?php _e(“PROFILE”, ‘kleo_framework’); ?><div class=”kleo-notifications”><?php<?php $comments_count = wp_count_comments(); if ($comments_count->moderated && is_super_admin()) { ?>” class=”kleo-message-count has-tip tip-left”><?php echo $comments_count->moderated; ?><?php } ?>” class=”kleo-message-count has-tip tip-left”><?php echo $comments_count->moderated; ?><?php } ?><?php if( bp_is_active(‘messages’) && messages_get_unread_count() > 0 ) { ?>” data-width=”210″ title=”<?php _e(“New messages”, ‘kleo_framework’);?>” class=”kleo-message-count “><?php echo messages_get_unread_count(); ?><?php } ?><?php if (bp_is_active(‘friends’) && bp_friend_get_total_requests_count() > 0): ?> ” data-width=”210″ title=”<?php _e(“Friend requests”, ‘kleo_framework’);?>” class=”kleo-friends-req “><?php echo bp_friend_get_total_requests_count(); ?><?php endif;?></div>
CenkParticipantI paste the code after <div class=”kleo-notifications”> But it doesn’t work somehow.
<li class=”relative”>” class=”tiny secondary button radius”><i class=”icon-user hide-for-medium-down”></i> <?php _e(“PROFILE”, ‘kleo_framework’); ?><div class=”kleo-notifications”><?php $comments_count = wp_count_comments(); if ($comments_count->moderated) { ?>” class=”kleo-message-count has-tip tip-left”><?php echo $comments_count->moderated; ?><?php } ?><?php if( bp_is_active(‘messages’) && messages_get_unread_count() > 0 ) { ?>” data-width=”210″ title=”<?php _e(“New messages”, ‘kleo_framework’);?>” class=”kleo-message-count “><?php echo messages_get_unread_count(); ?><?php } ?><?php if (bp_is_active(‘friends’) && bp_friend_get_total_requests_count() > 0): ?> ” data-width=”210″ title=”<?php _e(“Friend requests”, ‘kleo_framework’);?>” class=”kleo-friends-req “><?php echo bp_friend_get_total_requests_count(); ?><?php endif;?></div>
CenkParticipantAnd is there a way to include the comments in the messages notification? For Example: Somebody comments on my post, and I get a message notification.
September 10, 2013 at 17:38 in reply to: How to disable "New messages" and "Friend requests" title balloons? #2607CenkParticipantThanks. It works!
September 10, 2013 at 09:34 in reply to: How to disable "New messages" and "Friend requests" title balloons? #2582CenkParticipantI want to keep the notifications. I only want to disable the text balloon (hover- black)
“New messages” and “Friend requests” Is that possible?CenkParticipantI’ve just noticed that the menu position is slightly different in Firefox .
Safari and Chrome are the same.CenkParticipantThanks again. It works! I’m learning a lot:) I managed to disable the menu hover. But now I’m wondering how to put the two notification pop-up buttons on top of the menu button….that means first clickable.. (think in layers)
At the moment they are behind the wp-menu buttons…(background)CenkParticipantThanks! I would like to replace the text with an image/icon. I tried it in Css. But it doesn’t work properly.
Example: I traced the messages (menu) link with firebug and adjust it in Css
COPY CODEdiv.kleo-page header div.header-bg div#header div.row div.eight div.contain-to-grid nav.top-bar section ul#menu-new-menu.left li a{ background-position: left; background-repeat: no-repeat; background-image:url(http://…..com/wp-content/uploads/2013/08/messagesicon.svg) }
But then the other dynamic links get the same icon image. I can’t do it separately.
Is there a way to adjust it in the functions.php?COPY CODE$profilelink .= '<li><a href="' . bp_loggedin_user_domain( '/' ) . 'messages" rel="nofollow">' . __('Messages','buddypress') . '</a></li>';
(removing the text “messages” ..and replacing it with an icon image…doesn’t work this way)
COPY CODE$profilelink .= '<li><a href="' . bp_loggedin_user_domain( '/' ) . 'messages" rel="nofollow">' . __('background-image:url(http://......com/wp-content/uploads/2013/08/messagesicon.svg)','buddypress') . '</a></li>';
I really appreciate your support. And is there a way to disable the menu hover?…or making it transparent.
I want to place the two notification pop-up icons ontop of the wp-menu tabs.Thanks!
CenkParticipantAlmost worked. If the subject is entered it will not show up in the inbox. The Re: is working.
I did this:
adding a space after < ?php bp_messages_subject_value(); ?>
<input type=”text” name=”subject” id=”subject” value=”<?php bp_messages_subject_value(); ?/> ” />And adjust the standard code with the one you gave me in the members/single/messages/messages-loop.php.. line 43
Thanks
CenkParticipantI did that. But now if I click on the name, the code directs me to the profile page.
Can you help me to code a new solution? We can adjust the one you send me.<input type=”hidden” name=”subject” id=”subject” value=”PM” />
to
<input type=”Text” name=”subject” id=”subject” value=”Re:” />I want to have the “Re:” displayed on the inbox message page if the user don’t fill the subject area (leaving it empty)..Giving the user an option.
Example: (sending a message without a subject)
Subject: I (empty) I
Message: somethingsomething(showing on the inbox page)
Re:
somethingsomethingAnd
Example: (sending a message with a subject)
Subject: I Beach I
Message: somethingsomething(showing on the inbox page)
Beach:
somethingsomethingThanks
CenkParticipantIt works. But now the message isn’t selectable in the inbox area. How to make it selectable like the subject. Thanks.
-
AuthorPosts