Complete Solution for every problem | Mobile Technology | Web Technology | Software | Mobile Apps | Scripts | Tricks | Latest Technology | Wordpress Plugins


Line Post
Showing posts with label webdevelopment. Show all posts
Showing posts with label webdevelopment. Show all posts

13 December, 2014

WebRTC, a free browser-based technology, next step in digital communication

 WebRTC, a free browser-based technology, looks set to change the way we communicate and collaborate, up-ending telecoms firms, online chat services like Skype and WhatsApp and remote conferencing on WebEx.

WebRTC


What is WebRTC ?


WebRTC is a free, open project that enables web browsers with Real-Time Communications (RTC) capabilities via simple JavaScript APIs. The WebRTC components have been optimized to best serve this purpose. 

They build for To enable rich, high quality, RTC applications to be developed in the browser via simple JavaScript APIs and HTML5.

The WebRTC initiative is a project supported by Google, Mozilla and Opera. This page is maintained by the Google Chrome team.


WebRTC Diagram


The WebRTC standard solves a very common problem: incompatibilities for real-time communications. 

Today, to place audio or video calls from a computer, users need to download proprietary software and create accounts. 

WebRTC leverages the recent trend in which the web browser IS the “application”, and facilitates browser-to-browser communication, with no software downloads or registration needed. The browsers themselves include all the capabilities needed to support the standard. 

WebRTC standardizes communications between browsers, enabling audio and video communications, and data bridges to support text chat or file-sharing. 


They are building real dream to realistic communications standards over the web. The new web communication on the way to provide best and easy solution





Read more ...

28 April, 2014

WooCommerce Autoresponder

WooCommerce Autoresponder -
WordPress plugin for subscribe you customer to your autoresponder. This plugin also displays a newsletter signup checkbox on checkout for WooCommerce integrated with autoresponder.

Key features

  • Full WooCommerce integration
  • 6 powerful auoresponder supported
  • Product level autoresponder configuration
  • Add customers to product wise individual autoresponder list
  • You can add customers to a list based on product that have purchased
  • Use multiple Autoresponder with single plugin
  • Displays a list Opt-In on Checkout
  • Easy to Setup
  • No coding reqiured
  • Captures Email, First and Last Name
  • Can set Enable/Disable Opt-In Field default value
  • Add customers automatically when order created
  • Add customers automatically when order completed
  • Add customers to multiple autoresponder
Change Log


  • Version 1.1
            Added product level autoresponder configuration
            Added feature for add customer to a list based on product purchased
            Bugfix related to Opt-in field


  • Version 1.0

            initial release

Developed By : WP Striker - Ultimate Wordpress Plugin Developer


Read more ...

07 March, 2014

N-Level CSS Menu With PHP And MYSQL

A website should have a good and proper navigation from user point of view to attract more visitors. Creating css navigation using php and mysql is always a headache for php newbies.
In this tutorial  I have told that how to manage a horizontal css navigation menu from a single mysql table and a small piece of PHP code. Instead of wasting your time I come to our main tutorial. Go through the following points and make your own navigation menu. Here we make a totally dynamic menu in php which retrieved data from mysql database.



Step: 1 Database "abc":


First of all we make a database and include one table for menu. so we make "abc" database and 'menu' table in database. and also include three field in menu table. U can see in the below picture.



Step: 2 Table Structure:

Now Insert field name like as a "id" (default as primary key), "m_name", "m_link" , "parent_id".  we can see this table structure in below picture.


Step:3 Database table "menu":

After than we insert some data in this table which we want to display in menu. It also see in below picture.



As you are seeing, the table has only four fields. First column is id of each menu that is primary key and last column is the id of parent of each menu. You’ll understand yourself by seeing the structure.

Step 4 Style Sheet for menu (style.css):

Apply the following css to your menu. and save it name as style.css. and include in head section in index page.

@charset "utf-8";
/* CSS Document */
*{margin:0; padding:0; }
body {     background: none repeat scroll 0 0 conten;
    float: left;
    margin: 0px auto;
    padding: 0px;
    text-align: center;     }
#cssmenu {
  height: 80px;
  padding:0px 100px;  text-align:center;
 border-radius: 5px 5px 0 0;
 -moz-border-radius: 5px 5px 0 0;
 -webkit-border-radius: 5px 5px 0 0;
 background: #5FACEB;
 margin:80px 350px;
}
/* =======  Menu  ====*/
#navigation { float: right; z-index:9999;}
.js .selectnav { display: none; }
.menu ul { margin: 0; padding: 0; list-style: none; }
.menu ul li { position: relative;}
.menu ul ul { position: absolute; display: none; top: 100%; left: 0; z-index: 100; width: 175px; }
.menu > ul li { float: left; cursor: pointer;}
.menu ul li:hover > ul { display: block; }
.menu ul a {display: block;position: relative;}
.menu ul ul li a.sf-with-ul:after{
-moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: #FFFFFF;
    -moz-border-top-colors: none;
    border-color: #FFFFFF #FFFFFF #FFFFFF #afafaf;
    border-image: none;
    border-right: 5px solid rgba(0, 0, 0, 0);
    border-style: solid;
    border-width: 5px;
    content: "";
    height: 0;
    margin-top: -5px;
    position: absolute;
    right: .5em;
    top: 50%;
    width: 0;
    margin-right: -3px; }
.menu ul ul li a:hover.sf-with-ul:after{
border-color: #ccc #ccc #ccc #2ecc71;
-moz-border-right-colors:#FBFBFB}
.menu ul ul ul {top: 0;left: 100%;}
.menu ul a { text-decoration: none; }
.menu ul > li > a {
color: #fff;
font-weight: 400;
font-size: 14px;
line-height: 18px;
padding: 35px 18px 31px 18px;
overflow: hidden;
border-bottom: 2px solid transparent;
transition: all .25s ease-in-out;
-moz-transition: all .25s ease-in-out;
-webkit-transition: all .25s ease-in-out;}

#current,
.menu ul li a:hover,
.menu ul > li:hover > a { 
border-bottom: 2px solid #2ecc71;
background-color: #fbfbfb;
color:#2ecc71;}
.menu ul li a:hover .sf-sub-indicator{
color:#2ecc71;}
#current:after {
background: #2ecc71;
bottom: -2.5px;
content: '';
left: 50%;
display: block;
height: 5px;
margin: 0;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
position: absolute;
width: 5px;}
.ie8 #current:after { display: none; }
.menu ul li a {
-webkit-transition: border 150ms ease-in-out, background-color 150ms ease-in-out;
-moz-transition: border 150ms ease-in-out, background-color 150ms ease-in-out;
-o-transition: border 150ms ease-in-out, background-color 150ms ease-in-out;
-ms-transition: border 150ms ease-in-out, background-color 150ms ease-in-out;
transition: border 150ms ease-in-out, background-color 150ms ease-in-out;}

/* Drop-Down */
.menu ul ul {
background-color: #fff;
z-index: 999;
border-radius: 0 0 3px 3px;
border: 1px solid #fefefe;
border-top: 2px solid #2ecc71;
margin: -2px 0 0 0;}
.menu > ul ul li:hover > a {
border-bottom: 0;
background:#000;}
.menu ul ul li {
margin: 0;
padding: 0;
width: 100%;}
.menu ul ul li a {
color: #555;
font-size: 13px;
line-height: 18px;
padding: 10px 16px !important;
border: 0; }
.menu ul ul li { border-top: 1px solid #e8e8e8; }
.menu ul ul li:first-child { border: 0; }
.menu ul ul li a:hover {
color:#2ecc71;
background-color: #000;
border: 0; }
.menu ul ul li a {
-webkit-transition: background-color 50ms ease-in-out;
-moz-transition: background-color 50ms ease-in-out;
-o-transition: background-color 50ms ease-in-out;
-ms-transition: background-color 50ms ease-in-out;
transition: background-color 50ms ease-in-out; }
.menu ul ul ul {
border: 1px solid #e0e0e0;
border-radius: 0 3px 3px 3px;
margin: -1px 0 0 0; }
.sf-sub-indicator {
color: #c6c6c6;
margin: 0 0 0 5px;
width: 11px;
display: inline-block;
font-size: 12px;
line-height: 0;}
.menu ul ul .sf-sub-indicator .fa-angle-down { display: none; }
#jPanelMenu-menu #current { border-bottom: 1px solid #eee; }
#jPanelMenu-menu #current:after,
#jPanelMenu-menu .sf-sub-indicator { display: none; }
#jPanelMenu-menu li a {
display:block;
padding: 12px 20px !important;
background-color: #f6f6f6;
border-bottom: 1px solid #f0f0f0;
color: #888;
font-weight: 500;
-webkit-transition: all 0.1s ease-in-out;
-moz-transition: all 0.1s ease-in-out;
-o-transition: all 0.1s ease-in-out;
-ms-transition: all 0.1s ease-in-out;
transition: all 0.1s ease-in-out;
font-weight: 500;
outline: none; }
#jPanelMenu-menu li a:hover { background-color: #f8f8f8; }
#jPanelMenu-menu li li a {
background-color: #fff;

padding-left: 30px !important;}

Step 5 index.php:

This is the main PHP file that will fetch the menus from database and show them in your navigation menu using while loop. The script is written for 3 Level CSS menu. You can extend it for nth level by running the loop n times as it is.

<?php
//database connection
$dbname = 'abc';
$link = mysql_connect("localhost","root","") or die("Couldn't make connection.");
$db = mysql_select_db($dbname, $link) or die("Couldn't select database");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Dynamic menu</title>
<link rel="stylesheet" type="text/css" href="styleseet/style.css"  /> 
</head>

<body>
<div id="cssmenu">
<nav id="navigation" class="menu">
<ul id="responsive">
<?php
function query($parent_id) { //function to run a query
   $query = mysql_query ( "SELECT * FROM menu WHERE parent_id=$parent_id" );
   return $query;
}
function has_child($query) { //This function checks if the menus has childs or not
    $rows = mysql_num_rows ( $query );
   if ($rows > 0) {
        return true;
   } else {
       return false;
   }
}
function fetch_menu($query) {
   while ( $result = mysql_fetch_array ( $query ) ) {
       $m_id = $result ['id'];
       $m_name = $result ['m_name'];
      $m_link = $result ['m_link'];
       echo "<li><a href='{$m_link}'><span>{$m_name}</span></a>";
       if (has_child ( query ( $m_id ) )) {
           echo "<ul>";
           fetch_menu ( query ( $m_id ) );
           echo "</ul>";
       }
       echo "</li>";
   }
}
fetch_menu (query(0)); //call this function with 0 parent id
?>
</ul>
</nav>
</div>
</body>
</html>

Ok so finally we make a totally dynamic menu with css. Just by changing the database connection properties and change your menu names and their links in database table. I hope you enjoyed the tutorial.
Keep Visiting :) 
Read more ...

06 February, 2014

PHP scripts for export data into csv file

Here i will explain how to export data into csv file in php

Follow the step which is given below

STEP - I 

     FILE : exortcontact.php

           <?PHP
                 include_once('ExportToExcel.class.php');
                 include_once("../config/connection.php");
                 $exp=new ExportToExcel();
                 $qry="select * from abc";
                 $exp->exportWithQuery($qry,"ExportData.xls",$con);
           ?>
                 
 NOTE : abc is data table which you convert into csv

STEP - II

   FILE : 
          
           <?php

               class ExportToExcel
             {  
                  function exportWithPage($php_page,$excel_file_name)  
                     {  
                           $this->setHeader($excel_file_name);   require_once "$php_page";   
                      }    

                function setHeader($excel_file_name)  
                   {   
                        header("Content-type: application/octet-stream");  
                        header("Content-Disposition: attachment;filename=$excel_file_name");  
                        header("Pragma: no-cache");  
                        header("Expires: 0");    
                    }    

                function exportWithQuery($qry,$excel_file_name,$conn)  
                  {  
                       $tmprst=mysql_query($qry,$conn);  
                        $header="<center><table border=1px><th>ID</th><th>NAME</th><th>EMAIL</th>                                     <th>PHONE</th><th>CITY</th><th>STATE</th><th>KNOW FROM</th>                                             <th>NEWSPAPER NAME</th><th>DATE</th>";  
                        $num_field=mysql_num_fields($tmprst);  
                        $body="";  
                        while($row=mysql_fetch_array($tmprst,MYSQL_BOTH))  
                        {  
                            $body.="<tr>";   
                            for($i=0;$i<$num_field;$i++)   
                            {    
                               $body.="<td>".$row[$i]."</td>";  
                            }   
                            $body.="</tr>";   
                         }  
                        $this->setHeader($excel_file_name);  
                        echo $header.$body."</table>";  
                   }
         } 
         ?>

NOTE : $header use for the formatting your data which you want to convert 

Keep visiting and enjoy coding 



Read more ...

28 January, 2014

How to build Windows 8 app from scratch ??


Hello,
Here i will explain how to create windows app without doing any programming.
Now a days if you want to generate mobile application then you need lots of programming skill to develop the application.But here you need to worry about programming


Just follow the below steps:

1. Open website Windows App store 

2. Now click on "Start Building" Button
3. It will display many template choose one of them OR Select create an empty app to customization  

  

4. Here i will show you to create if you selected empty app
  •      As displayed in below image you can give the title, description and language which you like


5. Now click next button and configure app as per your requirement
  • You can add menu and data source


  • Select design and style which is provided by Windows app studio also you can add html code


6. Click on generate button after configuring your app.
  • You can see also your app preview in simulator which is provided by windows app studio

  • final application displayed below (which you can see in your dashboard)

7. Here is the final step to publish your first windows application on store
  • Install this in your windows device via reading QR code which is given after generating application 
  • You can also download source code 


Thanks and keep vising ...... 

Read more ...

Comments

Designed By