M@X
Forum Replies Created
-
I figure out the issue. In my case was duplicate of sendgrid Classes. I’ve tryied Sendgrid API directly in my code and included sengrid-php.php.
Hi,
Thank you for your fast reply.
Now everything works! ??- This reply was modified 2 years, 5 months ago by M@X.
Forum: Plugins
In reply to: [WP Job Manager] File typeCena, thank you a lot for the quick and expanded reply!
Great, great plugin and support!Forum: Plugins
In reply to: [WP Job Manager] File type*Upd:
it still allows you to choose all files in pop up window:But the good news is it restricts to post a job when you click preview button:
Is it anyway also to choose specific files in the popup window?
I also tried to do the same with the admin part in
add_filter( 'job_manager_job_listing_data_fields', 'admin_add_extra_fields' ); function admin_add_extra_fields( $fields ) { $fields['_job_attachment'] = array( 'label' => __( 'Attachment', 'job_manager' ), 'type' => 'file', 'description' => '*pdf only', 'allowed_mime_types' => ['pdf' => 'application/pdf'] ); return $fields; }
But it doesn’t work at all. In the admin panel, user can upload any file type ??
Forum: Plugins
In reply to: [WP Job Manager] File typeHi Aicee,
thank you for your reply, but unfortunately, it doesn’t work, it still allows you to upload all files ??I also tried to do the same with the admin part in
add_filter( 'job_manager_job_listing_data_fields', 'admin_add_extra_fields' );
But it doesn’t work either.
Forum: Plugins
In reply to: [Theme My Login] Add Roles During RegistrationFor temporary suggestion I created additional field in profile, call it “Selected Role” and putting there what user selected during registration:
update_user_meta( $user_id, 'selected_role', $_POST['role'] );
and than manually checking and updating the role.
It’s little bit stupid but works for now ??Forum: Plugins
In reply to: [Theme My Login] Add Roles During RegistrationNo, it’s doesn’t work. I tried and wp_update_user and:
$u = new WP_User( $user_id ); $u->remove_role( 'role1' ); $u->add_role( 'role2' );
both not working ??
Forum: Fixing WordPress
In reply to: HTTP errors on media uploads after 4.5 updateThank you artedesigner.
Your code works for me too ??Forum: Plugins
In reply to: [Theme My Login] How to delete Nickname field from profile?Fount one way – comment part of code in file wp-admin/includes/user.php
if ( $update && empty( $user->nickname ) ) { $errors->add( 'nickname', __( '<strong>ERROR</strong>: Please enter a nickname.' ) ); }
But not sure that is a good idea. After core update those changes will be lost.
Maybe somebody know better way?Forum: Fixing WordPress
In reply to: How to add visual Editor to my pluginThank you. It is the good decision for me ??
But I have 1 problem with it.
Here part of my code for my textarea field:<td>Message</td> <td colspan="4"> <?php $content = $mydata['message']; $editor_id = 'message'; wp_editor( $content, $editor_id ); ?> </td> </tr>
I created some message with color text – https://ipic.su/aiEOt.jpg
And content saving to Database with screening – https://ipic.su/aiEOo.jpg
And after editing TinyMCE doesn’t see CSS styles.
Forum: Fixing WordPress
In reply to: How to save form data to database after submitThank you, Samuel.
Your example works if action empty (action=””). It’s mean that code will be interpreted by the same page. If you change action in your code for any external, for example action=”https://site.com/payment.php” – you will not save data to database.Forum: Fixing WordPress
In reply to: How to save form data to database after submitThank you, Samuel. I did it, but it’s doesn’t work.
Because form has external action – action=’https://www.sandbox.paypal.com/cgi-bin/webscr’When I put “if(isset($_POST[“submit”]))” – it’s not running.
Maybe I put it in wrong place?function checkout_shortcode ($atts){ ob_start(); global $wpdb; $current_user = wp_get_current_user(); echo "<div class='payform'> <form id='paymentForm' name='paymentForm' action='https://www.sandbox.paypal.com/cgi-bin/webscr' METHOD='POST'> <input type='hidden' name='action' value='save_sdb_checkout_shortcode' /> <input type='hidden' name='cmd' value='_xclick' /> <input type='hidden' name='business' value='[email protected]' /> <input type='hidden' id='item_number' name='item_number' value='1'> <input type='hidden' name='no_shipping' value='1'> <input type='hidden' name='return' value=https://site.com/return/ /> <input type='hidden' name='cancel_return' value=https://site.com/cancel/ /> <input type='hidden' name='notify_url' value=https://site.com/notify/ /> <label>Name:</label> <input type='text' name='name' value='".$current_user->display_name."'> <label>Email:</label> <input type='text' name='email' value='".$current_user->user_email."'> <label>Phone:</label> <input type='text' name='phone' value='".get_user_meta($user_id, 'phone', true)."'> <label>Pyment Purpose:</label> <input type='text' name='item_name'> <label>Payment Amount:</label> <input type='number' name='amount' min='0' max='100000' step='0.01'> <input type='submit' name='submit' value='Make a Payment' /> </form></div>"; if(isset($_POST["submit"])){ global $wpdb; $payment_data = array(); $payment_data['user_id'] = get_current_user_id(); $payment_data['amount'] = $_POST['amount']; $payment_data['status'] = 'Pending'; $payment_data['payment_date'] = date('Y-m-d H:i:s'); $payment_data['payment_type'] = 'Paypal'; $payment_data['item_name'] = $_POST['item_name']; $wpdb->insert( $wpdb->get_blog_prefix() . 'payments', $payment_data ); } $output = ob_get_clean(); return $output; }
Forum: Plugins
In reply to: [WP Customer Reviews] Required fieldsNever mind )
For others, who have the same issue:
Need click on one of the buttons * and after it you’ll see full settings page:<img src=”https://ipic.su/ah78g.jpg” />
Forum: Plugins
In reply to: [Events Planner] ERROR: Authentication/Authorization FailedHi!
Thank you!
The problem was in my PayPal account. On another works good!
Great plugin!Thx for answer )
1) I thought sow, that the problem to support previous versions. Now, of course, will be better create additional CPT for AWPCP. It will be perfect for SEO. Because without good optimization site traffic will be poor ((
Maybe it’s worth thinking about AWPCP 2.0 with custom post types )
2) As to <h1> title I found little hack, maybe it’s will be a good decision.
In file placeholders.php need to check post ID, and if this is the ‘show AD page’ – make title <h1>:function awpcp_do_placeholder_title($ad, $placeholder) { $url = url_showad($ad->ad_id); //*City - OldCode $replacements['ad_title'] = sprintf('<a href="%s">%s</a>', $url, $ad->get_title()); //*City - New Code if(get_the_id() == 33) { $replacements['ad_title'] = sprintf('<h1>%s</h1>', $ad->get_title()); } else { $replacements['ad_title'] = sprintf('<a href="%s">%s</a>', $url, $ad->get_title()); } //*CityEnd
*In my case – 33 – that is ID “Show Ad Page”.