GithubHelp home page GithubHelp logo

ddean4040 / bbpress-topics-for-posts Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 4.0 166 KB

bbPress Topics for Posts plugin - replace WordPress comments with a bbPress topic

Home Page: http://wordpress.org/extend/plugins/bbpress-post-topics/

PHP 98.12% JavaScript 1.88%

bbpress-topics-for-posts's People

Contributors

ddean4040 avatar jurajk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bbpress-topics-for-posts's Issues

WP_DEBUG issues

Hi David,

Excellent plugin, I don't understand why bbPress does not do this out of the box.

I always have WP_DEBUG = TRUE, cause I'm debugging my code, so have come across a few small problems. Basically these all cause notice/warning output which then causes "Cannot modify header information" which means the redirect after a post/page save does not work.

First bbppt_debug() outputs info both on save and on the ajax call which I don't want but I also don't want to turn off WP_DEBUG_DISPLAY universally so would be good if there was a separate constant (like "BBPPT_DEBUG_DISPLAY") to turn this on/off.

Second, in process_topic_option( ), $bbppt_options['copy_tags'] and $bbppt_options['copy_comments'] will be unknown indices if not checked (or not even in the form) on the save $_POST case and so these generate warnings. If wrapped in !empty( ) there are no warnings as you have done in other places.

Finally if the post/page is set not to use the forums for comments then the $topic_id var is never initialised and generates an unknown variable error when calling the action at the end of the method

do_action( 'bbppt_topic_associated', $post_ID, $topic_ID );

I've made these mods in my copy of the plugin. It looks like this hasn't had a new release for a while so I'm not asking for help or an urgent update. Just passing this on in the hope you can include the changes next time you edit the project.

Cheers
Toby

Update for Wordpress 5

With the latest release of Wordpress this plugin does not appear to work. The Discussions portion of the plugin appears in the Forums pages in the Admin panel instead of Posts

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.