Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter nativa1

    (@nativa1)

    Solved, delete all demo advertisements, and add news advertisements

    Fix CSS

    Comment line 24 in skin.php

    // if (get_magic_quotes_gpc()) $str = stripslashes($str);

    Working fine in php 8.0 and php 8.1

    I paste here a few lines

    dcwp_jquery_accordion.php

    
    <?php 
    
    global $registered_skins;
    
    class dc_jqaccordion {
    
    	function __construct(){
    		global $registered_skins;
    	
    		if(!is_admin()){
    		
    			// Header styles
    			add_action( 'init', array('dc_jqaccordion', 'header') );
    			//call_user_func_array('init', array($this, 'header') );
    			
    		    //add_action( 'init', 'dc_jqaccordion', 'header' );
    			
    			// Shortcodes
    			add_shortcode( 'dcwp-jquery-accordion', 'dcwp_dc_jqaccordion_shortcode' );
    		}
    		add_action( 'wp_footer', array('dc_jqaccordion', 'footer') );
    		//call_user_func_array('wp_footer', array($this, 'footer') );
    		
    		$registered_skins = array();
    	}
        
    	
    	public static function header(){
    		
    		// Scripts
    		wp_enqueue_script( 'jquery' );
    		wp_enqueue_script( 'jqueryhoverintent', dc_jqaccordion::get_plugin_directory() . '/js/jquery.hoverIntent.minified.js', array('jquery') );
    		wp_enqueue_script( 'jquerycookie', dc_jqaccordion::get_plugin_directory() . '/js/jquery.cookie.js', array('jquery') );
    		wp_enqueue_script( 'dcjqaccordion', dc_jqaccordion::get_plugin_directory() . '/js/jquery.dcjqaccordion.2.9.js', array('jquery') );
    	}
    	
    	public static function footer(){
    		//echo "\n\t";
    	}
    	
    	public static function options(){}
    
    	public static function get_plugin_directory(){
    		return WP_PLUGIN_URL . '/jquery-vertical-accordion-menu';	
    	}
    
    };
    
    // Include the widget
    include_once('dcwp_jquery_accordion_widget.php');
    
    // Initialize the plugin.
    $dcjqaccordion = new dc_jqaccordion();
    
    // Register the widget
    //add_action('widgets_init', create_function('', 'return register_widget("dc_jqaccordion_widget");'));
    
    //add_action( 'widgets_init', function() { register_widget( "dc_jqaccordion_widget" ); } );
    
    function your_function_name_to_register() {
    	return register_widget("dc_jqaccordion_widget");
    }
    add_action( 'widgets_init', 'your_function_name_to_register', 10, 1);
    
    /*
    function load_widget() {
        register_widget( 'dc_jqaccordion_widget' );
    }
    add_action( 'widgets_init', __NAMESPACE__ . '\\load_widget' );
    */
    
    /**
    * Create a menu shortcode
    */
    

    dcwp_jquery_accordion_widget.php

    <?php 
    
    class dc_jqaccordion_widget extends WP_Widget {
        /** constructor */
    	function __construct() {
        //function dc_jqaccordion_widget() {
    	
    		$name =			'jQuery Accordion Menu';
    		$desc = 		'Vertical Accordion From Custom Menus';
    		$id_base = 		'dc_jqaccordion_widget';
    		$widget_base =  'dc_jqaccordion_widget_item';
    		$css_class = 	'';
    		$alt_option = 	'widget_dcjq_accordion_navigation'; 
    
    		$widget_ops = array(
    			'classname' => $css_class,
    			'description' => __( $desc, 'dcjq-accordion' ),
    		);
    		parent::WP_Widget( 'nav_menu', __('Custom Menu'), $widget_ops );
    		//parent::__construct( 'nav_menu', __('Custom Menu'), $widget_ops );
    
    		$this->WP_Widget($id_base, __($name, 'dcjqaccordion'), $widget_ops);
    		$this->alt_option_name = $alt_option;
    		
    		add_action( 'wp_head', array(&$this, 'styles'), 10, 1 );	
    		add_action( 'wp_footer', array(&$this, 'footer'), 10, 1 );	
    
    		$this->defaults = array(
    			'title' => '',
    			'event' => 'click',
    			'hoverDelay' => '300',
    			'menuClose' => 'on',
    			'autoClose' => 'on',
    			'saveState' => 'on',
    			'autoExpand' => 'off',
    			'showCount' => 'off',
    			'speed' => 'slow',
    			'disableLink' => 'on',
    			'classDisable' => 'on',
    			'classMenu' => '',
    			'skin' => 'demo.css'
    		);
        }
    

    Solved !!

    in dcwp_jquery_accordion.php add public static to funtions

    public static function header(){
    		
    		// Scripts
    		wp_enqueue_script( 'jquery' );
    		wp_enqueue_script( 'jqueryhoverintent', dc_jqaccordion::get_plugin_directory() . '/js/jquery.hoverIntent.minified.js', array('jquery') );
    		wp_enqueue_script( 'jquerycookie', dc_jqaccordion::get_plugin_directory() . '/js/jquery.cookie.js', array('jquery') );
    		wp_enqueue_script( 'dcjqaccordion', dc_jqaccordion::get_plugin_directory() . '/js/jquery.dcjqaccordion.2.9.js', array('jquery') );
    	}
    	
    	public static function footer(){
    		//echo "\n\t";
    	}
    	
    	public static function options(){}
    
    	public static function get_plugin_directory(){
    		return WP_PLUGIN_URL . '/jquery-vertical-accordion-menu';	
    	}
    Thread Starter nativa1

    (@nativa1)

    The spinner in the box grey,
    Hide the spinner and box grey
    How to hide the spinner and box gray?

    Thread Starter nativa1

    (@nativa1)

    working fine in version Versión 7.1.2
    not working in Version 7.2.0

    /*
    multiple  directorist/templates/search-form/fields/category.php
    add in_cat[] y multiple al select
    
    directorist/includes/helper-functions.php linea 7494 
    para select multiple
    
    if(is_array($term_id)){
     $selected = in_array($term->term_id, $term_id) ? "selected" : '';
     }else{
     $selected = ($term_id == $term->term_id) ? "selected" : '';
    }
    //$selected = ($term_id == $term->term_id) ? "selected" : '';
    
    */
    
    add_filter( 'atbdp_listing_search_query_argument', function( $args ){
    
    if ( ! empty( $_GET['in_cat'] ) ) {
    	
    	$tax_queries = array();
    		
    	$ids = $_GET['in_cat'];
    	$categorias = array_map( 'intval', $ids );
    		
    	$tax_queries[] =  array(
                    'relation' => 'OR',
                    'post_type' => 'at_biz_dir',
    		        'orderby' => 'title',
    			    'order'   => $sort_ORD,
                    'tax_query' => array(
                        'taxonomy'  => ATBDP_CATEGORY,
                        'field'  => 'term_id',
                        //'terms'  => array(3,7),
    		    'terms'  => $categorias,
                        'operator'=> 'IN'
                      )); 
    		
    		
    		
    		if ( count( $tax_queries ) ) {
    			$args['tax_query'] = array_merge( array( 'relation' => 'AND' ), $tax_queries );
    		}
    		
    		$args['paged'] = max( get_query_var( 'paged' ), 1 );
    	}
    	
    	//echo get_query_var( 'paged' );
    	
    	
    	
    	//$args = $args_search_posts_meta;
    	
    	return $args;
    	
    });
    Thread Starter nativa1

    (@nativa1)

    working fine, is other problem

    Thread Starter nativa1

    (@nativa1)

    yes, working fine if add preview image on single listing, but default image not working

    Thread Starter nativa1

    (@nativa1)

    Show shows gray box in single page, preview image ad

    image dafault in grid and list view working fine

    Yes, import listing, but not working if add ad too

    Thread Starter nativa1

    (@nativa1)

    Maybe you have fixed the checkboxes problem, but the problem still exists when there are many different fields.

    Send some empty data and don’t save it.

    Thread Starter nativa1

    (@nativa1)

    Yes I do, not working,
    does not change to the language of loco translate

    Thread Starter nativa1

    (@nativa1)

    No, is 71 dpi

    if is one page working fine

    the problem is with two page a large invoice

    Thread Starter nativa1

    (@nativa1)

    i can´t not see errors
    no show errors

    this is my configuration

    wp-config.php
    define( ‘WP_MEMORY_LIMIT’, ‘256M’ );

    php.ini
    max_execution_time = 180

    Thread Starter nativa1

    (@nativa1)

    Thank you very much for the clue,
    I full solved !!

    
    // line 460 of woocommerce.php
    $ppom_meta = ppom_make_meta_data( $cart_items, $context="cart" );
    	foreach( $ppom_meta as $key => $meta ) {		
    		//echo $item->get_id();
    		//echo $key." ".$meta['value'];
    		if($key=='select_number'){
    			$total_option_price = $total_option_price * $meta['value'];
    		}
    		//$item->update_meta_data($key, $meta['value']);
    	}
    
    $cart_line_total = ($ppom_item_org_price + $total_option_price + $ppom_quantities_price - $ppom_total_discount);
    	
    $cart_line_total=apply_filters('ppom_cart_line_total', $cart_line_total, $cart_items, $values);
    Thread Starter nativa1

    (@nativa1)

    Please, i need send to cart the new total update

    What is the variable?
    Where is the variable?
    Where parsed?

    and I program it

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