moni
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form DB] Generate unique sequence idHi
@marcuschia01 the code you wrote for counter is working correctly or not ? if yes then how will this show by short code on contact form ?ok Thanks for reply
Waao now this is working perfectly. Thank you for finding this error.
Hi. Yes I was looking for the same problem if any one face this. I am getting wrong link in post notification in email. Do I change it in plugin file?
Forum: Plugins
In reply to: [Contact Form DB] Multi purpose formThank You I am using contact form Now it is capturing URL.
I am using filters in short code I want to hide “Null” Values or values with placeholder “Select”
I used filter filter=”Pickup==null” where Pickup has no value in it. But instead of hiding it started showing where Pickup is nullForum: Plugins
In reply to: [Contact Form DB] Multi purpose formThank you for reply Micheal. I want to ask one thing more
1. I have posts of multiple categories and under every post I have only one multipurpose form I wrote early. suppose I have category food and have 4 post for food items. How can I detect from which food post the form is submitted ?Forum: Plugins
In reply to: [Form to Post] Form FieldsHi.
First of all thank you so much for support.
I almost figure out problem.. I have multiple forms I used this method for posting of multiple forms.
if ($form_data->title = $form_title) …
When there are multiple forms some thing in checkbox inside posting code it does not post. I used select boxes it started posting.
There is some problem in plugin when posting with checkbox having multiple forms it does not work. Please have a look on that.- This reply was modified 9 years, 6 months ago by moni.
Forum: Plugins
In reply to: [Form to Post] Form FieldsI wrote code for different form with different function names. I am using shortcode , action filters.
The code works perfectly if other forms code is deactivated and stop working when all forms code activated. I tried by changing name of post field code for example: destination to t-destination to differentiate it from other fields but still nothing happen when code is activated for all forms. If you understand this problem then guide me please.By trying second method Now I write code , to work for multiple forms.But it is generating error not working.Please check am I writing in right way.. Error is generated at line 7.
function f2p_consolidate_fields( $form_data ) { // change the function name as needed
$form_title = ‘Help Form’; // Change this to your form name
if ($form_data->title = $form_title) {
// Next line sets the post_title value
$form_data->posted_data[‘post_title’] = “Post from {$form_data->posted_data[‘your-name’]}”;
$content = ”;
if (isset($form_data->posted_data[‘transport_service’]) {
$content .= $form_data->posted_data[‘transport_service’] . ‘ ‘;
}
if (isset($form_data->posted_data[‘Destination’]) {
$content .= “for {$form_data->posted_data[‘Destination’] }”;
}
if (isset($form_data->posted_data[‘pickup-address’]) {
$content .= “pickup address is {$form_data->posted_data[‘pickup-address’]}”;
}
if (isset($form_data->posted_data[‘pickup-city’]) {
$content .= “from city {$form_data->posted_data[‘pickup-city’]}”;
}
if (isset($form_data->posted_data[‘pickup-state’]) {
$content .= “state is {$form_data->posted_data[‘pickup-state’]}”;
}$form_data->posted_data[‘post_content’] = $content;
// Next line sets the post_content value
$form_data->posted_data[‘post_content’] =
“This is a post from {$form_data->posted_data[‘your-name’]} with email {$form_data->posted_data[‘your-email’]}
{$form_data->posted_data[‘select-family’]} {$form_data->posted_data[‘translator’]} the language is{$form_data->posted_data[‘select-language’]}
{$form_data->posted_data[‘Urgent-Service’]} on date{$form_data->posted_data[‘your-date’]}“;
}
return $form_data;
}
add_filter( ‘form_to_post_form_data’, ‘f2p_consolidate_fields’, 10, 1 ); // make sure the function name matches aboveForum: Plugins
In reply to: [Form to Post] Form FieldsBy activating code for other forms the post does not show the content written after common content of all forms.
Forum: Plugins
In reply to: [Form to Post] Form FieldsThank you for reply
I made different forms and by setting form title in which this code is common:
“This is a post from {$form_data->posted_data[‘your-name’]} with email {$form_data->posted_data[‘your-email’]}
{$form_data->posted_data[‘select-family’]} {$form_data->posted_data[‘translator’]} the language is{$form_data->posted_data[‘select-language’]}
{$form_data->posted_data[‘Urgent-Service’]} on date{$form_data->posted_data[‘your-date’]}Now i added more content after this code in different form like
for {$form_data->posted_data[‘picnic-planning’]}
now post is not showing content after date. the post data code is same in form and in function. The post is like this:
This is a post from julia with email [email protected]
Family A Translator Required the language isChinese
Urgent Service Not Require on date for ArrayNot showing content after date form my multiple forms.
Forum: Plugins
In reply to: [Contact Form DB] CFDB as PostCan we show it under every post automatically ?
Forum: Plugins
In reply to: [Form to Post] Contact Form 7 FieldsThank you so much for your support. Great Plugin. 🙂
Forum: Plugins
In reply to: [Form to Post] Contact Form 7 FieldsThank You for response.
Now I am able to add more text fields. Can you tell me what code will be used for Select and Radio Buttons and check fields ?Forum: Plugins
In reply to: [Form to Post] Contact Form 7 FieldsAnd if it should be show as meta post then please tell me how do I show.Text boxes are also not showing. Can you give hint of php code to show custom text fields?
function form_to_post_set_values($post) {
$post[‘first-name’] = ‘First Name’;
return $post;
}add_filter(‘form_to_post_before_create_post’, ‘form_to_post_set_values’);
This is not working as I enter name it does not appear, am I writing right code ?
Should I make changes in php code. Does meta work with select and radio button options.
Forum: Plugins
In reply to: [Form to Post] meta tagsHi @syndicate604 I want to ask you how did you show meta posts in form. I am unable to make meta post can you share the code Please.