Friday 12 October 2012

SEARCH ENGINE OPTIMIZATION (SEO)


SEARCH ENGINE OPTIMIZATION (SEO)
...........................

SEO stands for “search engine optimization.” It is the process of getting traffic from the “free,” “organic,” “editorial” or “natural” listings on search engines. All major search engines such as Google, Yahoo and Bing have such results, where web pages and other content such as videos or local listings are shown and ranked based on what the search engine considers most relevant to users.

There are two types of SEO Ranking factors:-
1) ON THE PAGE SEO
2)OFF THE PAGE SEO


ON THE PAGE SEO
.....................

CONTENT
...........
QUALITY :Are pages well written & have substantial quality content?

RESEARCH:Have you researched the keywords people may use to find your content?

WORDS: Do pages use words & phrases you hope they'll be found for?

ENGAGE : Do visitors spend time reading or "bounce" away quickly?

FRESH: Are pages fresh & about "hot" topics?

HTML
...........

TITLES: Do HTML title tags contain keywords relevant to page topics?

DESCRIPTION:Do meta description tags describe what pages are about?

HEADERS:Do headlines and subheads use header tags with relevant keywords?

ARCHITECTURE
..............

CRAWL: Can search engines easily "crawl" pages on site?

SPEED: Does site load quickly?

URLS:Are URLs short & contain meaningful keywords to page topics?


OFF THE PAGE SEO
........................

LINKS
...........

QUALITY:Are links from trusted, quality or respected web sites?

TEXT:Do links pointing at pages use words you hope they'll be found for?

NUMBER:Do many links point at your web pages?

SOCIAL
........

REPUTATION: Do those respected on social networks share your content?

SHARES:Do many share your content on social networks?

TRUST
.............

AUTHORITY:Do links, shares & other factors make site a trusted authority?

HISTORY:Has site or its domain been around a long time, operating in same way?

PERSONAL
..............

COUNTRY:What country is someone located in?

LOCALITY:What city or local area is someone located in?

HISTORY:Does someone regularly visit the site? Or "liked" it?

SOCIAL:What do your friends think of the site?


SEO NEGATIVE FACTORS
.....................

VIOLATIONS
................

THIN : Is content "thin" or "shallow" & lacking substance?

STUFFING:Do you excessively use words you want pages to be found for?

HIDDEN:Do colors or design "hide" words you want pages to be found for?

CLOAKING:Do you show search engines different pages than humans?

PAID LINKS:Have you purchased links in hopes of better rankings?

LINK SPAM:Have you created many links by spamming blogs, forums or other places?


BLOCKING
................

Have many people blocked your site from search results?

Has someone blocked your site from their search results?



Friday 5 October 2012

Sending Email in Codeigniter


Here iam describing about sending mail using smtp server in codeigniter.:- Below is the controller code:-


function Index()
    {
    $config = Array(
      'protocol' => 'smtp',
      'smtp_host' => 'ssl://smtp.googlemail.com',
      'smtp_port' => 465,
      'smtp_user' => 'youraccount@gmail.com',
      'smtp_pass' => 'password'
       
    );
     
    $this->load->library('email', $config);    //loading email libraray
    $this->email->set_newline("\r\n"); /* for some reason it is needed */
     
    $this->email->from('name@gmail.com', 'Aditya Lesmana Test');
    $this->email->to('name@gmail.com');
    $this->email->subject('This is an email test');
    $this->email->message('haai');
     
    if($this->email->send())
    {
      echo 'Your email was sent, success';
    }
    else
    {
      show_error($this->email->print_debugger());
    }
     
    }

Pagination in Codeigniter


CodeIgniter’s Pagination class is very easy to use, and it is 100% customizable, either dynamically or via stored preferences.
Here is a simple example showing how to create pagination in one of your controller functions:

In the Controller page, just code like this :-
public function news(){
$this->load->helper('form');
$this->load->helper('url');
$data['urls']=base_url();
$data['news'] = $this->news_model->get_news();
$data['count']=count($data['news']);

$this->load->library('pagination');// loading the pagination library
$config['base_url'] = $data['urls'].'index.php/admin/news/';// configuring url to which page is located
$config['total_rows'] = $data['count'];// total count of records fetched
$config['per_page'] = 10; //count wanted per page
$this->pagination->initialize($config);// initializing the configs 
$data['pagelinks']= $this->pagination->create_links();//creating links

$this->load->view('templates/headermain',$data);
$this->load->view('admin/news',$data);
$this->load->view('templates/footermain');

}

then you have to just place te below code in view page to display the pagination:-
  <?php  echo $pagelinks; ?> 
your pagination comes like this :-