Mixa
Forum Replies Created
-
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Success Message problemWell, the problem still there, and the problem only with that particular this petition (maybe due to the settings).
I just tested the plugin with a new petition on the clean page and it works well. So, I thought that the root of the problem in my custom page template and jQuery DOM manipulations. But when I use a shortcode of the problematic petition on the same page I get again that result.
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Success Message problemSure. There is no
0at the endhttps://ecoaction.org.ua/wp-content/uploads/2019/11/Capture11.png
- This reply was modified 6 years, 6 months ago by Mixa.
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Success Message problemThank you. I’ll try to fix this with jQuery DOM-manipulations as a temporary solution.
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Success Message problemThank you for a quick response. I need to say that it’s not Russian, it’s the Ukrainian language. But anyway. I checked my custom message and it’s ok. But when I sign a petition I get zero symbol at the end of it. For example, my phrase in custom thankyou message’s field is “Thanks, bro!”, but visitors receive “Thanks, bro!0”
- This reply was modified 6 years, 6 months ago by Mixa.
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Disable second email inputAnd, of course, the length of the form…
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Disable second email inputThank you for quick response. Well, more fields – fewer people will start filling out the form…
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Disable second email inputyes, but in this case, as I understand, people wont receive confirmation messages. But I need to send confirmation messages, but without putting email twice in the form. Is it possible?
- This reply was modified 7 years, 10 months ago by Mixa.
Forum: Fixing WordPress
In reply to: Block visibility depending on the date of communicationAll in all figured out. Can someone come in handy …
Here’s the working code ready
$i = 0; query_posts('cat=28'); if (have_posts()) : while (have_posts()) : the_post(); ?> <?php $expDate = date( 'Y-m-d', strtotime( get_post_meta($post->ID, 'aexp', true) ) ); ?> <?php if ($expDate >= date('Y-m-d', strtotime('-1 days'))) { ?> <?php // работаем пока постов не будет больше 2-х if ($i < 2) { ?> <?php $i++; ?> <?php // запускаем дизайн блока анонсов if ($i == 1) { echo $block_do;} ?> <p><small><?php the_time('d.m.y') ?></small> <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php // конец условия выборки по кол-ву } // конец условия выборки по кастом-филдз } endwhile; endif; wp_reset_query(); //just in case // закрываем див с дизайном блока анонсов if ($i > 0) { echo $block_posle;}Thanks to all who help from!
Forum: Fixing WordPress
In reply to: Block visibility depending on the date of communicationI do not quite understand the scheme you are offering …
Make two loop? And in the first count the availability of posts. A second show has everything?Forum: Fixing WordPress
In reply to: Block visibility depending on the date of communicationThat’s how you suggest?
echo $block_do; // events div design start $i = 0; query_posts('cat=28&posts_per_page=2); if (have_posts()) : while (have_posts()) : the_post(); ?> <?php $expDate = date( 'Y-m-d', strtotime( get_post_meta($post->ID, 'aexp', true) ) ); ?> <?php if $expDate >= date('Y-m-d', strtotime('-1 days')) { ?> <p><small><?php the_time('d.m.y') ?></small> <a>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php } ?> <?php endwhile; endif; echo $block_posle; // events div design endBut how then does not display the box design ($ block_do $block_posle), when the actual announcement is not?
Forum: Fixing WordPress
In reply to: Export Recent Posts to another page or txt file for PHP inclusionFor me this also aktual question!