Forums

  1. Paulio51
    Member
    Posted 1 year ago #

    Didn't work out of the box for me and thought I would let anyone interested know how I got it working.

    While changing every option on the options page trying to get this to work I noticed that the quotes at the bottom of the page worked so I just copied that into the widget's section (which is what I was using to show the quotes) and it worked.

    Basically, you add 'ABSPATH . WPINC, 0' to the 'fortunate()' function call.

    So this...

    function fortunate_widget($args) {
      extract($args);
    
      echo $before_widget
           . $before_title . get_option('fortunate_title') . $after_title
           . fortunate() . $after_widget;
    }

    ...becomes this...

    function fortunate_widget($args) {
      extract($args);
    
      echo $before_widget
           . $before_title . get_option('fortunate_title') . $after_title
           . fortunate(ABSPATH . WPINC, 0) . $after_widget;
    }

    Hope that helps someone.

    Paul

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

  2. kokopelli
    Member
    Posted 1 year ago #

    It did indeed, thanks Paul!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags