ryanbowden
Forum Replies Created
-
Forum: Plugins
In reply to: [Really Simple Twitter Feed Widget] No Tweets – No WarningsThanks 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 dataStill don’t get any tweets.
Forum: Plugins
In reply to: [Contact Form 7] Images Causing emails not to sendHi 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.
Forum: Plugins
In reply to: [Contact Form 7] Images Causing emails not to sendI 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.
Forum: Plugins
In reply to: [Contact Form 7] Images Causing emails not to sendHi 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-UpMessage 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.
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; }
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?
Forum: Fixing WordPress
In reply to: WordPress with 8000 pages / editing impossibleFirst of why do you have over 8,000 pages?
Is it your server / hosting that is struggling? May need to upgrade your hosting package.
Forum: Fixing WordPress
In reply to: How to change the register form labelsIs anyone able to help me on this
Forum: Hacks
In reply to: wp_query args adding muitiple tax_querysThank you so much!!
You really helped me make this work.
Forum: Plugins
In reply to: [Image Widget] WP 4.0 Compatability Issues?I can confirm same is happening on wordpress 4.0
Forum: Plugins
In reply to: [All-In-One Security (AIOS) – Security and Firewall] htaccess killing forumThe 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?
Forum: Plugins
In reply to: [All-In-One Security (AIOS) – Security and Firewall] htaccess killing forumHello,
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?
Forum: Plugins
In reply to: [All-In-One Security (AIOS) – Security and Firewall] htaccess killing forum*Mistake double post. *
Forum: Plugins
In reply to: [All-In-One Security (AIOS) – Security and Firewall] htaccess killing forumHello,
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?
Forum: Fixing WordPress
In reply to: Sites getting hackedAh 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)