Showing posts with label Tips and Ticks. Show all posts
Showing posts with label Tips and Ticks. Show all posts

Tuesday, December 23, 2014

Some important tools of wordPress

How to dynamic WordPress search option:

<form action="<?php echo home_url(); ?>/" method="post" role="form" class="pull-right search-form col-xs-12 col-sm-3" id="searchform">
                            <div class="form-group">
                               
                                    <input type="text" class="form-control" id="search-form" placeholder="To search type and hit enter" value="<?php esc_attr_e( 'Search', 'brightpage' ); ?>" name="s" id="s" onfocus="if (this.value == '<?php esc_attr_e( 'Search', 'brightpage' ); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php esc_attr_e( 'Search', 'brightpage' ); ?>';}" />
                                    <input type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Go', 'brightpage' ); ?>" />
                            </div>
</form>

how to active dynamic breadcrumbs in WordPress:
firstly copy below this code and paste where you want to breadcrumbs:

<div class="breadcumbs">
                            <?php if (function_exists('wordpress_breadcrumbs')) wordpress_breadcrumbs(); ?></div>

Next you copy below this code and paste function.php:

<?php
function wordpress_breadcrumbs() {

  $delimiter = '&raquo;';
  $name = 'Home'; //text for the 'Home' link
  $currentBefore = '<span class="current">';
  $currentAfter = '</span>';

  if ( !is_home() && !is_front_page() || is_paged() ) {

    echo '<div id="crumbs">';

    global $post;
    $home = get_bloginfo('url');
    echo '<a href="' . $home . '">' . $name . '</a> ' . $delimiter . ' ';

    if ( is_category() ) {
      global $wp_query;
      $cat_obj = $wp_query->get_queried_object();
      $thisCat = $cat_obj->term_id;
      $thisCat = get_category($thisCat);
      $parentCat = get_category($thisCat->parent);
      if ($thisCat->parent != 0) echo(get_category_parents($parentCat, TRUE, ' ' . $delimiter . ' '));
      echo $currentBefore . 'Archive by category &#39;';
      single_cat_title();
      echo '&#39;' . $currentAfter;

    } elseif ( is_day() ) {
      echo '<a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> ' . $delimiter . ' ';
      echo '<a href="' . get_month_link(get_the_time('Y'),get_the_time('m')) . '">' . get_the_time('F') . '</a> ' . $delimiter . ' ';
      echo $currentBefore . get_the_time('d') . $currentAfter;

    } elseif ( is_month() ) {
      echo '<a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> ' . $delimiter . ' ';
      echo $currentBefore . get_the_time('F') . $currentAfter;

    } elseif ( is_year() ) {
      echo $currentBefore . get_the_time('Y') . $currentAfter;

    } elseif ( is_single() ) {
      $cat = get_the_category(); $cat = $cat[0];
      echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
      echo $currentBefore;
      the_title();
      echo $currentAfter;

    } elseif ( is_page() && !$post->post_parent ) {
      echo $currentBefore;
      the_title();
      echo $currentAfter;

    } elseif ( is_page() && $post->post_parent ) {
      $parent_id  = $post->post_parent;
      $breadcrumbs = array();
      while ($parent_id) {
        $page = get_page($parent_id);
        $breadcrumbs[] = '<a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a>';
        $parent_id  = $page->post_parent;
      }
      $breadcrumbs = array_reverse($breadcrumbs);
      foreach ($breadcrumbs as $crumb) echo $crumb . ' ' . $delimiter . ' ';
      echo $currentBefore;
      the_title();
      echo $currentAfter;

    } elseif ( is_search() ) {
      echo $currentBefore . 'Search results for &#39;' . get_search_query() . '&#39;' . $currentAfter;

    } elseif ( is_tag() ) {
      echo $currentBefore . 'Posts tagged &#39;';
      single_tag_title();
      echo '&#39;' . $currentAfter;

    } elseif ( is_author() ) {
       global $author;
      $userdata = get_userdata($author);
      echo $currentBefore . 'Articles posted by ' . $userdata->display_name . $currentAfter;

    } elseif ( is_404() ) {
      echo $currentBefore . 'Error 404' . $currentAfter;
    }

    if ( get_query_var('paged') ) {
      if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ' (';
      echo __('Page') . ' ' . get_query_var('paged');
      if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ')';
    }

    echo '</div>';

  }
}

?>

How you can active post-loop.php in wordpress:

<?php if(have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>   
        <div class="">.........some content......</div>
                       
    <?php endwhile; ?>   
<?php endif; ?>

Sunday, December 21, 2014

Robi 3.5G and 3G Prepaid and Postpaid Internet Packages

Robi internet package is available any place any any where.You can easily active robi prepaid and post paid internet packages.Robi internet package is very useful and fast speed in any place.
So you can follow below this step that how to active internet package in your Robi operator. 
You can follow some step to active Robi 3.5G and 3G packages:
1.To active Robi (3.5G)  Dial *666*1#
2.To Deactivation Robi (3.5G) Dial *666*2#
3.To check Data balance check  Dial *8444*88#
4. For helping any information just Dial *8444#
Monthly packages of Robi:
1. To active 100MB packages just Dial *8444*30# for 100 Taka per Month.
2. To active 300MB packages  for Prepaid connection. Dial *8444*200# .Cost 150 Taka per month.
3. To active 1GB packages  for Prepaid  and Postpaid connection in robi Sim. Dial *8444*85# .Cost 275 Taka per month.
4. 2GB will be activated on Robi Prepaid and Postpaid connection.just Dial *8444*92# for 399 Taka
 5.  3GB  internet package will be active on your Robi prepaid and postpaid connection just dial *8444*84# for 450 Taka per month.That is uses 24 hours.
6.  4GB  internet package will be active on Robi prepaid and postpaid connection just dial *8444*92# to active 4GB packages to cost 601 Taka per month.That is uses 24 hours.
7. 6GB packages activated on Robi prepaid and postpaid to dail *8444*98# for costing 995 Taka per month
Daily packages of Robi:
1. 4 MB internet packages activated Robi prepaid just bear 2 Taka and dial *8444*4#
2. 5 MB packages will be activated just dial *8444*55# for 6 Taka
3. 25 MB packages active on your Robi Prepaid connection just dial *8444*21# for 10 Taka
4. 71 MB active number =*8444*71# for 26 Taka
5.  200MB=*8444*81# to 55 Taka for daily internet packages.
6. 400 MB internet package just dial *8444*50#  2 days internet package for 50 Taka.
Weekly packages of Robi:
1. 20 MB activated on Robi Prepaid Connection only.Just dial  this number *8444*30# to  for 20 Taka
2. 50 MB internet package  activated on Robi Prepaid  only.  *8444*7# for dialing to a for 30 Taka.
3. 150 MB = Dial *8444*150#  for 50 Taka.
GET Handset Settings:
  • Dial *140*7*1# for internet setting through east menu
  • for wap,mms and internet setting type ALL and send 1227
  • for internet settings type "Internet" and send to 1227
  • For WAP setting type "WAP" just send 1227
  • MMS setting type "MMS " and  send 1227
24/7 Customer Support and Communication Center:
1.Dial 123 Form Robi
2.Dial 158(free ) To Complain
3.Call 01819 400 400 form any operator