Posts

How to add jQuery email validation in my site?

Image
I want to add jQuery email validation in my site which is good looking also simply copy and paste this code for add jQuery email validation for your site <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("jquery", "1.7.1"); </script> <script type="text/javascript">     $(document).ready(function(){         try {         var domains =['hotmail.co.uk','yahoo.co.uk','yahoo.com.tw','yahoo.com.au','yahoo.com.mx','gmail.com','hotmail.com','yahoo.com','aol.com','comcast.net','msn.com','seznam.cz','sbcglobal.net','live.com','bellsouth.net','hotmail.fr','verizon.net','mail.ru','btinternet.com','cox.net','yahoo.com.br','bigpond.com','att.net',

How to remove index.php from Codeigniter URL or .htaccess and codeigniter not working?

After  after visiting so many sites  article i solve this problem that why its not working with index.php or why sub page links are not working without index.php I think all article has same copy and paste code on their website that's why you are wondering here and there ... try this code i think this will definitely work for you if your site is uploaded on root of website than open you htaccess from you root and paste this code on you htaccess Options +FollowSymLinks All -Indexes Options All -Indexes DirectoryIndex index.php RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php/$0 [PT,L] if your site is inside in sub-folder of any site like www.site.com/yoursitefolder/ so you have to paste this code on your htaccess file of your codeigniter site Options +FollowSymLinks All -Indexes Options All -Indexes DirectoryIndex index.php RewriteEngine on RewriteBase /yoursitefolder Rewrit

How can i remove 24X7 customer service image in magento?

Follow the path which is define below You need to comment all code in app/design/frontend/Your theme/default/template/callouts/left_col.phtml file now refresh the cache and check its works pefectly :)

How to Show or Hide File Extensions in window 7 or window xp?

Image
How to Show or Hide File Extensions in window 7 or window xp? This is main problem that you can not see the extension of file in operating system on window wista and window 7 and you can not change the extension by rename the file. For window 7 open any folder press alt button a top navigation will show on top. Click on tools as image shows below 1. Click on folder option 2. Click on View Tab 3. Click Show or hide file extensions . 4. In the Folder Options box that appears, clear the checkbox next to Hide extensions for known file types , then click OK .

why Images are not Showing on Frontend as well as Backend on Godaddy Server in magento?

Images are not Showing on Frontend as well as Backend on Godaddy Server in magento recent i transfer my project one to another server every thing is working fine on my local server but when i upload this project on another server images are not showing on frontend and  backend of products. I surfed many magento help sites with many of the suggestions and tried everything but that that was not working for me and finally after a lot of hectic trials i got the solution for it. Just Rename your .htaccess file inside the /media directory to .htaccess-old. This will absolutely work for your site. if its works for you don't forget to say thanks to this blog :)

How to add custom design twitter feed in php website?

If you are looking for twitter feed which you can customized your self then Simple copy and paste this code in your page for twitter feed and change the twitter username <?php     $username = "xyz"; // change the username     $limit = 5;     $feed = 'https://api.twitter.com/1/statuses/user_timeline.rss?screen_name='.$username.'&count='.$limit;     $tweets = file_get_contents($feed);   $tweets = str_replace("&", "&", $tweets); $tweets = str_replace("<", "<", $tweets); $tweets = str_replace(">", ">", $tweets); $tweet = explode("<item>", $tweets);     $tcount = count($tweet) - 1; for ($i = 1; $i <= $tcount; $i++) {     $endtweet = explode("</item>", $tweet[$i]);     $title = explode("<title>", $endtweet[0]);     $content = explode("</title>", $title[1]); $content[0] = str_replac

How to add a text counter in textarea or Setting a maxlength on a textarea?

if you want to add text counter your textarea and set the Setting a maxlength on a textarea. so simply add this code in file and run the file in your browser <form name="textcount" id="textcount"> <textarea cols="60"  rows="12" class="input_compose_textarea" id="description" name="description" onkeypress="textCounter(this,this.form.counter,500);" onblur="textCounter(this,this.form.counter,500);"></textarea> <br/> Max length - <input    type="text" readonly="readonly"    name="counter"    maxlength="3"    size="3"    value="500"    onblur="textCounter(this.form.counter,this,500);"> char remaining. </form> <script type="application/javascript"> function textCounter( field, countfield, maxlimit ) { if ( field.value.length > maxlimit ) { field.value = field.va