CodeIgniter Forums
create newsletter signup with bootstrap and codeigniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Learn More (https://forum.codeigniter.com/forumdisplay.php?fid=15)
+--- Thread: create newsletter signup with bootstrap and codeigniter (/showthread.php?tid=70137)



create newsletter signup with bootstrap and codeigniter - fakhrawy - 02-25-2018

in this tutorial we will learn how to make a newsletter popup form with codeigniter and bootstrap, and the flow will be like this:

- User will enter the site ,then we check if there is a JavaScript cookie (ModalShown) set, if found it will appear a clear cookie button, if not found it will wait 3 seconds then appearĀ  the bootstrap modal popupĀ  form

- IF he take and action like (close form, submit form) the modal will disappear, the Ajax request send, the JavaScript cookie set, and the clear cookie button will appear.

- IF the user not take any action like click outside the modal form, it will disappear and will appear again for each refresh in the page.

- IF you click on clear cookie it will remove the cookie and if you refresh the page the popup will appear again.

Now, how to actually add this code to our project, it is very easy, just follow these steps

create newsletter signup with bootstrap and codeigniter


RE: create newsletter signup with bootstrap and codeigniter - ukrsolution - 03-15-2018

Nice job fakhrawy. Will use this tutorial in our new project. Thanks


RE: create newsletter signup with bootstrap and codeigniter - LeroyThomsen - 10-01-2018

(02-25-2018, 04:30 PM)fakhrawy Wrote: in this tutorial we will learn how to make a newsletter popup form with codeigniter and bootstrap, and the flow will be like this:

...

This is really a simple and nice tutorial and has helped me create newsletter signup in my first attempt.