Forum Replies Created

Viewing 15 replies - 61 through 75 (of 178 total)
  • Thread Starter khunmax

    (@khunmax)

    Hey Vinny

    Very sorry, I did not mean to offend.

    I am looking forward to your advice regarding the reply-subscribed and topic-subscribed plugins I provided a link to in my above posts.

    It would be super if you incorporated the code for them both into your plugin.

    Kind Regards and all the very best for the year ahead.

    Max

    Thread Starter khunmax

    (@khunmax)

    bump

    Thread Starter khunmax

    (@khunmax)

    If I use the [reply-url] tag the link in the resulting email links to a page with just the free standing reply (ie. not to the reply within the topic in which it appears).

    Is there tag that can generates a link to the reply, but in the topic page where it appears?

    Thread Starter khunmax

    (@khunmax)

    Thanks Vinny.

    Happy to report inserting the url manually works.

    Are those two tags above good to go right now?

    And what is the difference between these two tags:

    [reply-url], [reply-replyurl]

    Thanks for your speedy assistance.

    Thread Starter khunmax

    (@khunmax)

    Thanks. I will just reformat the email template and check that it works. I suspected you might not have included hyperlinks as default because of potential blocking by spam filters.

    While I am doing that, any chance you could have a look at the two plugins I referred to an let me know if I can delete them and replace them with a setting in your plugin?

    Thread Starter khunmax

    (@khunmax)

    On this last hyperlink issue, it would seem useful if I tell you that I also use Alo easy newsletter and fast secure contact form. Both of those plugins also generate outgoing emails (that use shortcodes in their templates) and all of the resulting emails arrive with the hyperlinks working correctly.

    Thread Starter khunmax

    (@khunmax)

    Hey vinny
    Thanks very much for your swift reply.

    Just some background for my curiosity. I like to keep the amount of plugins that I run to a minimum. I also run my own functionality (snippets) plugin. Your plugin solved the issue (THANKS) but if it is something I could just tweak, or a snippet I could add to my functionality plugin that would be preferred.

    1. Yes I mean the core receive replies to topic function of BBpress. It wasn’t working. That is, a user would tick to receive, but no emails were going out.
    2. The reply subscribe plugin basically changes the default bbpress setting so that the tick box to opt in for notification of replies is always in the ticked position. The description for the plugin is as follows:

    Currently when responding to topics in bbPress the default “Notify me of follow-up replies via email” is left blank. This means that despite subscribing to a topic, when you post a response but forget to tick this box, then you are unsubscribed from the topic.

    This plugin changes the default “Notify me of follow-up replies via email” from blank to ticked.

    Also the default is not to subscribe you to topics you create – this plugin also fixes that.

    In other words for topics and replies, the box is ticked, so you’ll be subscribed unless you untick it !

    3. The description for the topic subscribe plugin is as follows:

    When users subscribe to forums, they are not automatically subscribed to new topics in those forums.

    This plugin fixes that !

    4. This is what I have in the email template setting for your plugin:

    Hello

    A new reply has just been posted by [reply-author].
    Topic title: [reply-title]
    Topic url: [topic-url]

    Kind Regards

    But when the notification email arrives the topic url is not a hyperlink, it is just plain text:

    Hello

    A new reply has just been posted by Golden Boy.
    Topic title: Reply To: Best phone Option?
    Topic url: https://mysite.com/forums/topic/best-phone-option/

    Kind Regards

    Note: it shows up as a hyperlink in this post though.

    Thanks again Vinny. I am looking forward to your reply.

    • This reply was modified 9 years, 5 months ago by khunmax.
    • This reply was modified 9 years, 5 months ago by khunmax.
    • This reply was modified 9 years, 5 months ago by khunmax.
    Thread Starter khunmax

    (@khunmax)

    I am running my own functionality plugin. Is there a snippet I could use to substitute a custom button image?

    Thread Starter khunmax

    (@khunmax)

    I tried all of your suggestions but none of them work. Your plugin does not work with BBpress.

    Thread Starter khunmax

    (@khunmax)

    FYI, I posted the following in the support thread for the Plugin Load Filter:

    https://wordpress.org/support/topic/conflict-with-alo-easy-mail-plugin/

    Hi

    After extensive testing I have identified that your plugin has a conflict with ALO Easy Mail plugin.

    If you set ALO Easy Mail to run in admin only it works but you cannot view newsletter reports.

    You can read my comments about this problem in this support thread:

    https://wordpress.org/support/topic/bug-newsletter-report-window-is-blank/

    The problem can be resolved by running ALO Easy Mail in Normal Load.

    But that is not ideal. It would be better if you can run in Admin only because it is only used when you are in admin to send out newsletters.

    Any chance you can have a look at this conflict and fix it?

    Kind Regards

    Max

    Thread Starter khunmax

    (@khunmax)

    Hi.

    I have resolved this issue. I set up xampp on my computer. I then migrated my live install to a local install. I then deactivated all plugins. I identified that the issue is not coming from your plugin but rather a conflict with a plugin called: Plugin Load Filter. I have reported the conflict to the author.

    Thanks very much for your input and assistance to resolve the issue.

    Thread Starter khunmax

    (@khunmax)

    It is not plugin or theme related in my case. Your plugin was working fine on another hosting with exactly the same configuration. It was only after I migrated to a new host that the problem of not being able to see the Report appeared.

    Thanks very much for your responses and efforts to resolve the problem, however I still need a solution…

    • This reply was modified 9 years, 8 months ago by khunmax.
    Thread Starter khunmax

    (@khunmax)

    Hey

    Tried everything you suggested.

    755 and removed all code from .htacess except for WP.

    Cleared caching. Viewed across FF, ie, and chrome.

    Problem remains exactly same as before. Report opens but just blank white screen.

    Where do we go from here?

    Thread Starter khunmax

    (@khunmax)

    I am also using the following code in my htacess file:

    ################### Enable GZIP compression #############################
    <IfModule deflate_module>
      <IfModule filter_module>
        AddOutputFilterByType DEFLATE text/plain text/html
        AddOutputFilterByType DEFLATE text/xml application/xml application/xhtml+xml application/xml-dtd
        AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml image/svg+xml
        AddOutputFilterByType DEFLATE text/css text/javascript application/javascript application/x-javascript
        AddOutputFilterByType DEFLATE font/opentype application/font-otf application/x-font-otf
        AddOutputFilterByType DEFLATE font/truetype application/font-ttf application/x-font-ttf
      </IfModule>
    </IfModule>
    
    ####################### END GZIP ########################################
    
    ################## DISABLE ET TAG ######################################
    
    Header unset Pragma
    FileETag None
    Header unset ETag
    
    ################# END DISABLE ET TAG #################################
    
    ##################### LEVERAGE BROWSER CACHING ############################
    
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType text/html "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 1 month"
    </IfModule>
    
    #####################END LEVERAGE BROWSER CACHING ##########################
    
    #######################REDIRECT TO HTTPS#################################
    RewriteCond %{HTTPS} off
    RewriteCond %{HTTP_HOST} ^MYSITE\.com [NC]
    RewriteRule ^(.*)$ https://www.MYSITE.com/$1 [R=301,L]
    ###############################END REDIRECT################################
    
    ####################### BEGIN WordPress ##################################
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    ####################### END WordPress  ####################################
    
    ########################### RESTRICT ACCESS CODES #############################
    # Deny access to all .htaccess files (have not got deny on php.ini file)
    <files ~ "^.*\.([Hh][Tt][Aa])">
    order allow,deny
    deny from all
    satisfy all
    </files>
    
    # Deny access to wp-config.php file
    <files wp-config.php>
    order allow,deny
    deny from all
    </files>
    
    # disable directory browsing
    Options All -Indexes
    
    # Restrict Direct Access to Theme PHP files in WordPress
    RewriteCond %{REQUEST_URI} !^/wp-content/themes/file/to/exclude\.php
    RewriteCond %{REQUEST_URI} !^/wp-content/themes/directory/to/exclude/
    RewriteRule wp-content/themes/(.*\.php)$ - [R=404,L]
    
    #Prevent script injections
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
    RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
    RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
    RewriteRule ^(.*)$ index.php [F,L]
    
    # Block access to wp-includes folder
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^wp-admin/includes/ - [F,L]
    RewriteRule !^wp-includes/ - [S=3]
    RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
    RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
    RewriteRule ^wp-includes/theme-compat/ - [F,L]
    </IfModule>
    
    # Prevent author username enumeration
    RewriteCond %{QUERY_STRING} author=d
    RewriteRule ^ /? [L,R=301]
    
    ########################### END RESTRICT ACCESS CODES  #################################
    
    ################################# BLOCK URLS ###########################################
    #block bad url links
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} torrent-to-magnet\.com [NC,OR]
    RewriteCond %{HTTP_REFERER} hvd-store\.com [NC,OR]
    RewriteCond %{HTTP_REFERER} bizarresexuality\.com [NC,OR]
    RewriteCond %{HTTP_REFERER} top1-seo-service\.com [NC,OR]
    RewriteCond %{HTTP_REFERER} burger-imperia\.com [NC,OR]
    RewriteCond %{HTTP_REFERER} buttons-for-website\.com [NC,OR]
    RewriteCond %{HTTP_REFERER} 52509916.responsive-test\.net [NC,OR]
    RewriteCond %{HTTP_REFERER} hundejo\.com [NC]
    RewriteRule .* - [F]
    
    #block bad IP using bandwidth
    order allow,deny
    deny from labz.fr
    deny from marcheebook.com
    deny from poneytelecom.eu
    deny from ebookdedemain.com
    allow from all
    
    ############################## END BLOCK URLS #######################################
    
    Thread Starter khunmax

    (@khunmax)

    alo-easymail/functions/alo-easymail-newsletters.php is there.

    It has the following permissions:

    Read has tick for: User, Group and world
    Write has tick for: User But not for Group and World
    Execute no ticks
    Permission 644

    alo-eaymail-newsletters.php file has the following php:

    <?php if ( !defined('ABSPATH') ) die(); // If this file is called directly, abort.
    
    /**
     * Functions about newsletter queries.
     *
     * @package WordPress
     * @subpackage ALO EasyMail plugin
     */
    
    /**
     * User can edit Newsletter
     */
    function alo_em_user_can_edit_newsletter ( $newsletter, $user_id=false ) {
    	global $user_ID;
    	if ( empty( $user_id ) ) $user_id = $user_ID;
    	$user = new WP_User( $user_id );
    	return $user->has_cap( 'edit_newsletter', $newsletter );
    }
    
    /**
     * Get Newsletter by id
     */
    function alo_em_get_newsletter ( $newsletter ) {
    	return get_post ( $newsletter );
    }
    
    /**
     * Get Newsletter Status from post meta
     */
    function alo_em_get_newsletter_status ( $newsletter ) {
    	return get_post_meta( $newsletter, '_easymail_status', true );
    }
    
    /**
     * Update the Newsletter Status
     * @param	int
     * @param	str
     */
    function alo_em_edit_newsletter_status ( $newsletter, $status ) {
    	delete_post_meta ( $newsletter, "_easymail_status" );
    	add_post_meta ( $newsletter, "_easymail_status", $status );
    }
    
    /**
     * Reset/delete the Newsletter Status
     */
    function alo_em_delete_newsletter_status ( $newsletter ) {
    	delete_post_meta ( $newsletter, "_easymail_status" );
    }
    
    /**
     * Check if Newsletter Report of Recipients was archived
     */
    function alo_em_is_newsletter_recipients_archived ( $newsletter ) {
    	if( alo_em_get_newsletter_status ( $newsletter ) != "sent" ) return false;
    	return ( $archive = get_post_meta ( $newsletter, "_easymail_archived_recipients" ) ) ? $archive : false;
    }
    
    /**
     * Get the Newsletter(s) using 'get_posts'
     * @param	str		$status
     * @param	int		$limit  how many newsletter
     * @return mixed
     */
    function alo_em_query_newsletters ( $status="sent", $limit=1 ) {
    	global $wpdb, $wp_version;
    	$args = array (
    		"post_type" 	=> "newsletter",
    		"numberposts" 	=> $limit,
    		"orderby" 		=> "post_date",
    		"order" 		=> "ASC",
    		"post_status" 	=> "publish"
    	);
    	if ( version_compare ( $wp_version, '3.1', '>=' ) ) {
    		$meta_1 = array( 'key' => '_easymail_status', 'value' => $status, 'compare' => '=' );
    		$args['meta_query'] = array( $meta_1 );
    	} else {
    		$args['meta_key'] = '_easymail_status';
    		$args['meta_value'] = $status;
    		$args['meta_compare'] = '=';
    	}
    	$newsletters = get_posts ( $args );
    	return $newsletters;
    }
    
    /**
     * Count Newsletter(s) by status
     */
    function alo_em_count_newsletters_by_status ( $status="sent" ) {
    	return count( alo_em_query_newsletters ( $status, -1 ) );
    }
    
    /**
     * Get the Newsletter(s) on top of queue
     */
    function alo_em_get_newsletters_in_queue ( $limit=1 ) {
    	return alo_em_query_newsletters ( "sendable", $limit );
    }
    
    /**
     * Get the Newsletter(s) already sent
     */
    function alo_em_get_newsletters_sent ( $limit=1 ) {
    	return alo_em_query_newsletters ( "sent", $limit );
    }
    
    /**
     * When the newsletter has been sent, mark it as completed
     */
    function alo_em_set_newsletter_as_completed ( $newsletter ) {
    	global $wpdb;
    	alo_em_edit_newsletter_status ( $newsletter, 'sent' );
    	add_post_meta ( $newsletter, "_easymail_completed", current_time( 'mysql', 0 ) );
    	$newsletter_obj = alo_em_get_newsletter ( $newsletter );
    	do_action ( 'alo_easymail_newsletter_delivered', $newsletter_obj );
    }
    
    /* EOF */
Viewing 15 replies - 61 through 75 (of 178 total)