Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: Theme Options: Styling messes with website #292617

    Is there a way to revert to the old setting? Apparently, when you select some other color and go back, it resets everything else, and I don’t know how I set the rest.

    in reply to: no layerslider found click here to create one #262575

    I have tried to import the demo sliders. When I click import, the Enfold slideshows don’t show up. Let me make sure that I am doing it right. Where do I find the demo sliders to import?

    What I did was I went to the enfold folder, found the sample slider text document and copied all the gibberish that was there. I pasted it into the import sliders input, but like I said, nothing happened.

    in reply to: no layerslider found click here to create one #261544

    Is there a plugin or something that can replace the advanced slider’s usability? Ways to do the same thing without an advance slider?

    PS: How do you guys build the advanced slider? It’s code I imagine, or a file you place in the database. Why can’t you just give me the necessary files to put in the database?

    Best,
    DBD

    in reply to: no layerslider found click here to create one #260467

    Sorry, but what “data” is lost? If it isn’t in the code- where is it? What are you so sure is gone?

    Best,
    DBD

    in reply to: no layerslider found click here to create one #259504

    Well, I’ve already migrated the website, so it’s too late for that. Are you saying now that it’s too late to fix it, or it’s just completely broken now, and there’es nothing I can do?

    What can I do that will FOR SURE fix the layerslider and not do any more damage to the website.

    Best,
    DBD

    in reply to: no layerslider found click here to create one #258562

    Could you check my code? Could the problem be there? config-layerslider/config.php

    <?php

    if(!function_exists(‘avia_find_layersliders’))
    {
    function avia_find_layersliders($names_only = false)
    {
    // Get WPDB Object
    global $wpdb;

    // Table name
    $table_name = $wpdb->prefix . “layerslider”;

    // Get sliders
    $sliders = $wpdb->get_results( “SELECT * FROM $table_name WHERE flag_hidden = ‘0’ AND flag_deleted = ‘0’ ORDER BY date_c ASC LIMIT 100” );

    if(empty($sliders)) return;

    if($names_only)
    {
    $new = array();
    foreach($sliders as $key => $item)
    {
    if(empty($item->name)) $item->name = __(“(Unnamed Slider)”,”avia_framework”);
    $new[$item->name] = $item->id;
    }

    return $new;
    }

    return $sliders;
    }
    }

    /********************************************************/
    /* Action to import sample slider – modified version */
    /********************************************************/

    if(!function_exists(‘avia_remove_default_import’))
    {
    add_action(‘admin_menu’, ‘avia_remove_default_import’,1);

    function avia_remove_default_import()
    {
    if(isset($_GET[‘page’]) && $_GET[‘page’] == ‘layerslider’ && isset($_GET[‘action’]) && $_GET[‘action’] == ‘import_sample’)
    {
    remove_action( ‘admin_init’ , ‘layerslider_import_sample_slider’);
    add_action( ‘admin_init’ , ‘avia_import_sample_slider’);
    }
    }
    }

    if(!function_exists(‘avia_import_sample_slider’))
    {
    function avia_import_sample_slider() {

    // Base64 encoded, serialized slider export code
    $path = “avia-samples/”;
    $sample_file = “sample_sliders.txt”;
    $sample_slider = json_decode(base64_decode(file_get_contents(dirname(__FILE__).”/LayerSlider/{$path}{$sample_file}”)), true);

    //echo”

    ";
    		//print_r(base64_encode(str_replace('avia-samples','sampleslider', base64_decode(file_get_contents(dirname(__FILE__).'/LayerSlider/sampleslider/sample_sliders2.txt'))))) ;
    		//echo"
    ";
    		//die();
    		
    
    		// Iterate over the sliders
    		foreach($sample_slider as $sliderkey => $slider) {
    	
    			// Iterate over the layers
    			foreach($sample_slider[$sliderkey]['layers'] as $layerkey => $layer) {
    	
    				// Change background images if any
    				if(!empty($sample_slider[$sliderkey]['layers'][$layerkey]['properties']['background'])) {
    					$sample_slider[$sliderkey]['layers'][$layerkey]['properties']['background'] = $GLOBALS['lsPluginPath'].$path.basename($layer['properties']['background']);
    				}
    	
    				// Change thumbnail images if any
    				if(!empty($sample_slider[$sliderkey]['layers'][$layerkey]['properties']['thumbnail'])) {
    					$sample_slider[$sliderkey]['layers'][$layerkey]['properties']['thumbnail'] = $GLOBALS['lsPluginPath'].$path.basename($layer['properties']['thumbnail']);
    				}
    	
    				// Iterate over the sublayers
    				if(isset($layer['sublayers']) && !empty($layer['sublayers'])) {
    					foreach($layer['sublayers'] as $sublayerkey => $sublayer) {
    		
    						// Only IMG sublayers
    						if($sublayer['type'] == 'img') {
    							$sample_slider[$sliderkey]['layers'][$layerkey]['sublayers'][$sublayerkey]['image'] = $GLOBALS['lsPluginPath'].$path.basename($sublayer['image']);
    						}
    					}
    				}
    			}
    		}
    	
    		// Get WPDB Object
    		global $wpdb;
    	
    		// Table name
    		$table_name = $wpdb->prefix . "layerslider";
    	
    		// Append duplicate
    		foreach($sample_slider as $key => $val) {
    	
    			// Insert the duplicate
    			$wpdb->query(
    				$wpdb->prepare("INSERT INTO $table_name
    									(name, data, date_c, date_m)
    								VALUES (%s, %s, %d, %d)",
    								$val['properties']['title'],
    								json_encode($val),
    								time(),
    								time()
    				)
    			);
    		}
    	
    	}
    }
    
    
    
    
    
    
    
    /**************************/
    /* Include LayerSlider WP */
    /**************************/
    if(is_admin())
    {	
    	add_action('init', 'avia_include_layerslider' , 45 );
    }
    else
    {	
    	add_action('wp', 'avia_include_layerslider' , 45 );
    }
    
    function avia_include_layerslider()
    {	
    	if(!is_admin() && !post_has_layerslider()) return;
    	
    	// Path for LayerSlider WP main PHP file
    	$layerslider = get_template_directory() . '/config-layerslider/LayerSlider/layerslider.php';
    	$themeNice	 = avia_backend_safe_string(THEMENAME);
    
    	// Check if the file is available and the user didnt activate the layerslide plugin to prevent warnings
    	if(file_exists($layerslider)) 
    	{
    		if(function_exists('layerslider')) //layerslider plugin is active
    		{
    			if(get_option("{$themeNice}_layerslider_activated", '0') == '0') 
    			{
    		        //import sample sliders
    		 		avia_import_sample_slider();
    		 		
    		        // Save a flag that it is activated, so this won't run again
    		        update_option("{$themeNice}_layerslider_activated", '1');
    		    }
    		}
    		else //not active, use theme version instead
    		{
    		    // Include the file
    		    include $layerslider;
    		    
    		    $GLOBALS['lsPluginPath'] 	= get_template_directory_uri() . '/config-layerslider/LayerSlider/';
    		    $GLOBALS['lsAutoUpdateBox'] = false;
    		 
    		    // Activate the plugin if necessary
    		    if(get_option("{$themeNice}_layerslider_activated", '0') == '0') {
    		 
    		        // Run activation script
    		        layerslider_activation_scripts();
    		        
    		        //import sample sliders
    		 		avia_import_sample_slider();
    		 		
    		        // Save a flag that it is activated, so this won't run again
    		        update_option("{$themeNice}_layerslider_activated", '1');
    		    }
    	    }
    	}
    }
    
    
    in reply to: no layerslider found click here to create one #255900

    We moved it to a new hosting site. I’m a little fuzzy on it. But anyways, I don’t know what “incorrect in the database” means or how to fix it. I found a file in the enfold download “sample sliders” copied it, and put it into the import slider part of the layerslider. Then I saved it, but no new sliders were provided – I think that my advanced slider feature is totally unresponsive. I have made new layers, with new slides, and saved and saved again, only to have them disappear. I am not sure if this is supposed to be this un-user friendly, or if I’m just the one guy stuck with the glitch.

    Thanks,
    DBD

    in reply to: Portfolio Menu #247121

    I have already done all of this.

    In the portfolio grid menu:

    I have selected several portfolio categories and subcategories, all of which have pictures associated with them. (Maybe I need more pictures? I don’t know.)

    4 columns, 9 post header, Title and Excerpt, and Sortable IS checked to yes.

    Still, all I get is “All”.

    Any ideas?

    DBD

Viewing 8 posts - 1 through 8 (of 8 total)