Saturday, 14 October 2017

By Definition

A fuzzy search is a procedure that finds Web pages that are probably going to be applicable to a search argument even when the contest does not precisely comparable to the coveted data. A fuzzy search is done by methods for a fuzzy program, which display a list of results in view of likely significance even though search argument words and spellings may not exactly match. Correct and very applicable matches show up close to the highest priority of the list.

What is fuzzy string matching in software engineering?

In software engineering, approximate string matching (regularly conversationally alluded to as fuzzy string seeking) is the strategy of discovering strings that match a pattern (as opposed to precisely).

What is meant by fuzzy logic?

Fuzzy logic is a way to deal with computing based on "degrees of truth" instead of the standard thing "True or false" (1 or 0) Boolean logic on which the present day PC is based. The possibility of fuzzy logic was first advanced by Dr. Lotfi Zadeh of the University of California at Berkeley in the 1960s.

Example of how to use the fuzzy search plugin

See the Pen List.js - Fuzzy search by Jonny Strömberg (@javve) on CodePen.



Audio Player – Responsive & Touch-Friendly
jQuery Audio Player Plugin with CSS-only UI, I found this plugin useful is responsive and touch-friendly developed with JQUERY and CSS-only UI by http://tympanus.net/codrops/?p=11380 which I love so much and also to share with u guys, I have used this on a client site which works well as expected, is lightweight and customizable and free as you think it would be.

So, customizing the script to suit your need required little knowledge of css and jquery, of course, don’t get twisted.


Check out the demo for more.
On this tutorial, we are going to detect mobile screen using CSS.

To create a fluid layout for a site and you might want to hide the contents of a div or the entire div itself, on mobile view but surely not desktop nor tablet, you have to set the display to 'none' for the mobile layout, You will need two things. 

The primary is @media display to spark off the specific code at a certain screen size, used for responsive design. 

The second one is using the visibility: hidden; attribute. as soon as the browser/screen reaches 600 pixels then #div_container becomes hidden.

@media screen and (max-width: 600px) {
  #div_container {
    visibility: hidden;
    display: none;
  }
}

On the off chance that you are utilizing another CSS for Mobile View, simply  just include the visibility: hidden; to #div_container

What expectation this causes you?

Friday, 12 May 2017


INTRODUCTING THEWALLCLONE SOCIAL SCRIPT VERSION 3.0

THE SOCIALNETWORK SCRIPT


MOBILE FRIENDLY DESIGN


ATTRACTIVE LOGIN PAGE DESIGN

Login page was design to suit you your style, including remember me system


ATTRACTIVE HOME PAGE DESIGN


User home page is a protected area, is a three column layout design, first column contains user picture, total number of post, number of followers and people your follower alongside with suggested pages etc.

ACTIVITIES NOTIFICATION SYSTEM


This activities system and design was inspired my facebook and 9lessons to bring you the true heart of social network system, get notification when you are spotted such as comments, likes, follows etc.

MESSAGES NOTIFICATION SYSTEM


Get notify when you a new (unread) message(s). This system and design was inspired my facebook and 9lessons to bring you the best out of social media.

AUTO COMPLETE SEARCH


COVER IMAGE AND PROFILE DESIGN


Simultaneously change and upload your cover and profile pictures, all happen instantly.

UPLOAD IMAGE WITH DESCRIPTION


You have the change to share your latest pictures with your followers and connection.

LIKE-DISLIKE AND COMMENT SYSTEM


LOAD MORE POST


We have design this application to save loading time and MB, so you can always load what you missed

READ URL CONTENT


Instant read any url content of any website address, integrated with embed.ly

VIDEO PLAYBACK



Share your favourites videos with your followers and those you care about, by just posting the url of that video link, you get and instant playback time.

SHARE LOCATION


If you are interested in telling your followers where you are and you have been, we design this to share your location with your connection, integrated with google map API.

PASSWORD RESET SYSTEM


Reset your password if with the email address you used during registration if you have forgotten your password, a reset link will be sent to your email to create new password.

USER SETTING


You can update your profile details any time any moment.

MESSAGE SYSTEM


Create conversation, send message, view last conversation

SMS ALERT SYSTEM INTEGRATD

Get notify through your mobile phone number when you have a new follower, new messages, new comment and new likes.

Friday, 14 April 2017

Hey Welcome back to continuation of Nairaland Forum Design, Here is the Nairaland.com like Forum Database Structure, this is a step-by-step tutorial to design a complete Nairaland forum system.
I have 10 tables here for now but as we grow in our development sure we will have more tables. The below ERD has explained the relation of this tables.                                         Demo

Source Code

Users Tables

--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
  `uid` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(20) NOT NULL,
  `email` varchar(70) NOT NULL,
  `password` varchar(100) NOT NULL,
  `status` int(5) NOT NULL,
  `avater` varchar(100) NOT NULL,
  `validcode` varchar(100) NOT NULL,
  `passreset` varchar(100) NOT NULL,
  `activeSince` int(11) NOT NULL,
  PRIMARY KEY (`uid`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;

PHP Code for email confirmation and Complete Registration

Change where you see  http://www.thewallclone.com to your own domain address 

HTML Form
 You call this whatever you like

<form class="form-inline" action="do_confirm_email.php?" method="get"> 
      <div class="form-group"> <label for="exampleInputEmail2">Email</label> 
          <input type="email" name="email" SIZE="50" required class="form-control" id="exampleInputEmail2" placeholder="jane.doe@example.com"> </div>
           <button type="submit" name="invite" class="btn btn-primary">Send invitation</button> 
            <br/><small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else if you don't want to.</small>
      </form>


Let call this file do_comfirm_email.php 

<?php
/* --------------------------------------------------------------------------------------- */
  if(isset($_GET['invite'])){
  $email = $_GET['email']; //Storing email in $email variable.
  $code=md5(uniqid(true)); // random alphernumeric character store in $code variable for verification

/*   checking if user already exist     */
$match = $db->query("SELECT * FROM users WHERE email ='$email' AND status='1' AND username!='0' "); 
@$mysql_num_rows = mysqli_num_rows($match);

/*   checking if requested to join     */
$requested = $db->query("SELECT * FROM users WHERE email ='$email' AND status='0' AND username='' "); 
@$num_rows = mysqli_num_rows($requested);
$data=mysqli_fetch_array($requested);

/* --------------------------------------------------------------------------------------- */

              if($mysql_num_rows)// if already requested, send new link!'
              { 
               echo ' <div class="section-title">
                  <h1 style="color:green"><strong>Already a member!</strong></h1>
                  <div class="divider"></div>
                </div>';

              } else
/* --------------------------------------------------------------------------------------- */
// if not registered run the below script,
if (!$num_rows) 
{

//echo "$email $code";

  $db->query("INSERT INTO users (email, validcode) VALUES ('$email', '$code')");  // insert into our table users with unique random code


  /* Send a registration link to entered email address */
  $to = $email;
  $subject = "Confirm registration";
  $header = "Nairaland Demo";
  $body = "Thank you for registering with us. You are now part of a great community 
  For active your account, visit the link below to complete your registration: 
  http://www.thewallclone.com/register?email=$email&validcode=$code
    (You must complete your registration within a few days)";

  $sent=mail($to,$subject,$body,$header);

/* if email is sent display success message */
if ($sent) {

  echo ' <div class="section-title">
    <h1 style="color:green"><strong>Please Check Your E-Mail!</strong></h1>
    <p>We have just sent you an e-mail.<p>Please <b>check your inbox</b> 
    to find the e-mail and <b>complete your registration</b>.
    <p>Please <b>check your spam folder</b> if you cannot find it in your inbox. <p>Welcome to Nairaland!<p>
    <div class="divider"></div>
  </div>';
      } /* end if statement for sent */

}
  /* --------------------------UPDATE REGISTRATION LINK--------------------------------------------- */
  if ($num_rows) {
   $dbCode=$data['validcode'];
   $dbEmail=$data['email'];
  // echo "$email $dbCode";
   /* Send a registration link to entered email address */
  $to = $email;
  $subject = "Confirm registration";
  $header = "Nairaland Demo";
  $body = "Thank you for registering with us. You are now part of a great community 
  For active your account, visit the link below to complete your registration: 
  http://www.thewallclone.com/register?email=$dbEmail&validcode=$dbCode
    (You must complete your registration within a few days)";

  $sent=mail($to,$subject,$body,$header);

/* if email is sent display success message */
if ($sent) {

  echo '<div class="section-title">
    <h1 style="color:green"><strong>Link resent!</strong></h1>
    
  </div>';
      } /* end if statement for sent */
/* --------------------------------------------------------------------------------------- */
}

} /* end if get statement */
?>

And call this register.php 

after email as been confirmed the user will be redirected to this page to complete registration

<?php

 if(isset($_GET['validcode']) && ($_GET['email']) )
     {

     $code = $_GET['validcode'];
     $email = $_GET['email'];

     $match = $db->query("SELECT * FROM users WHERE email ='$email' AND validcode='$code' AND status='0' "); 
    $mysql_num_rows = mysqli_num_rows($match);
    $row=mysqli_fetch_array($match);
{
$uid=$row['uid'];
$validcode=$row['validcode'];
$email=$row['email'];


    if($mysql_num_rows)
{ 

 echo '<div class = "panel panel-default">   
   <div class = "panel-body">
      Complete Registration
   </div>
      <div class = "panel-heading">
      <form class="form-inline" action="success.php?email='.$email.'&token='.$validcode.'" method="post"> 
        <div class="form-group"> <label for="exampleInputName2">Name</label> 
        <input type="hidden" name="email" value="'.$email.'">
        <input type="text" name="username" class="form-control" id="exampleInputName2" placeholder="Jane Doe"> </div>

        <div class="form-group"> <label for="exampleInputEmail2">Password</label> 
          <input type="password" name="password" required class="form-control" id="exampleInputEmail2" placeholder=""> </div>
           <button type="submit" name="join" class="btn btn-primary">Join</button> 
      </form>
   </div>
</div>';
}

else
{
   echo ' <div class="section-title">
    <h1>An error occured!</h1>
    <div class="divider"></div>
  </div>
';
}
}
}

?>



Profile Table


--
-- Table structure for table `profile`
--
CREATE TABLE IF NOT EXISTS `profile` (
  `pid` int(11) NOT NULL AUTO_INCREMENT,
  `uid_fk` int(11) NOT NULL,
  `day` varchar(11) NOT NULL,
  `month` varchar(11) NOT NULL,
  `year` varchar(11) NOT NULL,
  `gender` varchar(10) NOT NULL,
  `personal_text` varchar(100) NOT NULL,
  `signature` varchar(20) NOT NULL,
  `web_title` varchar(50) NOT NULL,
  `web_url` varchar(30) NOT NULL,
  `location` varchar(30) NOT NULL,
  `yim` varchar(30) NOT NULL,
  `twitter` varchar(30) NOT NULL,
  PRIMARY KEY (`pid`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;

Category Table


-- Table structure for table `category`
--

CREATE TABLE IF NOT EXISTS `category` (
  `cid` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL,
  `url` varchar(50) NOT NULL,
  `des` varchar(20) NOT NULL,
  PRIMARY KEY (`cid`)
) 

Sub_category Table


--
-- Table structure for table `sub_cat`
--

CREATE TABLE IF NOT EXISTS `sub_cat` (
  `sid` int(11) NOT NULL AUTO_INCREMENT,
  `sname` varchar(50) NOT NULL,
  `surl` varchar(50) NOT NULL,
  `cid_fk` int(11) NOT NULL,
  PRIMARY KEY (`sid`)
)

Followed Board


--
-- Table structure for table `followed_boards`
--

CREATE TABLE IF NOT EXISTS `followed_boards` (
  `fid` int(11) NOT NULL AUTO_INCREMENT,
  `board_id_fk` int(11) NOT NULL,
  `user_id_fk` int(11) NOT NULL,
  `bdate` varchar(30) NOT NULL,
  PRIMARY KEY (`fid`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;

Topic Table

Topic Demo
--
-- Table structure for table `topics`
--
CREATE TABLE IF NOT EXISTS `topics` (
  `topic_id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(100) NOT NULL,
  `link` varchar(100) NOT NULL,
  `content_text` text NOT NULL,
  `user_id_fk` int(11) NOT NULL,
  `board_id_fk` int(11) NOT NULL,
  `created` varchar(10) NOT NULL,
  PRIMARY KEY (`topic_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=30 ;

Topic Comment

CREATE TABLE IF NOT EXISTS `topic_comments` (
  `comment_id` int(11) NOT NULL AUTO_INCREMENT,
  `comment` text NOT NULL,
  `quote_id` int(11) NOT NULL,
  `topic_id` int(11) NOT NULL,
  `board_id_fk` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `creator` int(11) NOT NULL,
  `comment_id_fk` int(11) NOT NULL,
  `commentedOn` varchar(20) NOT NULL,
  PRIMARY KEY (`comment_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=86 ;

Followed Topic Table

--
-- Table structure for table `followed_topics`
--

CREATE TABLE IF NOT EXISTS `followed_topics` (
  `fid` int(11) NOT NULL AUTO_INCREMENT,
  `topic_id_fk` int(11) NOT NULL,
  `user_id_fk` int(11) NOT NULL,
  `fdate` varchar(30) NOT NULL,
  PRIMARY KEY (`fid`)
) 

Page View Table


--
-- Table structure for table `pageviews`
--

CREATE TABLE IF NOT EXISTS `pageviews` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `topic_id` int(11) NOT NULL,
  `views` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=28 ;

PHP Code for Total View

$page=$pid; // for example

$pageviews = $db->query("SELECT * FROM pageviews WHERE topic_id='$page'");
$total_pageviews = mysqli_num_rows($pageviews);
$row=mysqli_fetch_array($pageviews);

$views=$row['views'];
$total=$views+1;
  //echo "$total";

if ($total_pageviews) {
  # code...
$db->query("UPDATE pageviews SET views='".$total."' WHERE topic_id='$page' ");
}
else
{
$db->query("INSERT INTO pageviews (topic_id,views) values('$page','1')");
}

echo number_format($total); //display number of page views


Total View

--
-- Table structure for table `total_visitors`
--

CREATE TABLE IF NOT EXISTS `total_visitors` (
  `id` int(11) NOT NULL,
  `session` varchar(100) NOT NULL,
  `ip` varchar(50) NOT NULL,
  `status` int(11) NOT NULL,
  `time` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

That is all for now stay back enjoy and subscribe as i bring you more tutorials at codexpress creative

Tuesday, 14 March 2017

Welcome back guys, here is custom made login template for your web app, on this tutorial am going to show you guys how to design login page, our output is simply going to look like this.


So, let start making our login page, first let create an empty file, name it login.html

Secondly add below code to our login.html file we just created earlier


<!DOCTYPE html>
<html>
<head>
 <title>Login Page</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>

<div class="container">
<div class="logo">
 <img src="img/logo1.png">
</div>
 <div class="form">
  <form method="post" action="" autocomplete="">
   <p><label name="username">Username:</label>
   <input type="text" required="" name="username">
   </p>

   <p><label name="password">Password:</label>
   <input type="password" required="" name="username">
   </p>
   <p><input type="submit" value="Sign In" name="username">
   </p>
  </form>
 </div>
</div>

</body>
</html>

So, i guess is not that hard for you to ride along...
Thirdly let create all our css classes, and tag identifiers open another empty page and save it as style.css, copy below css code to it and save.

Our container class hold the content of our whole login code and that is where we defined our width: 500px; and margin-top: 200px.

Our background image could be download from  here

using css tag identifier we called up our body and set some property and attribute to make our background

 body
  {
   background-image: url(../img/bg1.jpg);
   background-size: 1400px;
  }

Then, the login button was tweaked with css to gain that nice attractive looking, below is the css code for login button, sure you can tweak it around.

input[type=submit]
  {
   width: 100px;
   border-radius:10px;
   font-size: 14px;
   font-family:cursive;
   padding-left: 10px;
   padding-top: 5px;
   padding-right: 10px;
   padding-bottom: 5px;
   background-color: #007497;
   color: #fff;
   font-weight: bold;
   cursor: pointer;
  }
  input[type=submit]:hover
  {
   
   cursor: pointer;
   background-color: #015d79;
  }

Click demo to see the final out and download for your next web app... see you yeah

Monday, 27 February 2017

School days are pretty awesome, run back kicking and hailing all the these we could do, Physics and Chemistry class were taught for me but i made it all through, stop watch and countdown were used those time to determined how long reaction can take place, so far so good.
Surely get through that using javascript believe me working around js is really fun and great, every programming language has it's weak point somewhere, am going to cut it pieces providing solution, having good time with js, I bet you won't forget this day you make up your mind to try javascript, speeding that one minute is a worthwhile. if you're working on a timing project this will give you a workout. pretty sure about that. we're just going to great function in js and parse it around to get what you desire, easy right?

Download ScriptDemo

<script>
     $(document).ready(function(){

   var c = 60*60*60;
         var t;
            timedCount();
            function timedCount() {
             var hours = parseInt( c / 3600 ) % 24;
             var minutes = parseInt( c / 60 ) % 60;
             var seconds = c % 60;
             var result = (hours < 10 ? "0" + hours : hours) + ":" + (minutes < 10 ? "0" + minutes : minutes) + ":" + (seconds  < 10 ? "0" + seconds : seconds);
             $('#timer').html(result);
                if(c == 0 ){ c = 60*60*60; }
                c = c - 1;
                t = setTimeout(function(){ timedCount() }, 1000);
            }
     });
    </script>

c = 60*60*60; the very first 60secs count for hours and second 60 sec count for minuuteand third count for secs
parse it against 24 hours, parse minut against 60 seconds. this is the workthough.

Call up $('#timer').html(result); to populate the counting figure, a function was created timedCount()

Here is the demo just in case, u wanna work it around to suit your need or download the code below.