Forum Replies Created

Viewing 15 replies - 46 through 60 (of 186 total)
  • Plugin Author Igor Yavych

    (@flyerua)

    1. There is no estimate on it. This is just something I work on when I have free time from work. It’s still far from being done.
    2. It’s still far from even being alpha. If you’d like to be able to test it before it gets released, you can leave some way to contact you.

    There will be no solution for this “problem” with mixed ssl. What you suggested might be workaround for this, but it’s not a solution. I’m not going to implement that.

    Plugin Author Igor Yavych

    (@flyerua)

    This happens when you vote from http:// instead of https://. If you vote from https://, it will work just fine.
    $current_user is internal WP stuff, this plugin has nothing to do with populating this variable with data.
    I’m have no experience with WP+SSL, but I assume that it isn’t set up properly in your particular case. I might be wrong though.
    Workaround would be to force all traffic to go through https.

    Thread Starter Igor Yavych

    (@flyerua)

    should be remove_filter instead of add_filter

    Thread Starter Igor Yavych

    (@flyerua)

    Ok, the cleanest solution I could come up with is this

    function remove_mah_filter($content)
    	{
    		if (has_filter( 'the_content', 'your_filter' ))
    		{
    			add_filter( 'the_content', 'your_filter' ); // if this filter got priority different from 10 (default), you need to specify it
    		}
    		return $content;
    	}
    	add_filter('get_the_excerpt', 'remove_mah_filter', 9); //priority needs to be lower than that of wp_trim_excerpt, which has priority of 10. Otherwise, it will still be triggered for the first post in the loop.

    Plugin Author Igor Yavych

    (@flyerua)

    Hello. Glad this plugin serves your needs.
    Can you give me the link to the page where it shows and where it doesn’t?

    Thread Starter Igor Yavych

    (@flyerua)

    Idk, honestly, content seems like most relevant filter. It’s mostly needed before or after content. I don’t think I can reliably insert it before/after content other than with content/excerpt filters

    Plugin Author Igor Yavych

    (@flyerua)

    1. Done in 1.5
    2. Not sure what you mean
    3. No
    4. Pointless imo. You can easily change that in code yourself if you need.

    Plugin Author Igor Yavych

    (@flyerua)

    Can you give me a link to where it happens?
    I can’t say without taking a look.

    Plugin Author Igor Yavych

    (@flyerua)

    Hi. You’ve checked this cpt in options?
    If so, it might be due to bug in older version (fixed in 1.5).
    Assuming you have version 1.4 installed, you should be able to fix it like so:
    1. Open rating.php
    2. Go to line ~931
    3. Replace spr_get_post_types_fo() function with

    function spr_get_post_types_fo()
    {
        $options=spr_options();
        $post_types=get_post_types(array('public'=>true, '_builtin'=>false), 'objects', 'and');
        $result='<table><tr><td class="spr_cb_labels">Posts</td><td><input type="checkbox" name="post" id="post" value="'.$options['where_to_show']['post'].'" '.checked($options['where_to_show']['post'], 1, false).'></td></tr><tr><td class="spr_cb_labels">Pages</td><td><input type="checkbox" name="page" id="page" value="'.$options['where_to_show']['page'].'" '.checked($options['where_to_show']['page'], 1, false).'></td></tr>';
        foreach ($post_types as $type)
        {
            if (!isset($options['where_to_show'][$type->name]))
            {
                $options['where_to_show'][$type->name]=0;
            }
            $result.= '<tr><td class="spr_cb_labels">'.$type->labels->name.'</td><td><input type="checkbox" name="'.$type->name.'" id="'.$type->name.'" value="'.$options['where_to_show'][$type->name].'" '.checked($options['where_to_show'][$type->name], 1, false).'></td></tr>';
        }
        $result.="</table>";
        return $result;
    }

    4. After that, there is spr_list_cpt_slugs() function, replace it with

    $types=array("post", "page");
        $post_types=get_post_types(array('public'=>true, '_builtin'=>false), 'objects', 'and');
        foreach ($post_types as $type)
        {
            $types[]=$type->name;
        }
        return $types;

    5. If you use top rated content, open spr_widgets.php, and replace line 124 with

    $result.= '<tr><td class="spr_cb_labels">'.$post_type->labels->name.'</td><td><input type="checkbox" style="float:right;" name="'.$this->get_field_name($post_type->name).'" id="'.$this->get_field_id($post_type->name).'" value="'.$options[$post_type->name].'" '.checked($options[$post_type->name], 1, false).'></td></tr>';

    Make sure to go to options again and check this cpt of yours. Do that for widgeet too if you’re using it.
    P.S. Glad you like it. Hope you will try version 1.5 when it comes out. It got lots of fixes, improvements, new features and other nice stuff 😉

    Plugin Author Igor Yavych

    (@flyerua)

    1. Prefix can be done.
    2. Probably nop.
    3. Not sure what you mean by “manually set ratings”
    4. No idea

    Plugin Author Igor Yavych

    (@flyerua)

    Hello. About fix, it’s already been fixed in 1.5 but thanks for the catch.
    About proposals
    1. Not sure what you mean here.
    2. What exactly it’d do and how do you expect it to work?
    3. Maybe.

    Forum: Plugins
    In reply to: [Simple Rating] Advice
    Plugin Author Igor Yavych

    (@flyerua)

    I’ll think about it. I might do some kind of widget on post/page/cpt edit page which will list votes made for this object like score | user id/ip | username/guest | checkbox with ability to delete checked votes. But I don’t promise you anything.

    Forum: Plugins
    In reply to: [Simple Rating] Advice
    Plugin Author Igor Yavych

    (@flyerua)

    Why would you need a functionality like that?

    Plugin Author Igor Yavych

    (@flyerua)

    Yeah, last problem was that spr_ajax_object which is rendered by wp_localize_script wasn’t there for some reason. Dunno why but as long as it works lol

    Plugin Author Igor Yavych

    (@flyerua)

    You’re welcome. Figured out what was causing that?

Viewing 15 replies - 46 through 60 (of 186 total)