Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Since last week i am having same issue could you help me how to resolve the issue

    Thread Starter dileepraja

    (@dileepraja)

    thanks for the replay i need one more option right side of page in wordpress dashboard pages like after featured image section i need one more custom section

    Thread Starter dileepraja

    (@dileepraja)

    Thanks sir @fja3omega feedback

    Hi

    i am getting this notice error every where when i deactivate and activate the plugin

    Notice:sql_huge_itslider_sliders_update in /home/stayb11z/public_html/Test/wp-content/plugins/slider-image/slider.php on line 871

    Thread Starter dileepraja

    (@dileepraja)

    Hi Jo Biesta
    this plugin compatiable wordpress 4.0 version sir

    Thanks

    Thread Starter dileepraja

    (@dileepraja)

    Thank for reply i got the solution

    Thread Starter dileepraja

    (@dileepraja)

    i am working in local which jquery will conflict with bxSlider plugin

    Forum: Fixing WordPress
    In reply to: loop inside loop
    Thread Starter dileepraja

    (@dileepraja)

    hi i created
    Home Page
    subpage1
    subpage2
    subpage3
    Main Page
    MainSubpage1
    MainSubpage2
    MainSubpage3
    i need display the content of subpages in Home page/Main Page but i am writing the loop both the pages displaying same content

    thanks for giving wonderful replay

    Forum: Fixing WordPress
    In reply to: loop inside loop
    Thread Starter dileepraja

    (@dileepraja)

    function shortcode_parent(){
    $args = array(‘post_type’ => ‘vh_accommodation’, ‘orderby’ => ‘title’, ‘order’ => ‘ASC’, ‘post_parent’ => 0, ‘posts_per_page’=>’-1′);
    $the_query1 = new WP_Query($args);
    echo ‘<h2 style=”background: none repeat scroll 0 0 #dba63f; color: #fff; font-family: Open Sans; font-size: 18px; margin-bottom: 15px; margin-top: 0 !important; padding: 10px; border-bottom: 2px solid #c18c25;”>’;
    echo “Rooms Available”;
    echo ‘</h2>’;

    if($the_query1->have_posts()){
    while ($the_query1->have_posts()) {
    $the_query1->the_post();
    global $thisPost;

    $parent_page_title = $post->post_title;
    //$thisPost->post_parent;
    //echo $thisPost;

    $inner_args = array(‘post_type’ => ‘vh_accommodation’, ‘post_parent’ => $post->ID, ‘posts_per_page’ => 5,’orderby’ => ‘title’, ‘order’ => ‘ASC’,);
    $inner_query = new WP_Query($inner_args);

    if($inner_query->have_posts()){
    while ($inner_query->have_posts()) {
    $inner_query->the_post();
    //echo the_title();
    ?>
    <div class=”col-md-6″ style=”padding-left:0;padding-right:0;”>
    <div class=”room_img1 image-panel” style=”margin-bottom:25px;padding:15px;”>
    <?php if(has_post_thumbnail()) ?>
    <?php echo the_post_thumbnail(array(350,250));?>
    <img src=”<?php echo get_template_directory_uri().’/images/6.jpg’?>” style=”width:350px;height:250px;”>

    <p class=”text-center page-heading”><?php the_title();?></p>
    <p><?php the_excerpt();?></p>
    <?php if(get_post_meta(get_the_ID(),’room_size’,true) || get_post_meta(get_the_ID(),’room_bed’,true) || get_post_meta(get_the_ID(),’max_person’,true))?>
    <p class=”room_exrt”><?php if(get_post_meta(get_the_ID(),’max_person’,true)){?><div class=”room_exrt”><span class=”r-title text-center” style=”padding-left:118px;”><?php _e(‘Max person : ‘); ?></span><?php $person=get_post_meta(get_the_ID(),’max_person’,true); echo “”;for($i=1;$i<=$person;$i++){echo “<span class=’icon-male’></span>”;}?></div><?php }?></span>
    <span class=”room_exrt”><?php if(get_post_meta(get_the_ID(),’room_bed’,true)){?><span><span class=”r-title” style=”padding-left:118px;”><?php _e(‘Beds : ‘);?></span><?php echo get_post_meta(get_the_ID(),’room_bed’,true);?></span><?php }?></p>
    <p class=”room_exrt”><?php if(get_post_meta(get_the_ID(),’room_size’,true)){?><span><?php echo get_post_meta(get_the_ID(),’room_size’,true);?></span><?php }?></p>
    <p class=”text-center” style=”padding-top:5px;”><span class=”icon-food”></span> <span class=”icon-desktop”></span> <span class=”icon-glass”></span> <span class=”icon-globe”></span> <span class=”icon-credit-card”></span></p>
    <p class=”text-center”>” style=”color:#D4B66D !important;text-decoration:none;”>Read More</p>

    </br/>

    </div>
    </div>
    <?php
    }
    }
    }
    }wp_reset_postdata();
    }
    add_shortcode(‘accommodation1′,’shortcode_parent’);

    i wrote this codeing but i am running all parent pages all sub pages will be displaying

    Forum: Fixing WordPress
    In reply to: loop inside loop
    Thread Starter dileepraja

    (@dileepraja)

    my own theme

    Forum: Fixing WordPress
    In reply to: plugin
    Thread Starter dileepraja

    (@dileepraja)

    theme also i only generated

    Forum: Fixing WordPress
    In reply to: plugin effect
    Thread Starter dileepraja

    (@dileepraja)

    <?php
    /*
    *Plugin Name:Hs Booking engine
    *Description:Hs Booking Engine
    *Version:1.0
    *Author:Dileep
    *
    */
    
    //define('WP_DEBUG', true);
    
    register_activation_hook(__FILE__,'hs-activate-booking-engine');
    register_deactivation_hook(__FILE__,'hs-deactivation-booking-engine');
    
    add_action('init','hs_load_script');
    
    //loadind scripts and styles
    function hs_load_script()
    {
    
      echo '<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/redmond/jquery-ui.min.css" />';
    
      echo '<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>';
    	echo '<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/jquery-ui.min.js"></script>';
    
      /*
        wp_register_style('mystyle',plugins_url('hs-booking engine/css/jquery.ui.css'));
        wp_enqueue_style('mystyle');
    
        wp_register_script('myscript',plugins_url('hs-booking engine/js/jquery.js',__FILE__),'1.11.1');
        wp_enqueue_script('myscript');
    
        wp_register_script('myplugin', plugins_url('hs-booking engine/js/cjquery-ui.min.js', __FILE__), '1.11.0');
        wp_enqueue_script('minjquery');*/
    
        //wp_register_script('minjquery',plugins_url('js/jquery.js'));
    
       //wp_enqueue_script('myplugin');
      //wp_enqueue_script('jquery');
      //wp_enqueue_script('jquery-ui-datepicker');
    
    	//wp_enqueue_script('custom-jquery-ui-datepicker',get_template_directory_uri().'/js/cjquery-ui.min.js',array(),'1.11.0',false);
    
      //wp_enqueue_script('custom-jquery-ui-datepicker',plugins_url('/js/cjquery-ui.min.js',__FILE__),array(),'1.11.0',false);
      //wp_register_style('custom-css',plugins_url('css/custom.css',__FILE__));
      ?>
    		<script type="text/javascript">
    
    			$(function() {
    
            //alert("Hello");
    
      $( "#sd" ).datepicker({
          dateFormat: "dd/mm/yy",
          //minDate: +1,
          showOn: "both",
          buttonImage: "https://jqueryui.com/resources/demos/datepicker/images/calendar.gif",
          buttonImageOnly: true,
          showAnim:"slide",
          changeMonth:true,
          changeYear:true,
          showButtonPanel:true,
          closeText:"Close",
          beforeShow: function(){
            // this gets today's date
            var theDate = new Date();
            theDate.setDate(<?php echo $checkin ?> + 2);
                    // set min date as 2 days from today
            $(this).datepicker('option','minDate',theDate);
          },
              // When datepicker for start date closes run this function
          onClose: function(){
            // this gets the selected start date
            var theDate = new Date($(this).datepicker('getDate'));
            // this sets "theDate" 1 day forward of start date
            theDate.setDate(theDate.getDate() + 1);
            // set min date for the end date as one day after start date
            $('#ed').datepicker('option','minDate',theDate);
          }
        });
    
        $('#ed').datepicker({
          dateFormat: "dd/mm/yy",
          showOn: "both",
          buttonImage:"https://jqueryui.com/resources/demos/datepicker/images/calendar.gif",
          buttonImageOnly: true,
          showAnim:"slide",
          changeYear:true,
          changeMonth:true,
          beforeShow: function(){
            // this gets today's date
            var theDate = new Date($( "#sd" ).datepicker('getDate'));
            // sets "theDate" 2 days ahead of today
            theDate.setDate(theDate.getDate() + 1);
            // set min date as 2 days from today
            $(this).datepicker('option','minDate',theDate);
          },
          onClose:function(){
    
          }  
    
        }); 
    
        $("#sd").datepicker("setDate", "<?php echo isset($_POST["check_in"]) ? $_POST["check_in"] : '0' ?>");
        $("#ed").datepicker("setDate", "<?php echo isset($_POST["check_in"]) ? $_POST["check_out"] : '1' ?>");
    
    });//.noConflict();
    
    		</script>
    		<style type="text/css">
    
          .cal
    			{
    				font-family: Arial, Helvetica, Sans-serif; font-size:13px;
    				border-radius: 15px;
    				width: 500px;
    				border: 1px solid #ccc;
    				margin-top: 20px;
    			}
    
    			img.ui-datepicker-trigger {
             		 position: relative;
              		left: -23px;
              		top: 3px;
        			}
    
        		.cal form
        		{
        			padding: 20px;
        		}
        		.cal .check-in
        		{
        			display: block;
        			padding: 0;
        			margin: 0;
        		}
    
        		.cal .check-out
        		{
        			display: block;
        			padding: 0;
        			margin: 0;
        		}
    
        		.cal .check-in input[type="text"]
        		{
        			padding: 8px;
        			margin-bottom: 15px
        		}
    
        		.cal .check-out input[type="text"]
        		{
        			padding: 8px;
        			margin-bottom: 15px
        		}
    
        		.cal .check-in label
        		{
        			padding: 15px;
        			width: 115px;
              float: left;
    
        		}
    
        		.cal .check-out label
        		{
        			padding: 15px;
        			width: 115px;
        			float: left;
        		}
    
        		.cal form button
        		{
        			margin: 15px;
        			margin-left: -21px;
        		}
    
            .showshortcode
            {
              position: relative;
              min-width: 255px;
              border: 1px solid #e5e5e5;
              -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04);
              box-shadow: 0 1px 1px rgba(0,0,0,.04);
              background: #fff;
            }
            .showshortcode h3{
              font-size: 14px;
              padding: 8px 12px;
              margin: 0;
              line-height: 1.4;
            }
    
            .showshortcode .inside{
              display: block;
            }
    
    		</style>
    	<?php
    }
    
    add_action('admin_menu','hs_booking_menu');
    
    //plugin menu
    function hs_booking_menu()
    {
    	add_menu_page('Booking Engine','Booking Engine','manage_options','hs-booking-engine','hs_booking_calender',plugins_url('hs-booking engine/images/calendar.gif'),99);
      add_submenu_page('hs-booking-engine','Form','Hs-Form-URL','manage_options','hs-form','hs_form_url');
      //add_submenu_page('hs-booking-engine','Settings','Hs-Settings','manage_options','hs-settings','hs_settings_shortcode');
    
    }
    
    //Provideing Function form url
    function hs_form_url(){
      add_option('formurl','https://www.google.com');
      $result=get_option('formurl');
      //echo $result;
      //update_option('formurl',$_REQUEST['formURL']);
      ?>
    
        <div class="cal">
          <form method="post">
             <p>Please Provide The Form URL</p>
            <label>Form Url:</label></label><input type="text" name="formURL" id="formURL1" value="<?=$result;?>"/>
            <input type="submit" name="submit" value="Save"/>
          </form>
        </div>
    
      <?php
     update_form_url();
     hs_settings_shortcode();
    
    }
    
    //Update form action url
    function update_form_url(){
    
      $result=get_option('formurl');
      if($_REQUEST['submit']){
    
        if($_REQUEST['formURL']){
    
          update_option('formurl',$_REQUEST['formURL']);
          echo "Updated";
          //hs_form_url();
        }
        else{
          echo "Not Updated";
        }
      }
    
    }
    
    //Displaying shortcode
    function hs_settings_shortcode()
    {
    
      ?>
    
          <div class="">
            <h3>Usage</h3>
    
            <div class="cal">
    
              <p class="">Copy & paste this code into a template file to include within your theme.</p>
    
    <pre> <?php echo do_shortcode("[hs_calender_shortcode]"); ?> </pre>
            </div>
              <p style="padding-left:210px">(OR)</p>
            <div class="cal">
              <p>Copy & paste the shortcode directly into any WordPress post or page.</p>
    
    <pre>[hs_calender_shortcode]</pre>
            </div>
          </div>
          <style type="text/css">
            .cal h4{
              padding: 15px;
            }
    
            .cal p{
              padding: 15px;
              color: #2ea2cc;
              font-weight: bold;
            }
            .cal pre{
              padding: 15px;
            }
          </style>  
    
      <?php
    }
    
    //Displaying Calender Widget
    function hs_booking_calender()
    {
      $result=get_option('formurl');
      global $title;
    	?>
    		<div class="cal">
    
    			<form action="<?php echo $result ?>" method="post" id="cal-from">
      				<?php echo $title;?>
    
      				<div class="check-in">
      					<label>From Date:</label><input type="text" id="sd" required/>
      				</div>
    
      				<div class="check-out">
      					<label>To Date:</label><input type="text" id="ed" value="" required/>
      				</div>
               <label>Select Location:</label>
              <select name="country" id="country" onchange="setStates();">
                  <option value="Alleppey">Alleppey</option>
                  <option value="Kumarakom">Kumarakom</option>
                  <option value="Kollam">Kollam</option>
                  <option value="Cochin">Cochin</option>
              </select>
    
              <label>Select Category:</label>
              <select name="state" id="state" onchange="setCities();">
                <option value="">Please select a Country</option>
              </select>
    
              <label>Select Category type:</label>
              <select name="city"  id="city">
                <option value="">Please select a Country</option>
              </select>
    
              <button>SUBMIT</button>
    			</form>
    		</div>
         <script type="text/javascript">
          var states = new Array();
    
          states['Alleppey'] = new Array('House Boat-Deluxe','House Boat-Premium Columbia','House Boat-Luxury','Shikara','Motor Boat','Speed Boat ');
          states['Kumarakom'] = new Array('House Boat-Deluxe','House Boat-Premium','House Boat-Luxury');
          states['Kollam'] = new Array('House Boat-Deluxe');
          states['Cochin']=new Array('House Boat-Deluxe ','Other Boat ');
    
          // City lists
          var cities = new Array();
    
          cities['Alleppey'] = new Array();
          cities['Alleppey']['House Boat-Deluxe'] = new Array('1Bed','2 Bed','3 Bed','5 Bed');
          cities['Alleppey']['House Boat-Premium Columbia'] = new Array('1Bed','2 Bed','3 Bed','5 Bed');
    
          cities['Alleppey']['House Boat-Luxury']          = new Array('1Bed','2 Bed','3 Bed','5 Bed');
          //cities['Alleppey']['Speed Boat']=new Array();
    
          cities['Kumarakom'] = new Array();
          cities['Kumarakom']['House Boat-Deluxe'] = new Array('1Bed','2 Bed','3 Bed','5 Bed');
          cities['Kumarakom']['House Boat-Premium']       = new Array('1Bed','2 Bed','3 Bed','5 Bed');
          cities['Kumarakom']['House Boat-Luxury']         = new Array('1Bed','2 Bed','3 Bed','5 Bed');
    
          cities['Kollam'] = new Array();
          cities['Kollam']['House Boat-Deluxe'] = new Array('Any');
    
          cities['Cochin']=new Array();
          cities['Cochin']['House Boat-Deluxe']    = new Array('Any');
          cities['Cochin']['Other Boat']   = new Array('Any');
    
          function setStates() {
            cntrySel = document.getElementById('country');
            stateList = states[cntrySel.value];
            changeSelect('state', stateList, stateList);
            setCities();
          }
    
          function setCities() {
            cntrySel = document.getElementById('country');
            stateSel = document.getElementById('state');
            cityList = cities[cntrySel.value][stateSel.value];
            changeSelect('city', cityList, cityList);
          }
    
          function changeSelect(fieldID, newOptions, newValues) {
            selectField = document.getElementById(fieldID);
            selectField.options.length = 0;
            for (i=0; i<newOptions.length; i++) {
              selectField.options[selectField.length] = new Option(newOptions[i], newValues[i]);
            }
          }
    
          function addLoadEvent(func) {
            var oldonload = window.onload;
            if (typeof window.onload != 'function') {
              window.onload = func;
            } else {
              window.onload = function() {
                if (oldonload) {
                  oldonload();
                }
                func();
              }
            }
          }
    
          addLoadEvent(function() {
            setStates();
          });
    
        </script>
    	<?php 
    
    }
    
    //Get Shortcode
    function hs_shortcode()
    {
    	ob_start();
    	hs_booking_calender();
    	return ob_get_clean();
    }
    
    add_shortcode('hs_calender_shortcode','hs_shortcode');
    
    add_filter('widget_text', 'do_shortcode');
    
    ?>

    this is my code please tell me validate or not thanx for respondin @ipstenu(Mike Epstein)

    Forum: Fixing WordPress
    In reply to: shortcode
    Thread Starter dileepraja

    (@dileepraja)

    thanx it’s working

    Forum: Fixing WordPress
    In reply to: shortcode
    Thread Starter dileepraja

    (@dileepraja)

    when i am using this shortcode [phone_shortcode] i am not getting mobile number

    Forum: Fixing WordPress
    In reply to: add plugins
    Thread Starter dileepraja

    (@dileepraja)

    i want upload my plugins in codex.www.ads-software.com
    thanx for replay

Viewing 15 replies - 1 through 15 (of 18 total)