Press enter to see results or esc to cancel.

Abraham Garcia Abraham Garcia in Fun Stuff   Friday, June 21 2019

How to Remove a Full Directory on Linux

Remove Folders from Linux Server. Avoid FTP Operations to Complete.

Use these to remove folders from your server rather than using FTP and waiting for server to complete operation.  To remove a directory that contains other files or directories, use the following command. rm -r mydir If you don't want to

Continue reading
Abraham Garcia Abraham Garcia in PHP Scripts   Friday, June 14 2019

How to Add A Class to a Form Submit in CodeIgniter PHP

Want to add a class to the form_submit function in CodeIgniter. I found this and it has helped me modify my buttons on the fly.

Want to add a class to the form_submit function in CodeIgniter. I found this and it has helped me modify my buttons on the fly.  echo form_submit('loginSubmit', 'Login',"class='btn btn-danger'");    

Continue reading
Abraham Garcia Abraham Garcia in WordPress   Friday, June 7 2019

WordPress Facebook Tracking Code for Contact Form 7

Use This for Facebook Pixel Lead Event for your Contact Form 7 Plugins. Just Insert Code in the Footer of the Website and You are all set.

A little snippet for Contact Form 7 for firing a lead event for the Facebook Pixel. Use this whenever you want to track leads from your Facebook Pixel. Add this to the footer of the website.  <script> document.addEventListener(

Continue reading
Abraham Garcia Abraham Garcia in HTML/CSS Scripts   Thursday, May 30 2019

How to do Vertical Align Column in Bootstrap

Fastest method to align columns vertically on Boostrap 3. I spent hours finding a good solution for this and finally found it.

This is a Short CSS Snippet that will help you align columns vertically in the middle for whenever needed.  CSS .vertical-align { display: flex; flex-direction: row; } .vertical-align > [class^="col-"], .vertical-align >

Continue reading
Abraham Garcia Abraham Garcia in PHP Scripts   Thursday, May 23 2019

How to Remove index.php on URL in CodeIgniter

Remove the index.php in the URL for CodeIgniter. Simple and Fast Tutorial for all PHP Developers.

Short instructions on how to remove the CodeIgniter index.php with .htaccess 1. Create .htaccess File RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] 2. Update

Continue reading
Abraham Garcia Abraham Garcia in PHP Scripts   Friday, May 17 2019

How to Convert UNIX timestamp to Format Date String

Easy way to convert unix timestamp to nice date format in PHP.

Use this to convert unix timestamp to format php date <?php $timestamp=1333699439; echo gmdate("Y-m-dTH:i:sZ", $timestamp); ?>  

Continue reading
Abraham Garcia Abraham Garcia in PHP Scripts   Thursday, May 9 2019

Clean Phone PHP Remove Parentheses and Dashes

A Short Snippet to Clean Phone from Special Characters. Remove Parentheses and Dashes.

This is a short snippet on how to clean a phone number from Dashes and Paranteses. Use this to clean phones on the fly.  $ph_number = '(619) 584-5555'; $phone = preg_replace('/[^dxX]/', '', $ph_number);    

Continue reading
Abraham Garcia Abraham Garcia in WordPress   Sunday, May 5 2019

Contact Form 7 Select First Option Being a Select Options

The First Option to Print as Label in Contact Form 7 WordPress Plugin.

This is the snippet to get the first label in the contact form 7 select display a select option or first as label.  [select my_select first_as_label class:styled "Select Options" "Option 1" "Option 2" "Option 3" "Option 4"]

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Tuesday, January 1 2019

My Favorite jQuery Lightbox for Youtube and Vimeo Videos

Best jQuery Lightbox for Youtube and Vimeo Video Pop Ups.

This is my favorite jQuery Plugin for Youtube or Vimeo Lightbox. It is sosimple to use and has great documentation.  Installation <link href="dist/lity.css" rel="stylesheet"> <script src="vendor/jquery.js"></script>

Continue reading
Abraham Garcia Abraham Garcia in HTML/CSS Scripts   Wednesday, December 19 2018

Disable Manual Input in datepicker jQuery

Learn how to disable the manual entry on the jquery datepicker. Simple and Easy.

This short snippet will allow you to disable manual input for the jQuey Datepicker.  <input type="text" name="datepicker" id="datepicker" readonly="readonly" /> Just add a simple readonly and you should be good to go :)

Continue reading