Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
12/13/2013 at 1:04 pm #275361
Hello, I need to add a simple bulk action to the
admin.php?page=connections_manageso that I can send the ids to another plugin. I need to be able to send an email to the members in the list that are have the unapproved status and was going to use a custom plugin to do so. I figure I need to do 3 basic things, add to the bulk action drop down, then hook in so that I can display my intermediary page that provides the email options and has looked up the connection list members that meet the need. I was able to add to the bulk action dropdown, but could you provide an idea on what may be the best route to email these people in mass?12/13/2013 at 3:53 pm #275365
I had a different thought that maybe I can just do a list of the items in a created page and do the bulk action from there. Basically have it where I do all the email functions from there based on the list I pull up. Make a new sub plugin? looking down that path way at this moment. So pointing would help. Cheers12/13/2013 at 4:58 pm #275366
ok, well I’m taking the first stab.. here is the project.
any tips or ideas would be welcomed. Cheers12/16/2013 at 12:07 pm #275460
Very interesting. I’m going to download and install right now.12/16/2013 at 12:16 pm #275462
@steven_zahm well I’m just starting.. we need to be able to email anyone that is waiting to be approved in mass. Use an email template or something and then off the mass email is done. I had it pretty far and manage to wipe the work so what is up on git is just my base start is all. The only other need we seem to have is that we need to be able to set a connection “level” like “member”, “affiliate”, “guest” .. not that they have to be those, but I must be able to mark these in a secondary categorization.
Cheers12/16/2013 at 12:37 pm #275463
Yep, once I dug in, saw it was a shell.
I think this is a great way to go about what you want to accomplish.
You can use this method to retieve a list of entries that are approved. You would sent the
statusarray option to
As a thought … you could use a category chooser, like on the edit entry page, to define which categories the emails should be sent to. You could probably lift that code from here.
If you want to build this on the bleeding edge version of Connections [pull the dev brach from Github] … you could add a new metabox/field to capture the member level info separately from the categories. Here’s the link to the forum thread about this new API. And here’s a link to a specific reply that has a few videos demoing the current state of the API.
Here’s a link to the Business Hours extension that takes advantage of the new API. You could use it to figure out how to add a new metabox and field for your member level.
I look forward to see what you come up with.
Oh, I should mention I have an email API and email template API already built in. I’m just not using it yet because I’m still building it up. I want to inlude “token” support so a user could use “tokens” to represent the entry info that should be swapped inplace of the token :) Take a look at these files.12/16/2013 at 1:10 pm #275464
awesome, I’ll look to it. I’m hoping to not mix the cats is the goal on the one part, but for sure I’ll look for the api hooks on the emails. I’m going to be burning through things most of today so I should have something to show later. thank you for the help. Cheers12/16/2013 at 2:11 pm #275482
I am having some issue getting the bulk action to work, but I think I have the meta fields down. The plan is to have a last sent email meta so that it’s tracked and do the levels one too. I’ll be breaking for a bit, but if you have any suggestions or know what I need to change on the bulk part any thing is welcomed. Just want it to stay in line with your plugin so it’s stable lol.. thanks again. cheers12/16/2013 at 10:17 pm #275503
I’ll take a look tomorrow… in the meantime, take a look at this file. Specifically lines 16 thru 130. That is how I register and run all actions in the admin. This class is init/d here and that class is init/d here. (uh, yeah, I still have a bit of work to do cleaning up the initialization of the plugin … its a work in progress!)
I just pushed a bunch of commits to Github. It adds a lot of polish to the meta API. The changes should break what you’ve done.
You cannot reply to this support topic. Please open your own support topic.