Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Forum: Plugins
    In reply to: Ratings Plugin

    Released v1.3 today. Tiny bugfix. Categories were repeated under “Filed Under ” in the post headers.

    bstovold:
    There’s no need to hack a function to get it to echo its results. Instead of adding echo as a parameter, just put the word “echo” in front of the function.
    As a rule of thumb, I’ve noticed that functions starting with “the_” produce output (i.e. they use echo). Any of the others don’t produce output, so you would have to do the echo yourself by placing the word “echo” in front of the function call.
    It’s very easy to make things echo. It’s harder to go the other route and get things that are echoing not to. For those it might be useful to have a parameter ??
    Some examples:
    </pre>
    the_title();
    /* produces output */
    wp_texturize(‘Some text’);
    /* produces no output */
    echo wp_texturize(‘Some text’);
    /* produces output */
    </pre>

    Forum: Plugins
    In reply to: Search Hilite does not work

    As far as I can tell, there are two things wrong with the hilite plugin when using the WordPress search.
    1. It gives the referer precedence over the current url’s query string. I would recommend we change the logic in get_search_query_terms() to
    case ‘wordpress’:
    // Check the search form vars if the search terms
    // aren’t in the referer. Do this first, ignore the
    // referer if we can!
    if (isset($s_array) and sizeof($s_array) > 0 ) {
    $query_array = $s_array;
    break;
    } else if (isset($s) and $s) {
    $query_array = array($s);
    break;
    }

    2. The search behaviour when matching a single post doesn’t play well with the plugin. If we match a single post, you are redirected from the search you were trying to do, onto the single post page. Your referer is the page where you initiated the search (which might have an old search term in it) , and your query string has no search terms. If you put the query string s=blah back into the url, it will bounce you back to one without it.
    Some examples:
    Start on /index.php, search ‘uncommon’ /index.php?s=uncommon, bounced to one page /index.php?p=1 with referer=/index.php your start page.
    Start on /index.php?s=common (just finished a search for a common word), search ‘uncommon’ /index.php?s=uncommon, bounced to one page /index.php?p=1 with referer=/index.php?s=common (your start page), so it will hilite the ‘common’ word on this page, even though you were searching for uncommon.

    Forum: Plugins
    In reply to: User ratings hack

    I just added visitor (reader) ratings to the ratings plugin.
    https://www.ads-software.com/support/10/8095

    Forum: Plugins
    In reply to: Ratings Plugin

    Released version 1.2. Fixed some bugs. Added support for reader ratings.
    More info on the Wiki — https://wiki.www.ads-software.com/Ratings%20Plugin .

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