The class that we are going to create within CI will simply add a math question that the user will have to enter correctly to continue. This is useful to stop bots from mass submitting information to your forms.
The class we are going to write is only very short and simple, but it will give you an idea of how to create classes for your own projects.
Creating the new class
First of all we need to create the file for the class, navigate to libraries then create a file called math_question.php.
All we are going to do within this class is generate two random numbers that will be added together.
(more...)
Create a form that requires the user to enter both a username and password. If the username field or password field is left blank then a message will be displayed.
Learn how to use the animate function within the jQuery library to create an effect similar to the table of contents for the table of contents on codeigniter.com.
The plugin that I'm going to show you how to create within this post is a plugin that I created for MakeUseOf.
Creating plugins for WP is relatively easy and uses actions to call functions that are included in pages within the main WP files. To learn more about creating plugins for WP go here.
Ok so lets get started with creating the plugin.
When creating a plugin for WP make sure that you include your own unique word or acronym to your functions so that they don't conflict with any other plugins that may be installed.
Because I created this for MakeUseOf the acronym I use is MUO and then AF because I named the plugin author footer so every function within this plugin begins with MUO_AF.
(more...)
A video tutorial showing the basics of cocoa/objective c and how to get the value of a slider.
