I can get this to work with only allowing the secondary site admin to see the post form by putting the template function checking first if user is logged in and is owner of the site and posting as the author. So we're all good on getting this to post on user sites as a frontend post form but...
How could I auto create a default form for secondary sites that is for superadmin only? That is, use one template form that will be active on the theme upon creating a new blog but not have the site admin be able to access the form options. As it is, from what I can see the user will need to activate the plugin, create a new form, etc. and we don't want the user to access GF's options at all.
I have users blog working off the same theme with the template function in the index.php. So when the user activates their blog, it will show the undefined function error because they haven't gone through activating the GF. And when the plugin is activated, the template could not be located.
How could we do this creatively to auto create a default form template on all new blogs created and have the plugin active upon blog creation. Could we possibly work it in to the Multisite plugin New Blog Defaults as an add-on? Maybe a way to locate the template via an include wp_content_dir. Maybe another option is to auto export the main site forms into the plugin dir where they could then be automatically imported to the secondary sites.
Any other ideas to get this going? If there were a way to manage/create all forms on the main site and network activate them across all sites, that would be key!
Posted 14 years ago on Wednesday September 22, 2010 |
Permalink