robguay
Forum Replies Created
-
Forum: Plugins
In reply to: [Task Manager] Email NotifcationIn-conclusion I found that “Tasks” & “Comments” are found in the wp_Comments table, Therefore, I was able to use WordPress functions to retrieve the data I needed.
Forum: Plugins
In reply to: [Task Manager] Email NotifcationUpdate:
$args = array( 'post_id' => $task->data['id'], ); $comments = get_comments( $args ); foreach ( $comments as $comment ) : if (strpos($comment->comment_content, 'PAID') !== false) { $body .= '<p>' . $comment->comment_author . ': ' . str_replace('PAID', '<span style="color: green;">PAID</span>', $comment->comment_content) . '</p>'; $subject .= ' ***PAYMENT RECEIVED***'; }else{ $body .= '<p>' . $comment->comment_author . ': ' . $comment->comment_content . '</p>'; } endforeach;
This is what I used to get Tasks and Comments
Forum: Plugins
In reply to: [Task Manager] Email NotifcationPREFECT!!
Just one more thing, I had to use “strip_tags” to remove html tag in the title. Seems if you don’t first paste into a (utf-8 format) text editor then copy and paste into form, it will create or except html tags. Like <br>. Then again, was that the intent? If so, then when emailing the notification the subject line can not have html tag in it. Example: before I did some adjusting.
Task Manager: The task #3853 <p><span data-tt="{"paragraphStyle":{"alignment":4,"style":0}}" style="white-space: pre-wrap;">Analytics</span></p>
Now, using php “strip_tags” I get:
Task Manager: Update to task #4078: Enlarge logo on mobile
Thanks again!
Forum: Plugins
In reply to: [Task Manager] Email NotifcationTask version: 3.0.0
WP: WordPress 4.6.1Currently I am using a manual action to generate the email, which uses notify.action.php.
Forum: Plugins
In reply to: [Task Manager] Email NotifcationOne more question:
In code:Task == Project
Point == Task in Project
Comment == comments in TaskIs this correct?
Forum: Developing with WordPress
In reply to: CLI – Package installIf you use cPanel
cPanel >> Select PHP version >> Switch To PHP Optionschange memory_limit –> 512M
SUCCESS
Forum: Localhost Installs
In reply to: #1273 – Unknown collation: ‘utf8mb4_unicode_520_ci’alfatihg80
Thanks your solution worked for me!!!
Yes please, I would love to have the code.
THANKS
Forum: Plugins
In reply to: [Simple Mobile URL Redirect] getting desktop view again from mobile viewHi nikki007
Did you ever come up with a solution to your first post? I have a customer with the same request.Thanks