Posts

Showing posts from 2015

2 Wordpress, 1 Database configuration settings

  Here are the following instructions for setup two Different Wordpress into one Database:

Add Pagination in Products and Order in Opencart Admin panel

Pagination is the one of most important fact to easily switching in our products and order listing in admin panel. We can easily achieve it through some changes in following files:- 1) For product pagination Open product.php from admin=>controller=>catalog=> product.php. and go to line no.336. Probably you will be  find this code- 'start'           => ($page - 1) * $this->config->get('config_limit_admin'), Replace this line code with the following code 'start'           => ($page - 1) * 10, Go to line no.500. Probably you will find this code $pagination->limit = $this->config->get('config_limit_admin'); Replace this line with the followings code $pagination->limit = 10; 2) For order pagination Apply all above process in order.php file. You could find this file in admin=>controller=>sale=>order.php . Note: May be line number will be different try to find these code and edit according to ab

Don't Crawl Posts,Categories Using Meta Tags in Wordpress

If we want to google or other search engines do not crawl our posts and categories in wordpress . For this we can use following script, Go to functions.php file in your theme-: function add_meta_tags() {       if(is_single() || is_archive())        { ?>          <meta name="robots" content="noindex,nofollow"/>        <?php  } } add_action('wp_head ','add_meta_tags'); If you want to use other pages like author,tags and date just replace if statement if(is_author() || is_tag() || is_date()) Thanks.

How to Get Access of Database of Dynamic Site Without cPanel Details

Image
If  you want to get access of  database of  any dynamic site and do not cPanel details. Do not be panic. Here is the quick way of getting access of database.              Connect your FTP and navigate to your site root directory. Download adminer.php   and upload this file on  root directory of your website. Run this file like - http://www.yoursite.com/adminer.php . Now you could see your screen similar to below screenshot.       4 . Fill the database connections details from wp-config.php file and click on Login.       5. Now you have Database panel,You can Export,Import,Operations with database.       Cheers❤

How to Remove index.php From Codeigniter Website's URL

Here is the step by step process of removing index.php factor from your Codeigniter website or web application. 1. Navigate to your   config file through   Application=>config=>config.php   and change following lines:- $config['base_url'] = 'http://example.com/'; $config['index_page'] = ''; 2. Now create a  .htaccess file on root directory of your website or web application.   <IfModule mod_rewrite.c>         RewriteEngine On         RewriteBase /         # Removes index.php from ExpressionEngine URLs         RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]         RewriteCond %{REQUEST_URI} !/system/.* [NC]         RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]         # Directs all EE web requests through the site index file         RewriteCond %{REQUEST_FILENAME} !-f         RewriteCond %{REQUEST_FILENAME} !-d         RewriteRule ^(.*)$ Your Folder Name /index.php/$1 [L] </IfModule> Copy above code and

Link Css File in Codeigniter

Here is following way to add css in your view file..... First Method-:  put your css file in your folder at root directory     go ot view file and add following code in head section. <link rel="stylesheet" type="text/css" href="<?php echo base_url("foldername/style.css");?>" /> Second Method-: put this code in your before starting of html code in your view file     <?php $this->load->helper('html');?> after this add following code in your head section  <?php echo link_tag(base_url().'style/style.css') ;?> Note:if you do not want to write this code <?php $this->load->helper('html');?> in your view file, Go to Application->Config->autoload.php and change following codes before $autoload['helper'] = array(); replace $autoload['helper'] = array("url","html"); Thanks