• Skip to content
  • Skip to primary sidebar

WebOmnizz

Header Right

Free Stuff

Implementing Swift Mailer with Codeigniter

February 4, 2018 by Jogesh Sharma Leave a Comment

As we know that Composer is a tool for dependency management and we are going to use it to implement Swift Mailer. According to the Codeigniter Documentation, We can use Composer by settings $config['composer_autoload']; in your application/config/config.php. Now use terminal and locate your projects application directory by simple CD (Change Directory) command. Now make sure you have installed Composer, You can check the installation by typing the following command composer --v and if Composer installed into your machine it will tell you about the current version of the Composer.

[Read more…] about Implementing Swift Mailer with Codeigniter

Filed Under: Free Stuff

How to access another Database in WordPress

February 13, 2014 by Jogesh Sharma 2 Comments

wpdb is the class that helps you to manipulate the database in WordPress. But you can not access it directly, you have to use the global object $wpdb to manipulate the database. The Database configuration is stored in wp-config.php during installation process. Highlighted like this

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');
 
/** MySQL database username */
define('DB_USER', 'username_here');
 
/** MySQL database password */
define('DB_PASSWORD', 'password_here');
 
/** MySQL hostname */
define('DB_HOST', 'localhost');
 
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
 
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

 

[Read more…] about How to access another Database in WordPress

Filed Under: Free Stuff Tagged With: mysql

Display custom message on wordpress admin

September 26, 2013 by Jogesh Sharma Leave a Comment

In some point of view when we developed a custom WordPress plugin or theme, we have to notify users for any urgent update, error or any custom message on WordPress admin section. All this done by admin_notices hook function.

Admin Notices
[Read more…] about Display custom message on wordpress admin

Filed Under: Free Stuff Tagged With: wordpress plugin

SetTimeout random interval in javascript

September 17, 2013 by Jogesh Sharma Leave a Comment

Just few days back i got a request for my client to making a script that Increment Number with random interval. Then i thought to make a small plugin that generates random interval. How it works, is start number increments with a default value (1000) and set a cookie to user’s browser and every time this script update the cookies value so that when the user refresh there browser he/she get the same last incremented value. You can control the setTimeout random interval to change the value in the following line var rand = Math.round(Math.random() * (2000 - 200)) + 200;
[Read more…] about SetTimeout random interval in javascript

Filed Under: Free Stuff Tagged With: javascript

Random hex color Generator JavaScript

September 17, 2013 by Jogesh Sharma 1 Comment

Short and effective script to generate random hex color. We start with random number to multiply with white color (Hex Code is 0xFFFFFF ), now we have to convert the random generated values into the hexadecimal value to display the color. To convert integer values into hexadecimal i have used .toString( radix ) where:

  • 2 – The number will show as a binary value
  • 8 – The number will show as an octal value
  • 16 – The number will show as an hexadecimal value

[Read more…] about Random hex color Generator JavaScript

Filed Under: Free Stuff Tagged With: javascript

How to make Responsive Google Map with Google Map API

August 15, 2013 by Jogesh Sharma 14 Comments

If you want to make Responsive Google Map then you have two ways, one with CSS and the second? Yes JavaScript. After doing a little struggle and research, i decided to distribute this research to Web Designers and Developer to make the things easy. So let’s move on the first basic steps with CSS.


[Read more…] about How to make Responsive Google Map with Google Map API

Filed Under: Free Stuff Tagged With: google map

Next Page »

Primary Sidebar

Recent Posts

  • Custom Image Upload in WordPress
  • Top Python Libraries for Data Science in 2017
  • Laravel 5.5 Pagination for Bootstrap 4
  • Implementing Swift Mailer with Codeigniter
  • Building Simple StopWatch with React-Native

WebOmnizz on Google+

Copyright © 2018