Igor Yavych
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Rating] When/how can I get 1.5?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.
Forum: Plugins
In reply to: [Simple Rating] SSL causes failureThis 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.Forum: Hacks
In reply to: the_excerpt and the_content filtersshould be
remove_filterinstead ofadd_filterForum: Hacks
In reply to: the_excerpt and the_content filtersOk, 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.Forum: Plugins
In reply to: [Simple Rating] Ratings not showing on all pagesHello. Glad this plugin serves your needs.
Can you give me the link to the page where it shows and where it doesn’t?Forum: Hacks
In reply to: the_excerpt and the_content filtersIdk, 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
Forum: Plugins
In reply to: [Simple Rating] New Features???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.Forum: Plugins
In reply to: [Simple Rating] Cannot get it to work on custom post typeCan you give me a link to where it happens?
I can’t say without taking a look.Forum: Plugins
In reply to: [Simple Rating] Cannot get it to work on custom post typeHi. 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. Replacespr_get_post_types_fo()function withfunction 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 😉Forum: Plugins
In reply to: [Simple Rating] 1 fix suggestions1. Prefix can be done.
2. Probably nop.
3. Not sure what you mean by “manually set ratings”
4. No ideaForum: Plugins
In reply to: [Simple Rating] 1 fix suggestionsHello. 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] AdviceI’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] AdviceWhy would you need a functionality like that?
Forum: Plugins
In reply to: [Simple Rating] I am unable to rate anymore…Yeah, last problem was that
spr_ajax_objectwhich is rendered bywp_localize_scriptwasn’t there for some reason. Dunno why but as long as it works lolForum: Plugins
In reply to: [Simple Rating] I am unable to rate anymore…You’re welcome. Figured out what was causing that?