Tigr
Forum Replies Created
-
Although, no, here is a guy reported yesterday several times and he managed to register today:
http://www.stopforumspam.com/ipcheck/31.192.106.144Is there a lag between submissions on SFS and the time we see the IP address appear in the search?
Another thing, you say on the front page that user registration does not keep an IP address but mine does on WP 3.8. So it would be great to have a button “Report to SFS” in the list of users too. It is quite a bit of work to copy the spammers to SFS manually every day.
Ah, so if a spammer was listed back in March, now he has a chance again? How interesting. That would explain things.
No, I am not using bbpress.
Forum: Plugins
In reply to: [NextScripts: Social Networks Auto-Poster] Cannot authorize at VKontakteUpdated to 3.1.0, still the same…
Forum: Plugins
In reply to: [NextScripts: Social Networks Auto-Poster] Cannot authorize at VKontakteIt was something like
https://oauth.vk.com/err400But today it is different. I get the page
https://oauth.vk.com/error?err=2
and it says:
{"error":"invalid_request","error_description":"Security Error"}Forum: Plugins
In reply to: [Polylang] Combined RSS feed?Right. The code is about an order of magnitude less obvious than I would like it to be 🙂 I understand it all happens by magic but I do not understand where to change that magic, unfortunately 🙁
I think the best would be to leave RSS alone and have the links /rss/ and /en/rss/ where the former will generate a full list of posts and the latter – only in English. Now if I only knew where and what to change…
Forum: Plugins
In reply to: [Polylang] Add a taxonomy automatically based on language?Bloody hell 🙂 Ok, that is really good to know. I’ll make it a 22 then. Thank you.
Forum: Plugins
In reply to: [Polylang] Combined RSS feed?Where is the feed handling in the code?
Forum: Plugins
In reply to: [Polylang] Add a taxonomy automatically based on language?I also want to make sure that the post language is set even if the pll_save_post is not called. I cannot remember where I saw that but there seemed to be some talk of the language not being set on posts submitted from mobile devices. So, just to be on the safe side, I am using “save_post”. Or am I being idiotic here?
Thanks for the idea, the following seems to do the trick:
function tigra_add_polylang_language_tag( $post_id ) { global $polylang; if (isset($polylang) ) { if ( !$polylang->model->get_post_language($post_id) ) { $polylang->model->set_post_language($post_id, pll_default_language()); } $post_lang = $polylang->model->get_post_language($post_id); $languages = $polylang->model->get_languages_list(array('fields' => 'slug')); $post_tags = get_the_tags($post_id); $post_tags = wp_list_pluck($post_tags, 'name'); $post_tags = array_diff($post_tags, $languages); if ( empty($post_tags) ) { $post_tags = array(); } array_push($post_tags, $post_lang->slug); wp_set_post_tags($post_id, $post_tags); } } add_action( 'save_post', 'tigra_add_polylang_language_tag' );Forum: Plugins
In reply to: [Polylang] Clean up warnings?Excellent. Thank you very much. I will wait for the next release though. It is not very far away, is it?
Forum: Plugins
In reply to: [upPrev] SSL compatibilityThank you.
Forum: Plugins
In reply to: [Polylang] Combined RSS feed?Mmmm… that does not sound right… I would be thinking along the lines of getting a quasi-language amptly named “all” and then getting /?feed=rss2&lang=all Is that arrangement possible?
Forum: Plugins
In reply to: [Polylang] Add a taxonomy automatically based on language?So, basically, something along these lines is adequate:
function tigra_add_polylang_language_tag( $post_id ) { global $polylang; // if variable exists and not null if (isset($polylang) ) { if ( !$polylang->get_post_language($post_id) ) { $polylang->set_post_language($post_id, pll_default_language()); } $post_lang = $polylang->get_post_language($post_id); $post_tags = wp_get_post_terms($post_id, 'post_tag'); if ( ! in_array($post_lang->slug, $post_tags) ) { wp_set_post_tags($post_id, $post_lang->slug, true); } } } add_action( 'save_post', 'tigra_add_polylang_language_tag' );But the problem is, if the author changes the language, I’ll get a second tag with a second language… Should I just get the list of currently configured languages and wipe the tags out? I am open to suggestions on how best to handle that part…
Forum: Plugins
In reply to: [Polylang] Combined RSS feed?How would a rewrite rule help? I need to combine the output, not redirect the /rss/ to /en/rss/. I was hoping for some pointer to where the RSS links are changed so that I can actually leave the “original” RSS generator in place in addition to the language-specific ones…
Forum: Plugins
In reply to: [Polylang] Combined RSS feed?Well, can someone at least point me in the right direction?
Yes, but those are the social links to the social pages of my authors. Why should they be “nofollow”?
Tigr