Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2023-02-05 09:19:31
- bashirnoori
- Member
- From: Afghanistan
- Registered: 2012-10-02
- Posts: 79
Re: Contact Form Plugin
I tried a lot, but didn’t success !
I hope to have a good plugin in the future as many people need that.
I will develop the form and admin panel in Laravel PHP MVC, but I don’t know that would be possible to embed it’s public form in textpattern public page or not through Presentation —> Pages ?
Offline
Re: Contact Form Plugin
Hi
The plugin i sent is not working?
Cheers.
Offline
#15 2023-02-06 06:02:03
- bashirnoori
- Member
- From: Afghanistan
- Registered: 2012-10-02
- Posts: 79
Re: Contact Form Plugin
Hi Dragondz,
Thanks for your kind cooperation.
I tried that, but didn’t find any option to list the submitted records in my txp admin panel.
I need these fields in my form: Name, Email, Phone, Organization, Photo, Country, Training_Name, Message
Could you please help me in this regard ?
Offline
Re: Contact Form Plugin
Hi
You need to change the code itself to match your need ther is no prefs or something like that in my plugin, i did it for my own use.
But you it s not too hard to change the code itself in the textpattern plugin tab.
One thing to know is you cant store Photo as image with my code.
First you need to add those 2 field to your public form (inside com_connect form):
<txp:com_connect_secret name="dzd_mailtodb_inscrit" label="dzd_mailtodb_inscrit" value="1"/>
<txp:com_connect_secret name="insertion" label="insertion" value="1"/>
After that you need to change the code of the plugin like this (the part that begin with : $myid = safe_insert() ) Change “inscrit” by the name of your db table and the other lines, in each line the first part is the db column name and inside $values array is the name oh the form field, I dont know if they are the same in your website but if i assume they are the same the code should look like that :
$myid = safe_insert(
"inscrit",
"Name = '$values[Name]',
Email = '$values[Email]',
Phone = '$values[Phone]',
Country = '$values[Country]',
Training_Name = '$values[Training_Name]',
Message = '$values[Message]'"
);
Hope that can help you
Cheers
Offline
#17 2023-02-18 08:54:01
- raminrahimi
- Member
- From: India
- Registered: 2013-03-19
- Posts: 278
Re: Contact Form Plugin
Hello to everyone,
One of my client need that kind of feature, if anyone please help me.
They need to list the contact submitted form data in the textpattern admin panel.
I need like the above form except the Country and Training_Name fields.
Offline
Re: Contact Form Plugin
Hi
Grab my plugin it s on the page one of this discussion, then change it like i explained above.
Cheers.
Offline