Bootstrap Templates Bundle

Monday, December 29, 2014

Progress bar: Making short code in Bootstrap Wordpress

Add this code to your functions.php file ---------------------------------------------------

function progress($atts, $content = null) {
 extract( shortcode_atts( array(        
          'percentage' => ''
), $atts ) );

return '<div class="progress">
  <div class="progress-bar" role="progressbar" aria-valuenow="'.$percentage.'" aria-valuemin="0" aria-valuemax="100" style="width: '.$percentage.'%;">
    ' . $percentage . '%
  </div>
</div>';

}
add_shortcode('progressbar', 'progress');


---------------------------------------------------
How To Use:
 ---------------------------------------------------

 [progressbar percentage="60"]60%[/progressbar]
 [progressbar percentage="70"]70%[/progressbar]

Saturday, July 5, 2014

nillplay theme tutorial

Add Audio / Music Post 



Add Gallery Post 




Add Video Post 




Add Biography Post 




Add Event Post 

Thursday, June 5, 2014

Assigning Badge to a Student

Learn how an Administrator can assign badges for any course to any student on an ad-hoc basis, without the student appearing for the course.



video





Need  more help for using this Theme?
Then You can choose my service 

Theme URL

Changing Students Marks in a Course

Learn how an Administrator can change marks for particular students for particular course.

video


Need  more help for using this Theme?
Then You can choose my service 

Theme URL

Assigning Certificate to a Student

Lean how an administrator can assign certificates to a student on an ad-hoc basis, without student taking the course.


video





Need  more help for using this Theme?
Then You can choose my service 

Theme URL

Changing Students Marks in a Course

Learn how an Administrator can change marks for particular students for particular course.


video


Need  more help for using this Theme?
Then You can choose my service 

Theme URL
http://vibethemes.com/envato/wplms/


Adding Student to a Course in WPLLMS Theme

Adding Students to a course from the Administrator only settings panel without purchasing the course. 


video



If you need more help for setting up this theme, you can choose my service 

Setting player in Themeforest SoundWave WordPress Theme

This video will help you for Setting player in Themeforest SoundWave WordPress Theme
Theme URL:  http://themeforest.net/item/soundwave-the-music-vibe-wordpress-theme/full_screen_preview/5011090


video




If you need help for using this theme, you can choose my service

https://studio.envato.com/explore/wordpress-installation/9443-wordpress-themeforest-theme-installation-and-demo-setup-free-optimization

Monday, June 2, 2014

Wednesday, May 21, 2014

Course Settings in WPLMS theme

  1. Sidebar: Select the sidebar you want to place in the course page. Sidebars are created in the section Appearance->Widgets by the administrator.
  2. Excellence Badge: The badges are given on completion of the course and after achieving a certain percentage in the quiz i.e. the Badge Percentage which can be adjusted in the next setting. It is not necessary that every course taker will get the badge.
  3. Badge Percentage: This is the minimum percentage required by the students to have a badge for the course.
  4. Badge Title: You can set the title for the badge given after completion of the course like for a Maths course, you can set the title as Maths Champion which a student will get only after receiving the Badge Percentage .
  5. Completion Certificate:  If set Show, after the course is completed each student who passes the course will get this certificate of completion which is printable as well as downloadable. You can design the certificate according to your requirements.Follow the tutorial in the relevant section.Even after the course has expired the student can log in and view/print/download her certificate of completion.
  6. Passing Percentage: The minimum percentage required to pass the course.
  7. Total Duration of Course: Total duration of the course is the total time for which the student can access the course by logging into the site. After the duration has expired, the user will not be able to view the course content.

  8. Total Number of Students in Course: Initially while creating the course the number of students is set to 0.
  9. Course Curriculum: This setting help the instructor to create the curriculum of the course by arranging the units, quiz and categorizing it in sections. Add Section enables the instructor to add a section and name it. Add Unit enables the instructor to add units which has been created earlier. The units can further be arranged under different by dragging and dropping. Add Quiz allows the instructor to add quiz after unit , section or anywhere the instructor wish to place the quiz. All the three i.e Section, Unit, Quiz are draggable and can be arranged likewise.
  10. Pre required course: This is the pre requisite of doing the course i.e. if some course is selected , then that course must be finished before taking this new course.
  11. Course Forum: Link here the course with the respective course forum.
  12. Course Group: Link here the course with the respective course group.
  13. Course Completion Message: This message would be shown after the completion of the course.

How To Create or Edit Wordpress Pages, Posts and Widgets

Installing XAMPP and WordPress

Saturday, May 17, 2014

Making a Instructor (WPLMS)

How an Administrator can create an Instructor by changing the user role of a registered user from student to Instructor.


video

Certificate Templates : Creating and Connecting (for WPLMS)

This video help you to create Certificate Templates. Also, after creating template you can connect this to your course.

video

Wednesday, April 16, 2014

How to change add to cart text in woocommerce

For Single product page

Add this below code to your theme functions.php file

  //for  < 2.1
add_filter( 'add_to_cart_text', 'woo_custom_cart_button_text' );    

// for 2.1 +
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' );  

function woo_custom_cart_button_text() {

        return __( 'My Button Text', 'woocommerce' );

}


For Product Category Page
Add this below code to your functions.php file

add_filter( 'add_to_cart_text', 'woo_custom_cart_button_text' );                        // for < 2.1

add_filter( 'woocommerce_product_add_to_cart_text', 'woo_custom_cart_button_text' );    // for 2.1 +

function woo_custom_cart_button_text() {

        return __( 'My Button Text', 'woocommerce' );

}

Monday, April 14, 2014

Add option for duplicate post in wordpress without plugins

Some time we need an option duplicate post/page in wordpress

Add this code in your functions.php file

/*
 * Function creates post duplicate as a draft and redirects then to the edit post screen
 */
function rd_duplicate_post_as_draft(){
global $wpdb;
if (! ( isset( $_GET['post']) || isset( $_POST['post'])  || ( isset($_REQUEST['action']) && 'rd_duplicate_post_as_draft' == $_REQUEST['action'] ) ) ) {
wp_die('No post to duplicate has been supplied!');
}

/*
* get the original post id
*/
$post_id = (isset($_GET['post']) ? $_GET['post'] : $_POST['post']);
/*
* and all the original post data then
*/
$post = get_post( $post_id );

/*
* if you don't want current user to be the new post author,
* then change next couple of lines to this: $new_post_author = $post->post_author;
*/
$current_user = wp_get_current_user();
$new_post_author = $current_user->ID;

/*
* if post data exists, create the post duplicate
*/
if (isset( $post ) && $post != null) {

/*
* new post data array
*/
$args = array(
'comment_status' => $post->comment_status,
'ping_status'    => $post->ping_status,
'post_author'    => $new_post_author,
'post_content'   => $post->post_content,
'post_excerpt'   => $post->post_excerpt,
'post_name'      => $post->post_name,
'post_parent'    => $post->post_parent,
'post_password'  => $post->post_password,
'post_status'    => 'draft',
'post_title'     => $post->post_title,
'post_type'      => $post->post_type,
'to_ping'        => $post->to_ping,
'menu_order'     => $post->menu_order
);

/*
* insert the post by wp_insert_post() function
*/
$new_post_id = wp_insert_post( $args );

/*
* get all current post terms ad set them to the new post draft
*/
$taxonomies = get_object_taxonomies($post->post_type); // returns array of taxonomy names for post type, ex array("category", "post_tag");
foreach ($taxonomies as $taxonomy) {
$post_terms = wp_get_object_terms($post_id, $taxonomy, array('fields' => 'slugs'));
wp_set_object_terms($new_post_id, $post_terms, $taxonomy, false);
}

/*
* duplicate all post meta
*/
$post_meta_infos = $wpdb->get_results("SELECT meta_key, meta_value FROM $wpdb->postmeta WHERE post_id=$post_id");
if (count($post_meta_infos)!=0) {
$sql_query = "INSERT INTO $wpdb->postmeta (post_id, meta_key, meta_value) ";
foreach ($post_meta_infos as $meta_info) {
$meta_key = $meta_info->meta_key;
$meta_value = addslashes($meta_info->meta_value);
$sql_query_sel[]= "SELECT $new_post_id, '$meta_key', '$meta_value'";
}
$sql_query.= implode(" UNION ALL ", $sql_query_sel);
$wpdb->query($sql_query);
}


/*
* finally, redirect to the edit post screen for the new draft
*/
wp_redirect( admin_url( 'post.php?action=edit&post=' . $new_post_id ) );
exit;
} else {
wp_die('Post creation failed, could not find original post: ' . $post_id);
}
}
add_action( 'admin_action_rd_duplicate_post_as_draft', 'rd_duplicate_post_as_draft' );

/*
 * Add the duplicate link to action list for post_row_actions
 */
function rd_duplicate_post_link( $actions, $post ) {
if (current_user_can('edit_posts')) {
$actions['duplicate'] = '<a href="admin.php?action=rd_duplicate_post_as_draft&amp;post=' . $post->ID . '" title="Duplicate this item" rel="permalink">Duplicate</a>';
}
return $actions;
}

add_filter( 'post_row_actions', 'rd_duplicate_post_link', 10, 2 );

If you want do set it only for specific post type then only red color code by bellow code

add_filter('{post type name}_row_actions', 'rd_duplicate_post_link', 10, 2);


Monday, February 3, 2014

Using PayPal From Bangladesh and send money from paypal to payoneer

Using PayPal From Bangladesh

How to do it:

01. Apply for a Payoneer card (http://share.payoneer-affiliates.com/a/clk/1KWC9X). If you are a freelancer at oDesk or Elance, affiliated with the companies that support Payoneer as their payment method then this thing will get easy. Even if you are a blogger and using ads from infolinks or textlinkads you can apply for the card easily inside from your account.

02. Once you have the card now you’ll need some money loaded into it. As mentioned earlier- if you are a freelancer than you can earn some money and load it into your payoneer card.

03. Before opening a PayPal account you must know that you can’t add Bangladesh as your country. So, you’ll need someone who lives in any of the PayPal accepted country. It’s better if he/she is your relative. Ask them if they can help you in this regard. Open a PayPal account in your name and with your e-mail address, but for physical address or location use their address and country. PayPal may (I know they will) send papers for approval in that address. Tell them to forward those in your address.

04. Now add your payoneer debit master card in your PayPal. Verify it as instructed there. Don’t forget to have at least $5 balance in the card. Once you have it verified you can spend money with your PayPal. The amount will be cut from you Payoneer card.

But wait, there are more to go. You can spend money with your newly activated paypal account but you can’t receive money with that account. There is another step to achieve that too.

05. If you have a good transaction they will provide you with a US bank account number and routing number in your name. Now- use this account to add a bank account in the paypal. Verify the bank account also as instructed in the PayPal.
You can get that information from your Payoneer account
Receive Money -->  US Payment Profile
https://myaccount.payoneer.com/MainPage/USPProfile.aspx




Furniture Shopify Theme

Furnish - Minimal Furniture Shopify Theme Furnish – Minimalist Shopify Theme is a clean and elegant design – suitable for sellin...