noxion
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Contact Form 7] Use Contact Form 7 with cURL?In your functions.php insert this:
function leads_integration_wp_cf7( $cf7 ) { $url = your_url_goes_here; $postparams = your_post_params_goes_here; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POSTFIELDS, $postparams); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1 ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 ); $output = curl_exec($ch); curl_close($ch); } add_action('wpcf7_mail_sent', 'leads_integration_wp_cf7');Forum: Fixing WordPress
In reply to: Uploading media – http errorSolution after Media Temple upgrates on Plesk and PHP.
Edit the following file:
/etc/httpd/conf.d/fcgid.confAdd this line (just below all of the other lines that start with ‘Fcgid’):
FcgidMaxRequestLen 1073741824Restart your Apache web-server service with this command:
service httpd restartYey!
Forum: Fixing WordPress
In reply to: wp_admin_cssYou have to add this code bellow, for example:
[please read http://codex.ww.wp.xz.cn/Forum_Welcome#Posting_Code for posting code]
function my_wp_admin_css() { echo '<link rel="stylesheet" type="text/css" href="' .get_bloginfo('template_url').'/wp-admin.css">'; } add_action('wp_admin_css','my_wp_admin_css'); apply_filters( 'wp_admin_css','my_wp_admin_css' );Note that I’ve put the action too. I think that is something broken. So this is the workaround. =)
Viewing 3 replies - 1 through 3 (of 3 total)