Bootstrap Templates Bundle

Saturday, July 6, 2013

How to install Module/Extension for opencart

Here is five steps to show, How to install Module/Extension for opencart

1. Unzip the files.
2. Upload the files INSIDE the "upload" folder to your OpenCart root folder. **NOTE: No file should get replaced!
3. Proceed to System > Users > User Groups and grant yourself access and modification permission.      (Optional)
4. In admin panel, go to "Extensions > Modules > Your extension name” and install and configure.
5. Add news from “Extensions > News”.


Tuesday, July 2, 2013

How to Install new Opencart Theme

After Downloading a theme free/premium, Extract your theme

After extracting you will get some some file. There will be read me and some help file also. Try to find
\yourt theme name\OpenCart 1.5.2.1\FILES TO UPLOAD\

Copy this folder and paste into your hosting
To find out which version of OpenCart your store is running on, log in to your admin panel and this should be displayed at the bottom of the page.

Inside FILES TO UPLOAD you will find three folders: admin, catalog and image. Upload those folders to the root directory you have installed OpenCart in.

Don't worry, it won't replace any core files :)

Then you need to go to your site admin panel
http://WWW.YOURWEBSITE.COM/STORE/admin/

Then go to Home-->System-->  Setting---> Insert --> Store--> Template


Choose template and click on save

Sunday, June 30, 2013

How to enable curl in xampp - Warning: CURL extension needs to be loaded for OpenCart to work! in xamp

Step 1:
At first close Xamp.
Browse and open the following 3 files

C:\Program Files\xampp\apache\bin\php.ini
C:\Program Files\xampp\php\php.ini
C:\Program Files\xampp\php\php4\php.ini

Step 2:

Uncomment the following line in your php.ini file by removing the semicolon (;).

;extension=php_curl.dll
After that it will look something like something below-

extension=php_curl.dll

Step 3:

Restart your Apache server.

Step 4:

Check your phpinfo() to see whether curl has properly enabled or not.

Enjoy using curl() library.

Sunday, May 12, 2013

How to change-the-wordpress-blog-text-editor-font-size in wordpress

Some one wants to change the font size of wordpress text editor for easy to see at time of posting. Here I tell you the procedure How to change-the-wordpress-blog-text-editor-font-size in wordpress
Go to  /wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css
on line 40 you can see that


/* WordPress styles */
body {
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
font-size: 13px;
line-height: 19px;
color: #333;
margin: 10px;
}

Change the font size as your need. Change also line height, which will be greater than the font-size.

Visit my website: www.bestcareerbd.com

Tuesday, May 7, 2013

popular post by category or category.php


Add this on functions.php:


function getPostViews($postID){
    $count_key = 'post_views_count';
    $count = get_post_meta($postID, $count_key, true);
    if($count==''){
        delete_post_meta($postID, $count_key);
        add_post_meta($postID, $count_key, '0');
        return "0 View";
    }
    return $count.' Views';
}
function setPostViews($postID) {
    $count_key = 'post_views_count';
    $count = get_post_meta($postID, $count_key, true);
    if($count==''){
        $count = 0;
        delete_post_meta($postID, $count_key);
        add_post_meta($postID, $count_key, '0');
    }else{
        $count++;
        update_post_meta($postID, $count_key, $count);
    }
}

The add this when the loop starts within single.php:

<?php setPostViews(get_the_ID()); ?>

Add this where you want to show page view

<?php echo getPostViews(get_the_ID()); ?>



Popular post: for all categories
 <?php

query_posts('meta_key=post_views_count&orderby=meta_value_num&order=DESC&showposts=2&offset=4');
if (have_posts()) : while (have_posts()) : the_post(); ?>
               
                <li class="liHeadList"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
                <?php
endwhile; endif;
wp_reset_query();
?>



popular post: for all category.php 

<?php
$category = get_the_category();
query_posts('meta_key=post_views_count&orderby=meta_value_num&order=DESC&showposts=3&&category_name='.$category[0]->cat_name.'&cat=$category_id');
if (have_posts()) : while (have_posts()) : the_post(); ?>              
                <li class="liHeadList"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>              
                <?php
endwhile; endif;
wp_reset_query();
?>

Wednesday, April 17, 2013

Display Category in a Dropdown Menu



Some blogs have a lot of categories which they can’t display in their sidebar. Or some bloggers do not want to take up a lot of space displaying categories. This option allows them to have a select menu, dropdown menu, for categories. See WordPress Codex for details.



<form action="<?php bloginfo('url'); ?>/" method="get">
<?php
$select = wp_dropdown_categories('show_option_none=Select Category&show_count=1&orderby=name&echo=0&selected=6');
$select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select);
echo $select;
?>
<noscript><input type="submit" value="View" /></noscript>
</form>



Exclude Certain Categories from Being Displayed in a Loop

Your blog page shows recent posts from all categories. If you want to have a separate page for some reason, or do not want to display certain categories, you can use the following code, and it will exclude a certain category from being displayed in a Loop. Just change the category IDs.

<?php if ( have_posts() ) : query_posts($query_string .'&cat=-13,-26'); while ( have_posts() ) : the_post(); ?>

Display Certain Categories in a Menu


In many cases, users only want to display certain categories in their navigation menu at the top of the page. There are limited spots, that can only be filled by top categories, but if you use the default wp_list_categories code, it will show all categories. This is why this hack below comes in very handy when you want to create a navigation menu and only display certain categories.


<ul class="navmenubar" style="float:left; width:730px;">
<?php wp_list_categories('orderby=name&include=7,9,19,16,1,5,17,23'); ?>
</ul>


Note, you can also change the ‘include’ text to ‘exclude’ and show all categories and exclude those that you don’t want displayed. The numbers displayed in the code are the category IDs. Remember since WordPress shows categories in a list format, you will need to edit the CSS in order to make it work.

Wokiee React eCommerce Template