following snippet to list down drafts and order by current user , so that current users draft post appear first and then other draft, you can use same for other posts post type as well. Continue reading “order by current user id in wordpress”
There are several methods to get browser properties. php get_browser function is very useful as it return many browser properties.but In for get_browser to work, your browscap configuration setting in php.ini must point to the correct location of the browscap.ini file on your system. Continue reading “Get browser properties without browscap in php”
If you are looking for a php seach script to find the items ,profile or anything within a defined radius ,then you have to use geometric formula. In this script we will use php , mysql and google geocoder. Continue reading “Php search script within a radius”
preview form before submit is a common idea. idea of making such a plugin comes in my mind when i was working on a cake project and client ask me to do it.developer needs such a plugin most of the time and don’t like to write the same code in php js or jquery again and again.
What is it ?
previewForm is a tool for displaying form content before it goes to the server for processing.This plugin provides users to confirm the data before they are going to sumit it.
It was built using the jQuery library. Licensed under both MIT and GPL licenses
- Preview the value of textbox.
- Preview the value of selectbox.
- Preview the value of radiobox and checkbox.
- Preview password field if option selected.
Example 1 With password preview.
Example 2 with password disable.
How to Use
1. First, make sure you are using valid DOCTYPE and correct form structure.
2. Include jQuery and previewForm JS files.
3. Add previewForm CSS file
4. Fire plugin using jQuery selector
API & Options
|show_password||true||Whether you want to show the password field in preview|
|extratext||‘Do You Want To submit’||Extra text before confirmation buttons|
|yes||yes||Button Label for yes button|
|no||no||Button Label for no button|
|title||Please preview||Title of preview dialog|
forget wordpress admin password. no worry , there is a simple way how to reset wordpress admin password.
cms don’t use plain text to store the password. WordPress stores its password using md5 encryption in mysql database.
Here is some simple steps to reset wordpress admin password from phpmyadmin .