Forum Replies Created

Viewing 15 replies - 1 through 15 (of 69 total)
  • Thread Starter 3dolab

    (@3dolab)

    Thread Starter 3dolab

    (@3dolab)

    errr… sorry I later realized that the function sf_get_postmeta_values was meant for completely different purposes

    not being able to know a Types plugin native alternative
    whereas the type of the field could be more simply checked with _wpcf_is_checkboxes_field( $m );

    I changed the applied filters to

    $meta = apply_filters( 'sf_post_meta_key_values', $meta, get_the_ID(), $m );
    $meta = maybe_unserialize($meta);

    and added them in the init (e.g. includes\types-checkboxes.php)
    add_filter( 'sf_post_meta_key_values', array( $this, 'sf_types_postmeta_values_of_checkboxes' ), 10, 4 );

    and finally the new function

    function sf_types_postmeta_values_of_checkboxes( $return, $object_id, $meta_key, $single=false ){
    
    	if( !preg_match( '^wpcf^', $meta_key ) )
    		return null;
    	//if ( !_wpcf_is_checkboxes_field( $meta_key ) )
    	$keycheckbox = array( 'add_this' => false, 'meta_key' => $m );
    	$checkbox = sf_types_is_checkbox( $keycheckbox );
    	if( $checkbox['add_this'] )
    		return null;
    
    	$meta_cache = wp_cache_get($object_id, 'post_meta');
    
    	if ( !$meta_cache ) {
    		$meta_cache = update_meta_cache( $meta_type, array( $object_id ) );
    		$meta_cache = $meta_cache[$object_id];
    	}
    	if ( ! $meta_key ) {
    		$return = $meta_cache;
    	}elseif( isset($meta_cache[$meta_key]) ) {
    		if ( $single )
    			$return = maybe_unserialize( $meta_cache[$meta_key][0] );
    		else
    			$return = array_map('maybe_unserialize', $meta_cache[$meta_key]);
    	}elseif ($single)
    		$return = '';
    	else
    		$return = array();
    
    	if(is_array($return) && !empty($return)) {
    		$types = get_option( 'wpcf-fields' );
    		$choices = array();
    		//echo '<pre>'; print_r($types); echo '</pre>';
    		foreach( $types as $type ){
    			if( isset( $type['data']['options'] ) && isset( $type['meta_key'] ) && $type['meta_key'] == $meta_key ){
    				foreach( $type['data']['options'] as $index => $option ){
    					if(isset($return[$index]) && !empty($return[$index]))
    						if( isset( $type['type'] )&& $type['type'] == 'checkboxes' )
    							if(isset($option['set_value']) && in_array($option['set_value'], $return[$index]) && !in_array($option['set_value'], array_keys($choices)))
    								$choices[$option['set_value']] = $option['title'];
    						elseif( isset( $type['type'] )&& $type['type'] == 'select' )
    							if(isset($option['value']) && in_array($option['value'], $return[$index]) && !in_array($option['value'], array_keys($choices)))
    								$choices[$option['value']] = $option['title'];
    				}
    			}
    		}
    		if( count( $choices ) > 0 ){
    			sort($choices);
    			$choices = array_unique(array_filter($choices));
    			//print_r($choices);
    			if ($single)
    				return maybe_serialize($choices);
    				//return '<ul><li>'.implode('</li><li>', $choices).'</li></ul>';
    			else
    				return $choices;
    		}
    	}
    	return $return;
    }

    however, I had to further fork the original code to support manipulating output with a filter at the end of the sf_do_search function in ajax.php
    $data = apply_filters('sf-get-search-data',$data,$args);

    it would be extremely useful in a possible future update, in addition to the already existing and useful previous query $args filtering, to have the chance to filter the output data array as well

    Thread Starter 3dolab

    (@3dolab)

    replaced in ajax.php line 259

    if( isset( $field['meta'] ) && is_array( $field['meta'] ) ):
    	foreach( $field['meta'] as $m ):
    		$meta = get_post_meta( get_the_ID(), $m, true );
    		//$meta = get_postmeta_values ($m);
    		$return = array( 'add_this' => false, 'meta_key' => $m );
    		$check = sf_types_is_checkbox( $return );
    		if( $check['add_this'] ):
    			$meta = apply_filters( 'sf_get_postmeta_values', $meta );
    		endif;
    		if( is_array( $meta ) ) :
    			$fullvalue = '';
    			// Need a safer check against wpcf groups
    			foreach($meta as $mkey => $mvalue)
    				$fullvalue .= $mvalue[0];
    			$template_single = preg_replace( '^#meta_' . preg_quote( $m ) . '#^', $fullvalue, $template_single );
    		else :
    			$template_single = preg_replace( '^#meta_' . preg_quote( $m ) . '#^', $meta, $template_single );
    		endif;
    	endforeach;
    endif;

    now it seems to work ??

    Plugin Author 3dolab

    (@3dolab)

    well, an almost full customization may result in a lot of options but it should already work as it is, out of the box in standard themes

    about the shortcode, I can confirm that it used to work even by do_shortcode in earlier versions too, anyway you can always open a support topic, ask your questions and provide a link if possible…

    have you ever tried more recent versions? I mean above all after 1.7 since it is a major update with a completely rewritten interface, a new logic and several bugfixes as well!

    3dolab

    (@3dolab)

    just put
    if(!empty($widget_options))
    at line 107 in collapscat.php

    To me, it happened to be the opposite: I had to replace the value of the 5th parameter of the first (default) call of the append_minify_string function, at line 849, from true to false.
    The following “rtl” variation doesn’t matter to me and should already have been right.

    Apparently, the append_minify_string function at line 684 does check against this parent parameter along with input_maxfiles.

    FB Page is client owned not mine, anyway it doesn’t matter that much as for me as said in the other thread the problem is solved simply by adding another link string replacement at line 233:
    $desc_feed = str_replace('href="https://www.facebook.com', 'href="', $desc_feed);

    Thread Starter 3dolab

    (@3dolab)

    My question arises from that given scenario: account association across different providers is accomplished through e-mail matching.
    So Twitter-like accounts could be linked only if forcing address insertion.
    If you ever login at least one time with a social provider, being your profile registered with the same email, you should see the “Linked Accounts” additional tab in your profile page.

    Obviously, this means that there is no way to link profiles with different email addresses, that’s why another plugin (unfortunately discontinued, but anyway less open) like Social Connect used to pair accounts in another “layer” (using usermeta if I remember correctly), and matching email only as a first automatic step of a fully managed selection process.

    Developers have done a great work, but beyond the successful experiments and implementation of a global auth framework, the lack of such a feature would still prevent WSL to be fully usable and operational.

    As I pointed out when opening this thread, it seems that there is already some underlying code and options not always visible in the admin UI… I hope we could soon see this crucial feature as one of the updates available in the “cominq release WSL 2.0”

    Plugin Author 3dolab

    (@3dolab)

    it seems to be an issue related only to some CSS conflict, as given the screenshots I would bet the caption box is overlapping the image frame…
    however, give a try to the current 1.7 version

    Plugin Author 3dolab

    (@3dolab)

    If you are referring to the jQuery mode with Nivo Slider, once it used to embed navigation arrow controls within the source script.

    Now that the Combo Slider plugin is updated to the latest Nivo Slider (version 3.2), additional code has been inserted when initializing the slideshow javascript in order to achieve the same behaviour.
    (see directionNavHide in the Nivo Slider support forums)

    So you could edit the afterLoad lines in combo-slideshow-plugin.php and in views/default/gallery.php and detect hovering on the L/R sides as suggested here.

    If you like it, you could also add a fade-in effect instead of sudden appearing of arrows (tips here), but I hope to manage to implement this in a forthcoming release

    well, WPEC has its own term drag&drop sorting system in the Product Categories administration screen

    same here…
    but if you look into the terms db table, the values of the term_order column actually are successfully altered by the plugin.

    so, something is definitely happening on the WPEC side, as product categories are still ordered by default not only on the front-end, but even in the Taxonomy Order admin screen!

    Plugin Author 3dolab

    (@3dolab)

    You could implement it by firing the click event according to a cookie value, all with javascript in your theme’s home.php, front-page.php or index.php files.

    the MooTools framework provides useful commands and shortcuts also for cookie management.

    Plugin Author 3dolab

    (@3dolab)

    It clearly sounds like conflicting javascript errors. I’m pretty sure you were trying to run some jQuery based scripts elsewhere. Any of them will conflict with this plugin, almost obviously, since it’s based on a different javascript framework: MooTools, as clearly stated in the documentation.
    Problems occur also when loading different MooTools versions across the site, or when other plugins do not properly load (enqueue) the core scripts.

    You should probably go with other jQuery based plugins such as the excellent Fancybox.

    However, you could still ask for support in a more effective way, e.g.

    • providing links to a (test) site
    • pasting the HTML output (and browser console errors)
    • listing any other running plugins
    • taking a look to working instances before blaming
Viewing 15 replies - 1 through 15 (of 69 total)