Send invitations from another page
-
I am trying to use this plugin to send invites from a page other than the member profile page. The plugin was definitely not designed to do this, and I’m trying to avoid having to totally hack the plugin.
Here’s what I’ve done so far:
* create my own plugin, which requires invite-anyone.php
* the Invite Anyone plugin enqueues some CSS and JS in by-email/by-email.php, so I enqueued the same CSS and JS in my plugin on the page where I need it
* put the function invite_anyone_screen_one_content() on my pageThe invitation screen is displaying properly, but when I submit the form, no invitations are getting sent, and the %%inviter%% variables aren’t getting replaced with the proper text. The “From your address book” link doesn’t work. I’m not seeing any JS or PHP errors.
Before I get too much farther with trying to get this to work, I thought I would check with you to see whether you think this is at all feasible, and whether my approach so far is sensible. Will displaying this form on another page require totally rewriting the plugin? Do you have any advice before I proceed? (I will consider “You shouldn’t try to do this” good advice, if you think that’s the case.)
- The topic ‘Send invitations from another page’ is closed to new replies.