Monday, 23 March 2020

Android Login Logout with MySQL Database and PHP as API

This video explore the complete process of implementing login and logout in Android Application using PHP as API and MySQL as database. it elaborates each an every steps one by one very clearly. and the link  project is given below.

https://drive.google.com/file/d/1bCJRhEA_ssgNQwQ2Weqzq63jgRbu04LW/view?usp=sharing

Monday, 9 March 2020

Advanced Custom Fields WordPress | Custom Fields WordPress | How to Use Advanced Custom Fields

here is the code how to fetch the advance custom field in wordpress template page

For text fields

                                         <div class="row">
                                         <div class="col-sm-4">
                                         <a href="<?php echo get_field( 'book_link_amazon'); ?>" target="_new">
                                         <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/images/amazonr.png" style="height:100px;" />
                                         </a>
                                         </div>


For image 


                                <div class="col-sm-3">
                                <?php if(get_field('film_award1') ): ?>
         <img src="<?php the_field('film_award1'); ?>">
                                 <?php endif; ?>                               
                                </div>

How to create custom post type in WordPress without using Plugins

Function to be written on function.php for custom post type
--------------------------------------------------------------------------------

function gallery_post_type() {
$labels = array(
'name'                => _x( 'gallery', 'Post Type General Name', 'acsweb' ),
'singular_name'       => _x( 'gallery', 'Post Type Singular Name', 'acsweb' ),
'menu_name'           => __( 'gallery', 'acsweb' ),
'parent_item_colon'   => __( 'Parent gallery', 'acsweb' ),
'all_items'           => __( 'All gallery', 'acsweb' ),
'view_item'           => __( 'View gallery', 'acsweb' ),
'add_new_item'        => __( 'Add New gallery', 'acsweb' ),
'add_new'             => __( 'Add New', 'acsweb' ),
'edit_item'           => __( 'Edit gallery', 'acsweb' ),
'update_item'         => __( 'Update gallery', 'acsweb' ),
'search_items'        => __( 'Search gallery', 'acsweb' ),
'not_found'           => __( 'Not Found', 'acsweb' ),
'not_found_in_trash'  => __( 'Not found in Trash', 'acsweb' ),
);
$args = array(
'label'               => __( 'gallery', 'acsweb' ),
'description'         => __( 'gallery news and reviews', 'acsweb' ),
'labels'              => $labels,
'supports'            => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', ),
'taxonomies'          => array( 'genres' ),
'hierarchical'        => false,
'public'              => true,
'show_ui'             => true,
'show_in_menu'        => true,
'show_in_nav_menus'   => true,
'show_in_admin_bar'   => true,

'menu_position'       => 5,
'menu_icon'           => 'dashicons-format-image',
'can_export'          => true,
'has_archive'         => true,
'exclude_from_search' => false,
'publicly_queryable'  => true,
'capability_type'     => 'page',
'taxonomies'          => array( 'category' ),
);
register_post_type( 'gallery', $args );
}
add_action( 'init', 'gallery_post_type', 0 );







Fetching custom post type in template pages
------------------------------------------------------------

 <?php
    $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; // setup pagination
$the_query = new WP_Query( array(
'post_type' => 'service',
'paged' => $paged,
'orderby' =>'ID',
'order' =>'asc',
'posts_per_page' => 9)
);
while ( $the_query->have_posts() ) : $the_query->the_post();
?>
                <div class="row align-items-center" style="padding-bottom:100px;">
                   
                    <div class="col-lg-4 col-md-12">
                        <div class="about-image">                         
                            <img src="<?php echo the_post_thumbnail_url(); ?>" alt="Image Title">
                        </div>
                    </div>

                    <div class="col-lg-8 col-md-12">
                        <div class="about-area-content">
                            <span></span>
                            <h3><?php echo get_the_title(); ?></h3>
                            <?php echo get_the_content(); ?>
                 
                           
               </div>
                <?php endwhile; ?>
               



Monday, 10 February 2020

Here KVS PGT Computer Science previous year Question Paper link is given

https://drive.google.com/open?id=1tgqQ4DljTur7eM9hygZ2qfYGCYXxLO7d

Tuesday, 28 January 2020

MCS-011 Problem Solving and Programming Free assignment 19-20

This video will solve the mcs-011 assignment question of 2020 one by one directly on compiler and this is the part 1 of the question set.

Monday, 27 January 2020

BCSL-056 Network Programming and Administration Lab

SOLVED ASSIGNMENT 


https://drive.google.com/open?id=1Z6SmsLqP0CtZXJ57eOzvzN114nWz9ziv 

BCSL-057(P) : WEB PROGRAMMING LAB QUESTION SOLVE

here  i am sharing a video which describe the all steps to solve the question comes in exam. in BCSL-057 generally same types of question comes in exam. so if we solve any one then we can attempt the question.