sonnensegler
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Comment notification email not workingSame problem here since upgrade to 3.2.1. I didn’t change anything in the settings, it worked fine before.
Previous setting:
E-mail me whenever
– anyone posts a comment,
– a comment is held for moderation
(both checked, rest unchecked)Here is what did the trick for me:
1) set the e-mail-address under Settings > General to the same one that’s set in my user profile as admin
2) Checked the “Before a comment appears -An administrator must always approve the comment” option once, saved, and unchecked it again, saved
It’s mysterious, but it seems to be working now ?? Had some test comments and got all notifications.
Thanks!
Update to 4.302 works now. Nothing to worry!
Dear Marcus,
thank you for your quick reply, I’ll check the tutorials. Custom Posts sounds great, looking forward to it!
In general I want to thank you for this amazing plugin, I’ve had too much trouble with others, and I will definitely go pro. I can barely imagine what knowledge and effort you’ve put into this and this project deserves every cent ??
Of course.
For example, the backend page where you create a new event. I want to add e-mail notification, but only, if a certain checkbox at the end of this event-creating page is checked.
E-Mail infos, like subject, message, all the recipients will be put into fields in the setting page of events manager.
Currently, I am doing all this with a specific notification script which sits in an events manager core file and the checkbox and the extra fields are written into core files as well.
After every update of the plugin, I have to put my code in again.
If you want to change output of frontend stuff, like the events registration form a visitor sees, we have the template files to use whatever code we need and save it there. Or we can create template tags and use those.
I need that feature for backend stuff. I don’t want to touch any existing code but extend it with my own ideas. Another thing which sits in the core files right now is an extra short description field for an event that I needed.
The other option realizing this would be to use hooks (filters and actions). I would write hooks that hook into existing functions of this plugin, but as you can imagine, it’s much harder to do that. I’m only getting into hooks and filters and the first option would be much easier: adding stuff to the backend code and let the original one be overwritten.
I know that the author of this plugin would disapprove of this, because changing major backend stuff could break the plugin. But since the “admin” folder within template files folder is already there, I thought it was intended to do exactly this.
It would just be great to get a clue why overwriting admin files doesn’t work and why.
Thanks, Christiane
Yes, I finally did within SequelPro (and with Firebug and activated php error logging) and that saved me a lot of time ??
Fortunately I got it working with
$results = $wpdb->get_results(“SELECT * FROM wp_em_bookings WHERE event_id = $eventid AND person_id = $userid “, OBJECT_K);
(the WordPress tutorial for interfacing with the database tells you to leave out the prefix)
and then working with that array. Plus I had to add
define(‘WP_USE_THEMES’, false);
require($_SERVER[‘DOCUMENT_ROOT’].’/wp-blog-header.php’);in the header of my file since my function doesn’t get all the globals from WordPress headers.
A client of ours needs a possibility to cancel an event straight away without ever reserving for it, so I had to try a little with database and booking status.
I solved the core changing problem by using a custom placeholder for this special button.