Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter ryanbowden

    (@ryanbowden)

    Thanks for quick reply,

    I have now done that and get the following

    RSTW Debug info enabled
    RSTW Retrieving API rate limit
    RSTW Using cached Twitter data

    Still don’t get any tweets.

    Thread Starter ryanbowden

    (@ryanbowden)

    Hi Thank you, I was unaware of that sort of spam filter i can see why they do it.

    I added quite a bit of text to the form that send to the users and that solved the problem.

    Thank you for helping.

    Thread Starter ryanbowden

    (@ryanbowden)

    I understand that but i am sending it to my company email address which the server has the spam filtering turned off and we have checked the webmail. and it is not in there.

    Also sent it to an outlook email address. which again never gets there.

    It is weird how the thing works but the minute i put in the <img> tags it stops working.

    I understand mail2 is set up wrong and needs to be changed but mail1 should work this is just confusing why that one does not work. I personally think its a bug.

    Because it not like that [email protected] even receives a bounce back as it can’t be delived for spam or what ever reason.

    Thread Starter ryanbowden

    (@ryanbowden)

    Hi i can’t Link to it as it not live but here all the content i have.

    in the input area

    [text* your-name  placeholder "Your name"]
    [email* your-email class:your-email placeholder "Your email"]
    
    [text* friends-name placeholder "Friends Name"]
    [email* friends-email placeholder "friends email"] [submit class:recommend-submit "Send"]

    Mail

    To: [your-email]
    From: [email protected]
    Subject: Thank You Voucher at Body Back-Up
    Additional headers: Bcc: [email protected]

    Message Body:

    Dear [your-name],
    
    Thank you for recommending [friends-name] to Body Back-Up. Please find below a £10 voucher off your next appointment to show our appreciation. Please bring this email (with voucher) along with you to your next consultation. (Expiry: 3 months)
    
    <img src="https://www.bodybackup.co.uk/wp-content/uploads/Screenshot_3.png"  />
    
    The Body Back-Up Team
    Maidenhead - <a href="tel:01628624544">01628 624 544</a>
    London W9 (Maida Vale) - <a href="tel:02089690247">020 8969 0247</a>

    Mail 2:

    To: [friends-email]
    From: [your-name] <[your-email]>
    Subject: Initial Consultation Discount at Body Back-Up

    Message body:

    Dear [friends-name]
    
    [your-name] has recommended you to have a look at our website, <a href="https://www.bodybackup.co.uk">www.bodybackup.co.uk</a>. Also please find below a £10 voucher for you to use at Body Back-Up. Please bring this email (with voucher) along with you to your first consultation. (Expiry: 1 month)
    
    <img src="https://www.bodybackup.co.uk/wp-content/uploads/Screenshot_2.png"  />
    
    The Body Back-Up Team
    Maidenhead - <a href="tel:01628624544">01628 624 544</a>
    London W9 (Maida Vale) - <a href="tel:02089690247">020 8969 0247</a>

    The HTML content type is set to true,

    When someone submits it spins round and goes green find however the emails never receives plus it never gets a bounce back. (Not even in junk)

    If you need any more information let me know.

    Thread Starter ryanbowden

    (@ryanbowden)

    Found the Solution will post it so others in the near future know it.

    //Gtes the Current user role
    	function appthemes_check_user_role($user_id = null ) {
    	    if ( is_numeric( $user_id ) )
    			$user = get_userdata( $user_id );
    	    else
    	        $user = wp_get_current_user();
    
    	    if ( empty( $user ) )
    		return false;
    
    		$roles = '';
    		foreach ($user->roles as $role ) {
    			$roles .= $role;
    		}
    
    	    return array($roles);
    
    	}
    
    function my_load_edit_php_action() {
    		if (isset( $_POST['post_type'] ) && $_GET['post_type'] != 'page') return;
    		add_filter('posts_where', 'my_posts_where_filter');
    	}
    	add_action( 'admin_init', 'my_load_edit_php_action');
    
    	function my_posts_where_filter($sql) {
    		$roles = appthemes_check_user_role();
    		if (in_array('training', $roles)){
    	    	global $wpdb;
    			$sql = " AND ID IN (select object_id from wp_term_relationships where term_taxonomy_id IN (23))" . $sql;
    		}
    		if (in_array('showroom', $roles)){
    	    	global $wpdb;
    			$sql = " AND ID IN (select object_id from wp_term_relationships where term_taxonomy_id IN (19))" . $sql;
    		}
    		if (in_array('accomodation', $roles)){
    	    	global $wpdb;
    			$sql = " AND ID IN (select object_id from wp_term_relationships where term_taxonomy_id IN (20))" . $sql;
    		}
    		if (in_array('familysupport', $roles)){
    	    	global $wpdb;
    			$sql = " AND ID IN (select object_id from wp_term_relationships where term_taxonomy_id IN (21))" . $sql;
    		}
    		if (in_array('healthfitness', $roles)){
    	    	global $wpdb;
    	    	$sql = " AND ID IN (select object_id from wp_term_relationships where term_taxonomy_id IN (22))" . $sql;
    		}
    		return $sql;
    	}
    Thread Starter ryanbowden

    (@ryanbowden)

    No don’t really want to use plugins as people may mess with them! and they have more functionality that we need.

    I found the function posts_where and have the following code:

    function my_load_edit_php_action() {
    		if (isset( $_POST['post_type'] ) && $_GET['post_type'] != 'page') return;
    			add_filter('posts_where', 'my_posts_where_filter');
    		}
    		add_action( 'admin_init', 'my_load_edit_php_action');
    
    		function my_posts_where_filter($sql) {
    			$roles = appthemes_check_user_role();
    			if (in_array('training', $roles)){
    
    		    	global $wpdb;
    				$sql = " AND $wpdb->posts.id IN (SELECT term_taxonomy_id FROM wp_term_relationships WHERE object_id =  $wpdb->posts.id IN (SELECT term_id FROM wp_term_taxonomy WHERE term_taxonomy_id = term_taxonomy_id IN (SELECT slug FROM wp_terms WHERE term_id = term_id AND slug = 'training') ))" . $sql;
    			}
    
    			return $sql;
    
    		}

    I am still playing with it but it add to the end of the clause to add my where and i just need to link the posts to the category this way.

    First time working with IN so the code may be completely wrong any idea where i am going wrong?

    First of why do you have over 8,000 pages?

    Is it your server / hosting that is struggling? May need to upgrade your hosting package.

    Thread Starter ryanbowden

    (@ryanbowden)

    Is anyone able to help me on this

    Thread Starter ryanbowden

    (@ryanbowden)

    Thank you so much!!

    You really helped me make this work.

    I can confirm same is happening on wordpress 4.0

    Thread Starter ryanbowden

    (@ryanbowden)

    The forum is not a plug-in it is MyBB in a separate folder but the .htacess is affecting it. is there nothing i can put on that .htaccess that will stop it working in that folder.

    Otherwise if i put the forum on forum.merlinmania.com that would solve the problem right?

    Thread Starter ryanbowden

    (@ryanbowden)

    Hello,
    Sadly this is not working for me this sites still getting malware put on the theme. Now my other blogs i cleaned the up new themes everything attacks stop, This site can’t get it to do this.

    I have reason to believe that this setting is what’s saving the other websites. Is there no way at all to use this?

    Thread Starter ryanbowden

    (@ryanbowden)

    *Mistake double post. *

    Thread Starter ryanbowden

    (@ryanbowden)

    Hello,
    I am using https://mods.mybb.com/view/google-seo on my forum.

    I have done what you said and found it is “Advanced Character String Filter” which stops the forum working.

    Is there anything I could add so that .htaccess file does not do anything to the forum directory?

    Thread Starter ryanbowden

    (@ryanbowden)

    Ah sorry didn’t know what to post and not to post, this is my website that not yet been cleaned https://rbdevelopers.com/

    I just don’t know how they got into the website. Is it a plugin they would have used as two of these sites use themes I made. (artisteer)

Viewing 15 replies - 1 through 15 (of 15 total)