Code Monkey home page Code Monkey logo

bp-repost-activity's People

Contributors

bhargavbhandari90 avatar buntybuddyboss avatar hackkzy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mzdebo emaralive

bp-repost-activity's Issues

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

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.