Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jssssperr

    (@jssssperr)

    Just now, I also tried adding the condition to the individual functions (Initialization, LoadExtensions, RatingLinks, and VisitorCredits). Same thing, no change. :/

    Thread Starter jssssperr

    (@jssssperr)

    I’m still stumped. This plugin doesn’t require me to insert any tags into the theme, so I can’t simply throw a conditional around something like that.

    At the end of the plugin code, there’s this:

    $PostRating = new PostRating();
    add_action('wp_head', array(&$PostRating, 'Initialization'));
    add_action('plugins_loaded', array(&$PostRating, 'LoadExtensions'));
    add_action('the_content', array(&$PostRating, 'RatingLinks'));
    add_action('wp_footer', array(&$PostRating, 'VisitorCredits'));

    which I assume is what actually loads the voting links onto the posts/pages. I tried wrapping that in a conditional like this:

    if (!is_page() || !is_sticky()){
    $PostRating = new PostRating();
    add_action('wp_head', array(&$PostRating, 'Initialization'));
    add_action('plugins_loaded', array(&$PostRating, 'LoadExtensions'));
    add_action('the_content', array(&$PostRating, 'RatingLinks'));
    add_action('wp_footer', array(&$PostRating, 'VisitorCredits'));
    }

    The revised plugin saved fine, but my website displayed no visible change. I then tried wrapping the entirety of the plugin (the entire php tag) in the same condition, and still nothing changed. Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)