Browsed by
Month: August 2014

jQuery Form Validation Example

jQuery Form Validation Example

jQuery Form Validation Example: We used to validate the form using javascript and there we have to write our own logics to validate the email, phone number and mandatory fields etc…. But now jquery validate plugin is available for ease of form validations. Include the below scripts: <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.js"></script> Form need to be validated: <form method="post" action="signup.php?retrun=http://www.gururecharge.chudar.com/terms.php" id="validate_form" name="validate_form"> <div class="divmain" style=" float:left; margin-left:45px; border-right:thin ridge; padding-right:30px; "> <div style="border-bottom:#CCC solid 1px;"></div> <br /> <div class="divbox1"> <div class="divbox11">…

Read More Read More

610 total views, no views today

How to use property file in php ?

How to use property file in php ?

How to use property file in php ? What is Property file ? Property file in php will have the .ini extension. which will be used generally for the constant informations like website_url, filepaths and key, value mappings etc. Extension: Its a .ini extension. Sample Property file: prop.ini: Idea=12 Airtel=2 Aircel=1 (or) Idea=12; Airtel=2; Aircel=1; PHP Code to get the prop(ini file) values by its key: <?php $ini_array = parse_ini_file("prop.ini"); $propKey = ‘Idea’; echo $ini_array[$propKey]; ?> Output: 12 Download Source…

Read More Read More

575 total views, no views today

Removing Featured Image from post and search result wordpress [Solved]

Removing Featured Image from post and search result wordpress [Solved]

Removing Featured Image from post and search result wordpress: 1. Comment the below snippet from the single.php (in some themes file names may vary. (vantage theme -> content-single.php)) <!– <?php if( has_post_thumbnail() && siteorigin_setting(‘blog_featured_image’) ): ?> <div class="entry-thumbnail"><?php the_post_thumbnail( is_active_sidebar(‘sidebar-1’) ? ‘post-thumbnail’ : ‘vantage-thumbnail-no-sidebar’ ) ?></div> <?php endif; ?> –> If you comment the above snippet, it will remove the thumbnail or featured image only from the post. But still it will exist in the post search page. 2. Comment…

Read More Read More

461 total views, no views today