WordPress.org

Ready to get started?Download WordPress

Forums

Compfight
Awesome with more awesome with one tiny tweak! (8 posts)

  1. MakerBlock
    Member
    Posted 2 years ago #

    If you change line 91 from:
    if ($screen->base == 'post'
    to:
    if ($screen->base == 'post' || $screen->base == 'page'
    ... I can use this awesome plugin on pages too!

    http://wordpress.org/extend/plugins/compfight/

  2. WebFactory
    Member
    Posted 2 years ago #

    Hi,
    Base property for pages is "post" in WP 3.3 so the plugin works in any post type (post, page and custom post type). You don't see it on pages?

  3. MakerBlock
    Member
    Posted 2 years ago #

    Correct - but that one change I suggested fixed it for me. I'm using the latest version of WP.

  4. WebFactory
    Member
    Posted 2 years ago #

    Strange, we'll have a look and include that fix in the next update.

    Thanks for letting us know.

  5. MakerBlock
    Member
    Posted 2 years ago #

    Hi WebFactory,
    Looking at several WP 3.3 installs, it looks like the base types are still post and page.
    Thanks!

  6. WebFactory
    Member
    Posted 2 years ago #

    Compfight version 1.1 has page || post ;)

  7. MakerBlock
    Member
    Posted 2 years ago #

    Rockin!!!

  8. MakerBlock
    Member
    Posted 2 years ago #

    A follow up request - could you remove the "<small>" tags from the attribution? The text sizing tends to mess with posts, whereas if the attribution is surrounded by a span with a "class='compfight-attribution-sizing'" attribute, then people could apply any CSS/style they wish.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags