Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repost Button not appearing when BuddyPress Nouveau Template Pack Option selected. #2

Open
davidajardine opened this issue Jun 18, 2020 · 0 comments
Assignees

Comments

@davidajardine
Copy link

Using default install of BuddyPress 6.0.0 on Wordpress 5.4.2 with BB Re-Post Activity 1.0.0 installed and no other plugins. Theme selected is Twenty Twenty v1.4

When viewing Activity stream the Repost button does not show when using default settings.

Going to Settings > BuddyPress > Options > ‘Main Settings’ > Template Pack option is set to BuddyPress Nouveau.

Changing this to BuddyPress Legacy fixes this and the Re-Post button shows in the Activity feed and elsewhere as intended.

After inspecting the code in Chrome Developer I noticed the following output to the browser inside the parent div:

With BuddyPress Nouveau option selected...

<div class=" activity-meta action"><div class="generic-button"><a class="acomment-reply bp-primary-action" id="acomment-reply-2-from-3" href="#acomment-3">Reply</a></div> <div class="generic-button"><a class="delete acomment-delete confirm bp-secondary-action" rel="nofollow" href="http://adultx.com.au/activity/delete/3/?cid=3&amp;_wpnonce=3e883b7da4">Delete</a></div></div>

With BuddyPress Legacy option selected...

<div class="activity-meta"><a href="?ac=2/#ac-form-2" class="button acomment-reply bp-primary-action" id="acomment-comment-2">Comment <span>2</span></a><a href="http://adultx.com.au/activity/favorite/2/?_wpnonce=491626b639" class="button fav bp-secondary-action">Favorite</a><a href="http://adultx.com.au/activity/delete/2/?_wpnonce=3e883b7da4" class="button item-button bp-secondary-action delete-activity confirm" rel="nofollow">Delete</a><a class="button bp-repost-activity" href="#" data-toggle="modal" data-target="#repost-box" data-activity_id="2">Re-Post&nbsp;<span class="dashicons dashicons-controls-repeat"></span></a></div>

Note with the Nouveau option selected the output is wrapped in DIVs nested under the parent div, and the Re-Post link is missing entirely.

When Legacy is chosen, the buttons are output as basic a=href links for all of the buttons, and the Re-Post code appears correctly. Im not sure what the conflict could be as I have no other plugins installed or themes.

@BhargavBhandari90 BhargavBhandari90 self-assigned this Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants