Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Using Gravity Forms to Create Topics?
Avatar
Rem Kingston
Member
Free Members
sp_UserOfflineSmall Offline
May 22, 2015 - 10:41 am

I tried searching but couldn't find anything specific to using Gravity Forms.

 

We are using Simple Press within an Intranet environment but would like to use the flexibility of templating the content of a post using fields from a Gravity Form.

 

Eg:

IT Issue:

Date of issue:

Time of Issue:

Description of issue: 

 

These fields would then populate the Topic Title, Topic Description and Topic post Content

 

I'm thinking that this could be done using the notifications emails from Gravity Forms to post via the email plugin maybe?

Feedback from anyone that has tried similar would be most appreciated 🙂

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 22, 2015 - 11:05 am

We dont use gravity forms so hard to answer...

Certainly, using the Simple Press API this could be accomplished via a custom plugin...

Or if you use or post by email plugin, it may be possible already...  That plugin allows you to post to forums via email... So if gravity forms can email a specific address for a forum, it may be possible...  For new topics, pretty straight forward...  Existing topics would be a bit more tricky since the topic name is needed...  The hardest part would be the user...  The email address of the email sender needs to match a valid forum user...

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
May 22, 2015 - 11:13 am

Hey Rem,

I'll just start by saying that while I do have some experience with Gravity Forms, I've not done anything quite so adventurous myself! You'd probably want to start by using the 'gform_post_submission' action to catch the data after it's validated by GF, and this you can make form ID specific.

The plugins which make posts such as posts by email might not be worth using in the way you've mentioned as they all use the core post class to create posts, and that's probably the way you should be looking at going.

Start by taking a look at the SP post class in simple-press / forum / library / sp-post.php. Also take a look at some of the plugins which make use of it to see how they do it - Have a look at the following and search for '= new spPost;' to find the post class being initialised, then read on from there.

forum-plugins / post-by-email / library / sp-email-post-process.php

forum-plugins / post-multiple / library / sp-post-multiple-components.php

forum-plugins / blog-linking / library / sp-linking-blog.php

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626