[PLUGIN] Contact for Bludit 2.6

User avatar
Fred
Legend Bludit
Posts: 236
Joined: Wed Jun 24, 2015 2:14 pm
Location: France
Contact:

Contact v2.6
This plugin add a contact form to your Bludit cms.

Generate and store a unique token which can be used to help prevent CSRF attacks and the form check the value token.

The form is added below the content of the page you have set in the plugin.

Is possible to custom the form, for this copy/paste contact/layout/contact.php to themes/YOUR_THEME/php/ and edit, this easy?

With v.0.5, it's possible to custom css, copy/paste contact/layout/contact.css to themes/YOUR_THEME/css/ folder.

Image

Download 2016/01/25 - Version 1.0.1: contact.zip (5 KB)
  • Compatibilty update with Bludit 1.0.1
2015/12/07 - Version 0.5: contact.zip (5 KB)
  • Code clarification for more compatibilty with Bludit 0.7
  • Add reset button to layout form.
  • Add custom css
2015/11/13 - Version 0.4: contact-0.4.zip (5 KB)
  • Ready to Bludit 0.6
2015/08/11 - Version 0.3: contact-0.3.zip (5 KB)
  • Initial version
Last edited by Fred on Sat May 05, 2018 9:23 pm, edited 26 times in total.
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
User avatar
Fred
Legend Bludit
Posts: 236
Joined: Wed Jun 24, 2015 2:14 pm
Location: France
Contact:

Done!

@Diego, I think you should integrate the token system Bludit on all forms natively..
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Fred wrote:Done!

@Diego, I think you should integrate the token system Bludit on all forms natively..
Yeap, I will do it.
User avatar
Edi
Site Admin
Posts: 3120
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Fred wrote:Generate and store a unique token which can be used to help prevent CSRF attacks and the form check the value token.
How has this to be done?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Edi wrote:
Fred wrote:Generate and store a unique token which can be used to help prevent CSRF attacks and the form check the value token.
How has this to be done?
1- Generate a random key/hash
2- Save the key on the user session
3- Insert the key on the form, in a hidden input
4- When the user send the form, you need to compare the KEY from the session with the key from the FORM.

:D
User avatar
Edi
Site Admin
Posts: 3120
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Thank you!
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
Alvin
Jr. Bludit
Posts: 5
Joined: Tue Nov 10, 2015 1:17 pm

Fred wrote:Contact v0.3
This plugin add a contact form to your Bludit cms.
Is possible to custom the form, for this copy/paste contact/layout/contact.php to themes/YOUR_THEME/php/ and edit this, easy?

After I copy/paste contact/layout/contact.php to themes/YOUR_THEME/php/

show :
Notice: Undefined variable: _selectPageList in /home/u349174378/public_html/plugins/contact/plugin.php on line 68
Warning: Invalid argument supplied for foreach() in /home/u349174378/public_html/plugins/contact/plugin.php on line 69
what should I do about it, mr. Fred?
User avatar
Fred
Legend Bludit
Posts: 236
Joined: Wed Jun 24, 2015 2:14 pm
Location: France
Contact:

Alvin wrote:what should I do about it, mr. Fred?
Simply update to lastest (V.0.4) the previews version is for Bludit 0.3.
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
User avatar
Alvin
Jr. Bludit
Posts: 5
Joined: Tue Nov 10, 2015 1:17 pm

Mr. Fred, I have file Indonesian Languange for Contact Plugin
click the link below :
User avatar
Fred
Legend Bludit
Posts: 236
Joined: Wed Jun 24, 2015 2:14 pm
Location: France
Contact:

Thank a lot, translation added!
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
Post Reply