bhargavbhandari90 / bp-repost-activity Goto Github PK
View Code? Open in Web Editor NEWRe-post activity from BuddyPress Activity Feed
Home Page: https://bhargavb.com
Re-post activity from BuddyPress Activity Feed
Home Page: https://bhargavb.com
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&_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 <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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.