pabrady
Forum Replies Created
-
Ok. Thank you SO VERY much for all your help and advice. It is greatly appreciated. I hope I wasn’t too much of a pest. 🙂
I love tablepress!!!!
Warm regards,
PaulOh. Sorry. I understand now. Really appreciate your time and effort there Tobias.
Any chance you would be available for some consulting work – customizing the interface for a few workflow like features?
Best,
PaulOk. What if we don’t care about the old info? What if all I want is an email that shows me the table id and user email (which we have now) and then shows the row # and new info published only?
That would work for me too! 🙂
-p
Quick update: I add a few changes to your code to specify user email:
add_action( ‘tablepress_event_saved_table’, ‘pabrady_tablepress_save_notification’, 10, 1 ); // custom change email notification
function pabrady_tablepress_save_notification( $table_id ) {
$current_user = wp_get_current_user();
wp_mail(
‘xxx@gmail.com’,
‘TablePress table was saved’,
“The table with the ID {$table_id} was saved by user {$current_user->user_email}.”Only thing missing now is how to specify the row # of the table that changed and dump the info from that row also so that I get notified by email on both those data points.
That is probably beyond my coding skills 🙂
Let me know what you think! And Thanks!!!
Best,
PaulHi Tobias!
Your code worked like a charm. I got it to work. Only question now is:
Is it possible to identify the change or just (if easier) spew the entire row that contains the change
and
Can I identify the wordpress user that performed the change? Each user has to have a login ID on our portal to access content and make changes. 🙂
Thanks SO much for your awesome help.
Best regards,
PaulHi,
This is great!!!
Two questions:
1. Which files should I add this to. Are both your changes above for this file: “models/model-table.php’?
2. Is it possible to show what the change is when I am notified? Even raw text from the specific row would (along with row # changed) would be great!
Best,
PualOk. How about a middle ground?
Can you set something up so that a change in a table sends a notification to an admin once the save is submitted?
Is that possible?
-p
Hi Tobias!
Thanks for the reply. So revisionary plugin allows certain users to submit changes to published content, with an editor reviewing those changes before publication. It does this using a rudimentary workflow. Users editing pages do not see the ‘publish’ button but rather a ‘Submit for Review’ button. So any changes made to posts or pages are moderated.The issue with tablepress is that it does not work at all with this workflow. I’d love to get wordpress working with revisionary or maybe it already works with another workflow plugin?
Any help you can provide is greatly appreciate.
Best regards,
PaulForum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Link in tablepress doesn't workHi Tobias!
I think your Tablepress plugin is amazing! I love it!
One question…do you think you will be adding a bug fix for the ckeditor issue? I use ckeditor and really don’t like tinymce.
Thanks again!!
Best regards,
Paul