Forum Replies Created
-
I would like to see this as well.
In reply to: How to remove the “Show all comments”Look in /js/buddypress.js.
Line 1940.
In reply to: No activation email is sent outTry the WP Mail SMTP plugin to see if that helps.
In reply to: Private ChatWise Chat works with BP.
In reply to: PHPmailer class not foundAdding $phpmailer_is_6_0 = true; to Line 57 fixed my issue.
THANK YOU!!!
In reply to: How to translete BP time and date formatDid you ever find an answer to this? If so, can you please share your custom filter to serve as an example for others? Thx
I’m looking for a solution to this as well. Can someone please point us in the right direction to create a custom filter that can change/customize the time/date format? Helping with this topic would also help with the Notifications and Message page time format issues that others are having as well. Thx
In reply to: Activity Post ModerationIn reply to: Set default cover image por all usersCan you please post your code for this? I’m struggling with this issue right now.
Thx, JC>
Still no joy.
In reply to: Change time since to j F Y H:iThis does not work.
I found the solution.
I created a new file called refresh-page.js and used the following code.
jQuery(window).load(function() { bp.CoverImage.Attachment.on( 'change:url', function( data ) { window.location.replace("http://mywebsite.com/me/profile/change-cover-image/"); } ); });This refreshes the Cover Image page after uploading a new image!!
In reply to: refresh page after uploading cover imageI’m looking for a solution to this as well.
In reply to: cover image need page refresh buddypressI need this as well.
Love these responses.
Did you ever figure this out?
Now I’m looking for a way to turn my new [Read More] text into a hyperlink.
[…]is the same thing as typing […]After 6 months of searching I finally got it!!!!
Plugins > BuddyPress > BP-Core > BP-Core-Template.php
Line 875
'ending' => __( ' […]', 'buddypress' ),Change […] to whatever you like, and then create a new blog post. The new blog post will include the updated text you just entered. Hells yeah!
Bump < Slump
I still need help with this. ????
In reply to: BuddyPress – Profile Field – Open Link in New WindowThanks for commenting. I’m using the correct field_id. I just created a new field, it was given the id of 54. When I try the following code it doesn’t work.
function swiss_target_blank( $field_value, $field_type, $field_id ){ if( $field_id == 54 ) { // get the field_id from edit field url in wp-admin $field_value = str_replace('" rel="nofollow">', 'rel="nofollow" target="_blank"', $field_value); } return $field_value; } add_filter('bp_get_the_profile_field_value', 'swiss_target_blank', 11, 3);I tried this code in my functions.php and bp-custom.php, neither work.
Line 176 – /plugins/buddypress/bp-xprofile/classes/class-bp-xprofile-field-type-url.php
It seems like the way you’re suppose to target rel=”nofollow” has changed or something.
I’m still working on this.
Does anyone know how to target the Thumbnail (Featured Image) for blogs posts that appear on the Activity Stream?
I’m using the following code on all other pages.
<?php if( get_the_post_thumbnail() ) : ?> <a href="<?php the_permalink(); ?>"> <div class="single-img-container"> <?php the_post_thumbnail('category-thumb'); ?> </div> </a>I can’t seem to find where get_the_post_thumbnail() is being called into action by the Activity Stream.
In reply to: BuddyPress – Hide Profile Fields when blankI’m actually trying to hide the DIV and the empty Profile Field within the DIV. I’ve come up with this so far. I’ve created a file called hide-empty-profile-fields.js and enqueued the script.
$(document).ready(function() { str = $('div.profile-page-location').text(); if($.trim(str) === "") { $('div.profile-page-location').hide(); } str = $('div.profile-page-status').text(); if($.trim(str) === "") { $('div.profile-page-status').hide(); } str = $('div.profile-page-zodiac').text(); if($.trim(str) === "") { $('div.profile-page-zodiac').hide(); } str = $('div.profile-page-occupation').text(); if($.trim(str) === "") { $('div.profile-page-occupation').hide(); } str = $('div.profile-page-website').text(); if($.trim(str) === "") { $('div.profile-page-website').hide(); } });It works, but it’s not optimal. Using this method, the empty fields do not become hidden until the page is fully loaded. This causes a weird shift to occur upon page load.
Still working on this.
I also have a ticket open regarding this issue at https://buddydev.com/support/forums/topic/buddyblog-bp-simple-front-end-post-post-thumbnail-urlhow-to-add-link-to-post/.