Read more »
Add facebook chat to your site
Posted by
Dan's
|
Hi friends, today I am going to tell you a trick using which you can chat with your visitors on your blog with your facebook ID. Here is a shrt script that should be added to your blog or site.
Read more »
Send fake (anonymous) mail to anyone
Posted by
Dan's
|
Hi friends, today I will tell you how to send e-mail to your friend with anyone's email or even from his mail. This process is called email spoofing. This can be used to send anonymous emails. In my previous post, I have told you
Free Samples from RewardMe worth Rs 1100
Posted by
Dan's
|
Hi friends, Today I am going to tell you a freebie trick using which you can avail free samples up to Rs 100 by P&G. I have used this trick twice to get free samples from reward me. Samples will be delivered within 6-8 weeks. So register as soon as possible to get free samples.
Earn money by liking Facebook Pages
Posted by
Dan's
|
Simplest method to Backtrack Emails (Email header analysis)
Posted by
Dan's
|
Hello friends, today I am going to tell you how to backtrack emails received. Emails information are stored in headers of email, reading which one can easily tack email messages, along with sender's location and IP address.
How to Password protect your external hard disk drive
Posted by
Dan's
|
Several external hard drives integrate hardware password-protected encryption. If yours is an open drive, you can use a software encryption program to prevent unauthorized users from accessing your data. If you have Windows 7 Ultimate or Enterprise edition, you can do it with the help of preinstalled utility called BitLocker Drive Encryption. Other Windows 7 editions must rely on third-party software, such as the free and open-source TrueCrypt program. Such open-source programs may seem less secure, because the source
Download youtube video without any software
Posted by
Dan's
|
Hi friends, This is an awesome trick for those who love to download youtube videos at all the places, even at their workplace. There, they don't have to download and install any additional software for downloading the youtube video.
Follow these steps:
- Open desired video in youtube.
Most useful and frequently used LINUX/UNIX commands with examples
Posted by
Dan's
|
Hi Geeks, This article will provide the most useful ad frequently used LINUX / UNIX commands along-with the example.
If I miss any command then don't forget to write them in comment.
How to check whether email address exists or not without sending mail (Simplest method)
Posted by
Dan's
|
Hi Friends, I dug many times on Internet to find this trick. In this article, I'll tell you how to know whether an email-ID exists or not without sending actual mail to that ID. We can accompanish this task by various methods like telnet in command prompt, or perl / php scripts, but these methods can be used effectively by the programmers or technical persons only. This
Send WhatsApp message without using any number
Posted by
Dan's
|
Hi friends, In previous post I've told you about how to hack your friend's whatsapp to read their conversation. In this post, I'll tell you how can you use WhatsApp without using your mobile number, i.e. WhatsApp without using any number. Friends, you might be knowing that Facebook has launched web version of the WhatsApp currently for the chrome browser
What is Net Neutrality and why should I vote
Posted by
Dan's
|
What is Net Neutrality?
In simple terms, Net neutrality means if we are paying ISP (Internet Service Provider) for data, then we should be free to decide what to browser, and must not be decided by ISP. As per the new norms of TRAI (Telecom regulation authority of India), you will have to pay additional charges for Whatsapp, facebook etc etc apart from your normal data plan. Moreover ISP will decide the speed of the site. that means, if any company say facebook.com has paid your ISP, then facebook.com will get
How to see hidden friends' list in facebook
Posted by
Dan's
|
Hi friends, you must have seen that facebook gives you different option to control your privacy settings, on your statuses, posts and even on friend list. If a friend has made their friend-list hidden (visibility set to 'Only Me') then you can't check their friends, as I've done. But now, a new Free
How to stop autoplay of videos in facebook
Posted by
Dan's
|
Hi friends, you might have seen that facebbok autoplays videos that are listed on your timeline, although muted. This involves useless consumption of data. Even if you dont want to see the video, it gets downloaded and is played. To get rid of this, you can do simple tweak in facebook setting, mentioned below.
Watch torrent videos online without downloading
Posted by
Dan's
|
Torrent is one of the most popular tool for downloading movies and other videos. But the problem with the torrent is that many of the links provided are fake, which is quite difficult to identify. Some of the torrents come with sample video quality where you can check video quality, and download it, if it satisfies you.
7 New Whatsapp features that will make you smarter
Posted by
Dan's
|
WhatsApp has recently completed 1-billion users. It has now become one of the fastest mode of communication in many countries. It has got many new features in the past few months that one should now about.
Simplest method to download facebook videos without any software
Posted by
Dan's
|

Hi friends, In last post I have illustrated you how to stop autoplay of videos on facebook, a new feature provided by facebook. This post will tell you the simplest method to download videos from facebook, which you can't download by simply right click. This is as simple as latter.
Steps:
Posted by
Dan's
|
Block Right click on your web page
To block right mouse click on your web page just copy the following link on your html page.
Code:-
'<script language=JavaScript>
'<script language=JavaScript>
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function('alert(message);return false')
</script>'
- harshit M Shingala
set pagination in php codeigniter with bootstrap css
Posted by
Dan's
|
Pagination In php Codeigniter With Bootstrap CSS
Model Code:--
<?php
class department_model extends CI_Model{
function __construct()
{
// Call the Model constructor
parent::__construct();
}
//fetch department details from database
function get_department_list($limit, $start)
{
$sql = 'select var_dept_name, var_emp_name from tbl_dept, tbl_emp where tbl_dept.int_hod =
tbl_emp.int_id order by var_dept_name limit ' . $start . ', ' . $limit;
$query = $this->db->query($sql);
return $query->result();
}
}
?>
Controller Code:--
<?php
class department extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->helper('url');
$this->load->database();
$this->load->library('pagination');
//load the department_model
$this->load->model('department_model');
}
public function index()
{
//pagination settings
$config['base_url'] = site_url('department/index');
$config['total_rows'] = $this->db->count_all('tbl_dept');
$config['per_page'] = '5';
$config['uri_segment'] = 3;
$choice = $config['total_rows'] / $config['per_page'];
$config['num_links'] = floor($choice);
//config for bootstrap pagination class integration
$config['full_tag_open'] = '<ul class='pagination'>';
$config['full_tag_close'] = '</ul>';
$config['first_link'] = false;
$config['last_link'] = false;
$config['first_tag_open'] = '<li>';
$config['first_tag_close'] = '</li>';
$config['prev_link'] = '«';
$config['prev_tag_open'] = '<li class='prev'>';
$config['prev_tag_close'] = '</li>';
$config['next_link'] = '»';
$config['next_tag_open'] = '<li>';
$config['next_tag_close'] = '</li>';
$config['last_tag_open'] = '<li>';
$config['last_tag_close'] = '</li>';
$config['cur_tag_open'] = '<li class='active'><a href='#'>';
$config['cur_tag_close'] = '</a></li>';
$config['num_tag_open'] = '<li>';
$config['num_tag_close'] = '</li>';
$this->pagination->initialize($config);
$data['page'] = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
//call the model function to get the department data
$data['deptlist'] = $this->department_model->get_department_list($config['per_page'], $data['page']);
$data['pagination'] = $this->pagination->create_links();
//load the department_view
$this->load->view('department_view',$data);
}
}
?>
View Code:--
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>PHP CodeIgniter Pagination with Bootstrap Styles | Example</title>
<!--link the bootstrap css file-->
<link rel='stylesheet' href='<?php echo base_url('bootstrap/css/bootstrap.css'); ?>'>
</head>
<body>
<div class='container'>
<div class='row'>
<div class='col-md-12'>
<table class='table table-striped table-hover'>
<thead>
<tr>
<th>#</th>
<th>Department Name</th>
<th>Head of Department</th>
</tr>
</thead>
<tbody>
<?php for ($i = 0; $i < count($deptlist); ++$i) { ?>
<tr>
<td><?php echo ($page+$i+1); ?></td>
<td><?php echo $deptlist[$i]->var_dept_name; ?></td>
<td><?php echo $deptlist[$i]->var_emp_name; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<div class='row'>
<div class='col-md-12 text-center'>
<?php echo $pagination; ?>
</div>
</div>
</div>
</body>
</html>
Codeigniter Paginaton With Bootstrap css
Posted by
Dan's
|
Bootstrap Paginaton With Codeigniter
Bootstrap Paginaton With Codeigniter
Controller Code:::
Code::-- public function view() {
// $data['result']=$this->nj_user->getallUser();
$this->load->view('layout/header');
$this->load->view('layout/sidebar');
//Pagination
$config = array();
$config['base_url'] = $this->config->base_url() . 'user/view';
$config['total_rows'] = $this->nj_user->count_user();
$config['per_page'] = 7;
$config['uri_segment'] = 3;
$choice = $config['total_rows'] / $config['per_page'];
$config['num_links'] = round($choice);
//config for bootstrap pagination class integration
$config['full_tag_open'] = '<ul class='pagination'>';
$config['full_tag_close'] = '</ul>';
$config['first_link'] = false;
$config['last_link'] = false;
$config['first_tag_open'] = '<li>';
$config['first_tag_close'] = '</li>';
$config['prev_link'] = '«';
$config['prev_tag_open'] = '<li class='prev'>';
$config['prev_tag_close'] = '</li>';
$config['next_link'] = '»';
$config['next_tag_open'] = '<li>';
$config['next_tag_close'] = '</li>';
$config['last_tag_open'] = '<li>';
$config['last_tag_close'] = '</li>';
$config['cur_tag_open'] = '<li class='active'><a href='#'>';
$config['cur_tag_close'] = '</a></li>';
$config['num_tag_open'] = '<li>';
$config['num_tag_close'] = '</li>';
$this->pagination->initialize($config);
$page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
$data['result'] = $this->nj_user->getallUser($config['per_page'], $page);
$data['link'] = $this->pagination->create_links();
$this->load->view('user/userview', $data);
$this->load->view('layout/footer');
}
Controller Code:::
Load Pagination library in your controler:
$this->load->library('pagination');Code::-- public function view() {
// $data['result']=$this->nj_user->getallUser();
$this->load->view('layout/header');
$this->load->view('layout/sidebar');
//Pagination
$config = array();
$config['base_url'] = $this->config->base_url() . 'user/view';
$config['total_rows'] = $this->nj_user->count_user();
$config['per_page'] = 7;
$config['uri_segment'] = 3;
$choice = $config['total_rows'] / $config['per_page'];
$config['num_links'] = round($choice);
//config for bootstrap pagination class integration
$config['full_tag_open'] = '<ul class='pagination'>';
$config['full_tag_close'] = '</ul>';
$config['first_link'] = false;
$config['last_link'] = false;
$config['first_tag_open'] = '<li>';
$config['first_tag_close'] = '</li>';
$config['prev_link'] = '«';
$config['prev_tag_open'] = '<li class='prev'>';
$config['prev_tag_close'] = '</li>';
$config['next_link'] = '»';
$config['next_tag_open'] = '<li>';
$config['next_tag_close'] = '</li>';
$config['last_tag_open'] = '<li>';
$config['last_tag_close'] = '</li>';
$config['cur_tag_open'] = '<li class='active'><a href='#'>';
$config['cur_tag_close'] = '</a></li>';
$config['num_tag_open'] = '<li>';
$config['num_tag_close'] = '</li>';
$this->pagination->initialize($config);
$page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
$data['result'] = $this->nj_user->getallUser($config['per_page'], $page);
$data['link'] = $this->pagination->create_links();
$this->load->view('user/userview', $data);
$this->load->view('layout/footer');
}
Model code::-
function getallUser($limit = NULL,$start =NULL)
{
$sql='Select
function getallUser($limit = NULL,$start =NULL)
{
$sql='Select
Block Browser Back Button using 'JS'
Posted by
Dan's
|
script to block browser back button
Just paste this following script in your victim web page and then save page and test it on your Browser
Done...
Here The script :-
<script type = 'text/javascript' >
function preventBack(){window.history.forward();}
setTimeout('preventBack()', 10);
window.onunload=function(){null};
</script><!doctype html>
Set pagination in searching data in table [ codeigniter ]
Posted by
Dan's
|
Set Peginaation in Searching in codeigniter
Controller Code:
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
class User extends CI_Controller {
function __construct() {
// Call the Model constructor
parent::__construct();
$this->load->helper('url');
$this->load->model('nj_user');
$this->load->library('session');
$username = $this->session->userdata('username');
if (empty($username)) {
redirect($this->config->base_url() . 'login');
}
$this->load->library('pagination');
}
public function index() {
redirect($this->config->base_url() . 'user/view');
}
//sarching
public function searchterm_handler($searchterm) {
if ($searchterm) {
$this->session->set_userdata('searchterm', $searchterm);
return $searchterm;
} elseif ($this->session->userdata('searchterm')) {
//print_r ($_SESSION['searchterm']);exit;
$searchterm = $this->session->userdata('searchterm');
return $searchterm;
} else {
$searchterm = '';
return $searchterm;
}
}
public function searh()
{
$this->load->view('layout/header');
$this->load->view('layout/sidebar');
//pagination//
$searchterm = $this->searchterm_handler($_POST, TRUE);
$config = array();
$config['base_url'] = $this->config->base_url() . 'user/searh';
$config['total_rows'] = $this->nj_user->count_search($searchterm);
$config['per_page'] = 3;
$config['uri_segment'] = 3;
$choice = $config['total_rows'] / $config['per_page'];
$config['num_links'] = round($choice);
//config for bootstrap pagination class integration
$config['full_tag_open'] = '<ul class='pagination'>';
$config['full_tag_close'] = '</ul>';
$config['first_link'] = false;
$config['last_link'] = false;
$config['first_tag_open'] = '<li>';
$config['first_tag_close'] = '</li>';
$config['prev_link'] = '«';
$config['prev_tag_open'] = '<li class='prev'>';
$config['prev_tag_close'] = '</li>';
$config['next_link'] = '»';
$config['next_tag_open'] = '<li>';
$config['next_tag_close'] = '</li>';
$config['last_tag_open'] = '<li>';
$config['last_tag_close'] = '</li>';
$config['cur_tag_open'] = '<li class='active'> <a href='#'>';
$config['cur_tag_close'] = '</a></li>';
$config['num_tag_open'] = '<li>';
$config['num_tag_close'] = '</li>';
$this->pagination->initialize($config);
$page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
//searching... //
$data['result']= $this->nj_user->get_search($searchterm, $page, $config['per_page']);
//end searching...//
$data['link'] = $this->pagination->create_links();
$data['hms'] = $page;
$this->load->view('user/userview', $data);
$this->load->view('layout/footer');
}
}
?>
Model Code:
<?php
class nj_user extends CI_model
{
function get_search($searchterm, $start, $limit)
{
$query ='select
How to Remove Index.php in CODEIGNITER FRAMEWORK
Posted by
Dan's
|
Steps to remove index.php from url codeigniter :-
Config changes :- Go to “application/config/config.php”
Find below code:-
1 | $config [ 'index_page' ] = 'index.php' ; |
Replace with the below code:-
1 | $config [ 'index_page' ] = '' ; |
.htaccess changes :- If you not have any htaccess create new and place it on your root.
Go to “application/config/config.php”
Find below code
Find below code
1 | $config [ 'uri_protocol' ] = 'AUTO' ; |
Replace with the below code
1 | $config [ 'uri_protocol' ] = 'REQUEST_URI' ; |
RewriteEngine on
RewriteBase /harshit_ci/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.
Subscribe to:
Posts (Atom)
Copyright 2011 Web Globe.All rights reserved. Powered by Blogger
Luggage, Aquariums, Hosted SharePoint, Designed by Ezwpthemes.com.
Luggage, Aquariums, Hosted SharePoint, Designed by Ezwpthemes.com.