• Resolved Okoth1

    (@okoth1)


    Everything works fine for the past couple of weeks. Great job!

    I would like to ask you to consider adding the option to include text until the More tag in the emails. I have added the code for it myself and it’s working great. I’ve tested it for the past three weeks without any problems. I can’t imagine I’m the only one using the More tag. The advantage is that you have more control over what you add to the email.

    In es-sendmail.php I have added (around line 354):

    // Get post until more tag
    				$text_until_more_tag = get_extended ($post->post_content);
    				$until_more_tag = $text_until_more_tag['main'];
    				$until_more_tag = strip_tags(strip_shortcodes($until_more_tag));
    
    				if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail($post_id)) )
    				{
    					$post_thumbnail = get_the_post_thumbnail($post_id, 'full');
    				}
    
    				if($post_thumbnail <> "")
    				{
    					$post_thumbnail_link = "<a href='".$post_link."' target='_blank'>".$post_thumbnail."</a>";
    				}
    
    				$content = str_replace('###POSTLINK-ONLY###', $post_link, $content);
    
    				if($post_link <> "")
    				{
    					$post_link_with_title = "<a href='".$post_link."' target='_blank'>".$post_title."</a>";
    					$content = str_replace('###POSTLINK-WITHTITLE###', $post_link_with_title, $content);
    
    					$post_link = "<a href='".$post_link."' target='_blank'>".$post_link."</a>";
    				}
    
    				$content = str_replace('###POSTTITLE###', $post_title, $content);
    				$content = str_replace('###POSTLINK###', $post_link, $content);
    				$content = str_replace('###POSTIMAGE###', $post_thumbnail_link, $content);
    				$content = str_replace('###POSTDESC###', $the_excerpt, $content);
    				$content = str_replace('###POSTMORETAG###', $until_more_tag, $content);
    				$content = str_replace('###POSTFULL###', $post_full, $content);
    				$content = str_replace('###DATE###', $post_date, $content);
    				break;

    I’ve also added the ###POSTMORETAG### writing in compose-add.php and compose-edit.php so I won’t forget the tag.

    I hope you would consider it. It’s only a small addition to the plugin, but it makes it more complete.

    https://www.ads-software.com/plugins/email-subscribers/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author storeapps

    (@storeapps)

    @okoth1,

    Thank you for valuable suggestion. We will consider adding the same in future versions of Email Subscribers.

    Thread Starter Okoth1

    (@okoth1)

    Hi,

    I haven’t updated your plugin for 6 months hoping you would add my suggestion to your plugin. It is such a small addition and so handy for people who only want to add the text until the More tag to their email.

    Plugin Author Icegram

    (@icegram)

    Hi @okoth1,

    We have different plans to add new keywords and that is why we have not included your suggestions.
    Kindly update Email Subscribers to latest version (v3.2.3). Before updating you can take backup of the custom code that you have made in the plugin and re-add your custom code after updating plugin.

    Thread Starter Okoth1

    (@okoth1)

    OK, sounds good. I’ll be patient.

    I’ll update the plugin and add my code manually again.

    Plugin Author Icegram

    (@icegram)

    Hi @okoth1,

    Thanks you.
    Consider giving us 5-star if you are like our plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Mail text until More tag’ is closed to new replies.