Forum Replies Created
-
I did it!
Sorry I didn’t have a chance to tell you thank you.That’s right.
How can I branch condition by page?
For example, I want to branch like
if ( is_page( topic ) ) {}
if ( is_page( activity ) ) {}
if ( is_page( profile ) ) {}
if ( is_page( settings ) ) {}
I solved!
▼【wp-content\plugins\buddypress\custom_user\fluits_content.php】
<div class="activity_update_wrapper"> <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&action=activity_update' ) ) : ?> <?php while ( bp_activities() ) : bp_the_activity(); ?> <?php bp_get_template_part( 'activity/entry' ); ?> <?php endwhile; ?> <?php endif; ?> </div>
Thanks.
Hi,
That makes sense.
The results are that the problem this time has been resolved.
Thanks.
Hi,
My problem has been solved.
Thank you for the kind thoughts!Regarding the matter of the “compatible with nouveau”,
Do you think that “BuddyPress Follow(1.2.2)” will be available if you change any of the “BuddyPress(3.2.0) with nouveau”?I am in trouble because I can not use it even if I change the next file.
bp-nouveau > buddypress > activity > entry.php
bp-nouveau > buddypress > activity > activity-loop.phpWould you please give me a hint?
Thanks.
Hi,
Thank you for your reply.
I decided to use legacy template pack.OK.I’ll do that.
Thanks.Can you please teach me.
Which do you prefer: A or B?
A:Use the latest “BuddyPress(3.2.0)” with “legacy”
B:Use the old “BuddyPress(2.9.4)” with “nouveau”Thanks.
Hi,
You just said it!
The most up-to-date version compatible with “BuddyPress Follow(1.2.2)” was “BuddyPress(2.9.4)”.
But, as you say, using “legacy” also matches “BuddyPress(3.2.0)”.
So, What is “legacy”? What is the difference with “nouveau”?
Where is the explanation?Thanks.
By the way, this code works properly.
<?php echo bp_get_following_ids(); ?>
That’s great!
My problem has been solved.
Thank you as always.What I would like to display is “the number of favorites given to other users”.
It is not the number of favorites that user did himself.I forgot to say…
I want to specify the user’s ID.Oh how embarrassing!Sorry!I didn’t see it!!
Thank you so much for all the helpful advice you gave me.Hi,Thank You!
I did not notice that the ClassName was given.
Because I could not speak English well, I was asking a different question from my original purpose.
What I wanted to hear was originally “Activity of creating a topic” rather than “Activity of becoming a friend”.
Therefore, such a ClassName was not granted, and it had only to judge with the word
indexOf('are now friends')
.However, with the above code, I can not acquire the word
var targetTxt
and it becomes “targetTxt is undefined”.Thanks.
Thanks a lot:)
But there is something strange.In case of “activity” it can not be acquired this way.
If it’s not too much trouble, give me a reply please.
https://buddypress.org/support/topic/how-to-change-design-only-for-specific-activities/Thanks.
Umm…It’s difficult.
This time I solved it as follows.
(function($){ var url = location.href var urlSplit_notifications = url.split('/')[5]; if( urlSplit_notifications == 'notifications' ){ const target = document.getElementById("notifications-user-list"); const observer = new MutationObserver(records => { alert('completed!'); }); const options = { childList: true }; observer.observe(target, options); let shouldStopObserving = false; if(shouldStopObserving){ observer.disconnect(); } } })(jQuery);
I really appreciate your help in resolving the problem.
See you whenever.Sorry, What is
start: function() {
?Does it mean the following?
function() { alert('completed!'); });
If it’s so, Where dose I write that?
Thanks.
I see!Thanks!
If I want to display
alert('completed!')
, where do I write that?Even if I wrote alert at the end of that, it was displayed before loading Notifications List.
Thank you very much for your quick reply!
But what I want to know is “after loading”.
I want to start JS immediately after the message “Loading notifications. Plase wait.”.
Thank you very much for your quick reply.
For example,
bp_activity_action();
outputs:<a href="http://example.com/topic/test1/#post-123" class="view activity-time-since bp-tooltip" data-bp-tooltip="ディスカッションを表示"><span class="time-since">1日前</span></a>
but I want to acquire only “#post-123”.
I look forward to your reply.