Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • no the check boxes work fine. just the inputs that a text boxes werent getting passed properly .
    I’ll post the code we did below ??
    Index.php Lines 83 to 87

    $fade = get_option('fade_key');
    $delay = get_option('delay_key');
    $title = get_option('title_key');
    $overlay = get_option('overlay_key');
    $arrows = get_option('arrows');

    Options.php lines 107 to 194

    <?php
        }
    
        public function check_fade($input){
    
            if(get_option('fade_key') === false){
    		add_option('fade_key',  $input['Fade']);
    	    }
    	return $input['Fade'];
        }
    
      public function check_delay($input){
    
         if(get_option('delay_key') === false){
    		add_option('delay_key',  $input['Delay']);
    	    }
    	return $input['Delay'];	  }
    
    public function check_overlay($input){ 
    
     if(get_option('overlay_key') === false){
    		add_option('overlay_key',  $input['Overlay']);
    	    }
    	return $input['Overlay'];	 }
    
      public function check_title($input){ 
    
    	    if(get_option('title_key') === false){
    		add_option('title_key',  $input['Title']);
    	    }
    	return $input['Title'];
    	  }
    
       public function check_arrows($input){
    
       if( isset($input['Arrows'])){$Arrows = $input['Arrows']; 	}
    
       if ( !isset( $Arrows['arrows'] ) ) {
         $Arrows = 0;
         add_option('arrows', $Arrows);
       } 
    
        if ( $input['Arrows'] == 1 ) {
            $Arrows = 1;
          update_option('arrows', $Arrows);
        } else {
            $Arrows = 0;
          update_option('arrows', $Arrows);
        }
       return $Arrows;
    }
    
       public function check_autoplay($input){
    
        if( isset($input['Autoplay'])){$Autoplay = $input['Autoplay']; 	}
    
        if ( $input['Autoplay'] == 1 ) {
            $Autoplay = 1;
          update_option('autoplay', $Autoplay);
        } else {
            $Autoplay = 0;
          update_option('autoplay', $Autoplay);
        }
       return $Autoplay;
    }
    
       public function check_global($input){
    
        if( isset($input['Global'])){$Global = $input['Global']; 	}
    
        if ( $input['Global'] == 1 ) {
            $Global = 1;
          update_option('global', $Global);
        } else {
            $Global = 0;
          update_option('global', $Global);
        }
       return $Global;
    }
    
        public function check_id($input){
    
         if(get_option('id_key') === false){
    		add_option('id_key',  $input['ID']);
    	    }
    	return $input['ID'];
        }

    This is a temporary work around that will work, i’ll try and find out a way for you to check the strings before theyre submitted (probably a isnumeric()tag for the numbers) the overlay url doesnt need to be checked because if it isnt correct it wont work anyway

    your checking process is a bit different me and a mate have hacked around the coding to make it work …. quite simple but my advice to you is to go back to basics and check your _keys … particularly lines 82-86 in index.php and then the functions in options any of the check_ functions need a revamp for a quick hack around to those that want to use it now (although you can just modify the shortcode yourself) you can use this code (changing it for each function thats already there)where id is replace them with the name of function at present…. ie fade delay overlay etc etc ….

    if(get_option('id_key') === false){
    		add_option('id_key',  $input['ID']);
    	    }
    	return $input['ID'];

    good luck !

    if updating the plugin doesnt work then update to 3.5.2 … i was having cross browser problems until i did this now the plugin works like it should.

    On Line 137 replace it with $this->settings = new add_from_server_settings($this); (removing the & ) this will make it compatible with PHP 5.4 and get rid of the error and works wonders like previously suggested.

Viewing 4 replies - 1 through 4 (of 4 total)