epic_serj
Forum Replies Created
-
Same here! Fun fact: there’s no problem on Windows 11. I blew my mind why I’m okay while my three collegaues can’t work.
Forum: Plugins
In reply to: [Classic Editor] Posts won’t loadHey! I’m using another plugin to disable Gutenber, but faced the same problem.
I found that Windows 11 isn’t affected (same as Android), the problem is on Windows 10 only.
I blew my mind trying to understand why everything is fine with me, but not working with my three colleagues.
Forum: Plugins
In reply to: [RSS for Yandex Zen] В ленте отсутствуют некоторые статьиshortcode ultimate с дополнением, позволяющим создание собственных шорткодов.
Forum: Plugins
In reply to: [RSS for Yandex Zen] В ленте отсутствуют некоторые статьиДа, достаточно активно.
Forum: Plugins
In reply to: [Public Post Preview] Where to paste ppp_nonce_life codeThis should be anywhere in functions.php file in you theme folder.
Forum: Plugins
In reply to: [Web Typography Standards] Баг при обработке текста внутри шорткодаС <br /> тоже происходит что-то странное.
Например, есть конструкция:[шорткод_буквицы] Строка Строка Абзац
При выводе должно быть:
<span class="буквица">12</span><br /> Строка<br /> Строка<br /> Абзац
Вот только первый <br /> пропадает и букквицы съезжают:
https://mirf4test.igromania.ru/magazine/mir-fantastiki-164
Оба шорткода созданы с помощью shortcode ultimate. Возможно, это связано с ним, но, возможно, что-то с фильтром wpautop.Hello! I found easy way to set post title to notification title. Just add this code to functions.php in you theme folder.
add_filter('onesignal_send_notification', 'onesignal_send_notification_filter', 10, 4); function onesignal_send_notification_filter($fields, $new_status, $old_status, $post) { // Change the notification's title to post title $fields['headings'] = array("en" => get_the_title()); return $fields; }
Forum: Plugins
In reply to: [Telegram Bot & Channel] Not working after changing connection modeSo sad still no answer. I had to stop using this plugin.
Forum: Plugins
In reply to: [Telegram Bot & Channel] Not working after changing connection modeStill no working, I tried many options to make the bot live, but it doesn’t reply. Too bad…
I also moved to php7 — maybe it’s the reason?Thank you!
Forum: Plugins
In reply to: [Telegram Bot & Channel] Not working after changing connection modeHi, Marco.
I noticed this problem after moving to botpress.org, but didn’t payed attention thought I stayed on WPTele.ga.
As I noted above, I tried both BotPress and SSL, but the Bot stops to responce and only log message is about Webhook updates.
I tried to change the token, re-start bot — nothing. Commands I try to send aren’t listed in the log. Even after some time.Thank you! It works now!
Forum: Plugins
In reply to: [Telegram Bot & Channel] Error: incorrect parametersHi! I’m getting same problem and can’t understand why.
My site is on Russian and it is not a problem (UTF-8, baby) — the bot works correctly in most times.
But sometimes the bot doesn’t reply. The log has the same line: “Error: incorrect parameters”. I guess it’s due to some incorrect character, but the log can’t tell me which one is.
You can check the output of the command here (the text sent to telegram):
https://www.mirf.ru/?telegram_commands=book-telegram
The post is generated by shortcode doing loop via template. The template code is:<?php // Posts are found if ( $posts->have_posts() ) { while ( $posts->have_posts() ) : $posts->the_post(); global $post; $bot_mark = get_post_meta(get_the_ID(), 'cb_final_score_override', true); if($bot_mark>60){ ?> [<?php the_title(); ?>](<?php the_permalink(); ?>) <?php the_excerpt(); ?> <?php echo '*Оценка МирФ*: ' . $bot_mark / 10 . '/10';?> <?php } endwhile; } // Posts not found else { echo 'Ошибка'; } ?>
Is there any chance to find bad character? Or I should sanitize output of php loop by some function?
The bot is here:
https://telegram.me/mirf_botYou can check it with /book command.
I got same issue, the developer told me to use the words instead of numbers (“in” instead of “0”). It’ll be fixed in future versions.
Forum: Plugins
In reply to: [Telegram Bot & Channel] how to make /command $var1 var2Hi, everyone! Sorry, I’m not a programmer, just know a bit, so if I have a silly question, forgive me.
I found the same problem —?can’t understand how to use these $vars in commands.
If I understand correctly from upper posts there is no currently a way to parse the $var from command without adding some php code/files to the server?I guessed it should work like this:
1. I enter command name “/test,/test $var”
2. I set the command body as:[insert_php] if(empty($var){ //do something } else { //do something else }[/insert_php]
In this way empty section works fine, but when I type to the bot something like “/test 10” it returns me error message. What should I do to get $var value?
Or am I doing everything completely wrong?