Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • in reply to: A suggestion for 1.0.9 and 2.0 #10671
    courtens
    Participant

    Thanks for your help!

    I was basing my file and structure on the demo. I guess this is a no-no.

    in reply to: how to validate numbers inside type text or type tel #10646
    courtens
    Participant

    Thank you. That worked (after removing the extra comma.)

    in reply to: how to validate numbers inside type text or type tel #10640
    courtens
    Participant

    I got my function, but how would I implement this? (sorry, I am new to php and piklist)

    function CheckIfStrOnlyNumbers($teststring,$needsMatch) {
        if (ctype_digit($teststring) and $needsMatch = strlen($needsMatch)) {
            return true;
        } else { 
            return false;
        }
    };
    
    echo CheckIfStrOnlyNumbers('103',3);
    in reply to: save taxonomy name as user id custom name #10632
    courtens
    Participant

    did you get it to work? If yes — what did your do?

    in reply to: how best to intercept user registration on submit? #10631
    courtens
    Participant

    I am trying to do something similar. And I am not sure if it is a good idea to misuse the “Demo User Types” example for that.

    Did you get it to work? And what did you end up doing?

    in reply to: anonymize data stored #10626
    courtens
    Participant

    Yes. For instance, encrypting data to store the data, and decrypting to display it on the HTML page — with lets way any other stored key.

    in reply to: update to 1.0.1 dumped my code #9247
    courtens
    Participant

    Thank you @Steve. I did find a backup of the code. I got it back in place and working again.

    But now I am worried that I have the code in a wrong place. (I only use it inside the administration section of WP – would I still need to move it to another folder?)

    For right now the code is inside a folder named “blogs” in wp-content\plugins\piklist\add-ons (sitting right next to “piklist-demos”)

    blogs.php is:

    /*
    Plugin Name: Blogs
    Text Domain: blogs
    Description: Used to control Taxonomies for Blogs.
    Text Domain: blogs
    Domain Path: /blogs
    */

    To me Step 1 in Register your plugin with Piklist is not clearly specifying where to create the folder.

    Thanks again for helping!

    in reply to: admin-workflow.php on line 82 #9142
    courtens
    Participant

    I am getting the same error.

    PHP Version 7.0.6 on Windows NT VM 10.0 build 17134 (Windows 10) AMD64

    [24-Jul-2018 02:46:29 UTC] PHP Warning: Invalid argument supplied for foreach() in D:\www\...\wp-content\plugins\piklist\parts\shared\admin-workflow.php on line 82

    in reply to: media upload / file system / membership #9124
    courtens
    Participant

    one more wp file manager.

    in reply to: media upload / file system / membership #9123
    courtens
    Participant

    It looks like real media library together with physical custom upload folder would to the trick. Did anyone tried this plugin out before?

    in reply to: Double Underscore "__" in Piklist #9089
    courtens
    Participant
    This reply has been marked as private.
    in reply to: Double Underscore "__" in Piklist #9088
    courtens
    Participant

    I just got it working…

    	piklist('field', array(
    		'type' => 'select'
    		,'scope' => 'taxonomy'
    		,'field' => 'ff_language'
    		,'choices' => array(
    			'' => 'Choose Term'
    		)
    		+ piklist(get_terms(array(
    			'taxonomy' => 'ff_language'
    			,'hide_empty' => false
    			))
    			,array(
    				'term_id'
    				,'name'
    			)
    		)
    		,'columns' => 3
    	));

    Thank you for all the support!

    in reply to: Double Underscore "__" in Piklist #9087
    courtens
    Participant

    Somehow I just can’t get control over setting taxonomies to my defined “blog” plug-in (custom post type.)

    This doc page helps, but I am missing how-to steps for these lines:

    Create a function with your Taxonomy parameters. (example is missing)
    Hook it to the piklist_taxonomies filter. (example is missing)

    This is what I have for my plug-in blog.php file:

    <?php
    /*
    Plugin Name: Blogs
    Text Domain: blogs
    Description: Used to control Taxonomies for Blogs.
    Text Domain: blogs
    Domain Path: /blogs
    */  
       
    add_filter('piklist_taxonomies', 'blog_taxonomies');
    	function blog_taxonomies($taxonomies)
    	{
    		$taxonomies[] = array(
    			'object_type' => 'ff_language'
    			,'name' => 'ff_language'
    			,'configuration' => array(
    				'hierarchical' => true
    				,'labels' => piklist('taxonomy_labels', 'Language Selected')
    				,'show_ui' => true
    				,'query_var' => true
    				,'rewrite' => array(
    					'slug' => 'blog-type'
    				)
    				,'show_admin_column' => true
    				,'list_table_filter' => true
    			)
    		);
    
    		return $taxonomies;
    	} 

    and here is my /meta-box somefile.php file:

    <?php
    /*
    Title: Blog/Post Type
    Post Type: blog
    Order: 0
    */
    
     piklist('field', array(
        'type' => 'group'
        ,'field' => 'gr'
        ,'list' => false
        ,'fields' => array(	
          array(
            'type' => 'select'
    		,'scope' => 'taxonomy'
            ,'field' => 'ff_language'
            ,'choices' => piklist(
    			  get_terms('ff_language', array(
    				'hide_empty' => false
    			  ))
    			  ,array(
    				'term_id'
    				,'name'
    			  )
    			)
            ,'columns' => 4
          ), 
          array(
            'type' => 'select'
    		,'scope' => 'taxonomy'
            ,'field' => 'ff_nav'
            ,'value' => 'other'
            ,'choices' => array(
    			'8' => '8mm'
    			,'16' => '16mm'
    			,'slides' => 'slide'
            )
            ,'columns' => 4
          )
          ,array(
            'type' => 'select'
    		,'scope' => 'taxonomy'
            ,'field' => 'ff_domain'
            ,'value' => 'any'
            ,'choices' => array(
    			'any' => 'any'
    			,'com' => 'only .com'
    			,'ch' => 'only .ch'
            )
            ,'columns' => 4
          )
      ));

    at this point only the first select “pretends” to be linked to a taxonomy; however, making changes to the select is not sticking if clicking on “Save Draft” or “Publish.”

    in reply to: Double Underscore "__" in Piklist #9085
    courtens
    Participant

    Hi Steve. Thank you so much for all the awesome support. As you may have noticed — through my recent activity on different fronts — I am working on figuring out how to best structure my blog data for a multi language, multi domain blog-add-on to an existing asp website. So far so good, I got my posts lining up: FilmFix Blog. I also got now my Piklist “check box” working.

    <?php
    /*
    Title: Blog/Post Type
    Post Type: blog
    Order: 0
    */
    
     piklist('field', array(
        'type' => 'group'
        ,'field' => 'blog_list'
        ,'label' => __('', 'blog')
        ,'list' => false
        ,'fields' => array(
          array(
            'type' => 'select'
            ,'field' => 'select_com'
            ,'value' => 'com'
            ,'choices' => array(
    			'com' => __('com', 'blog')
    			,'ch' => __('ch', 'blog')
    			,'net' => __('net', 'blog')
            )
            ,'columns' => 3
          )
          ,array(
            'type' => 'select'
            ,'field' => 'select_ser'
            ,'value' => '8mm'
            ,'choices' => array(
    			'8' => __('8mm', 'blog')
    			,'16' => __('16mm', 'blog')
    			,'slide' => __('slide', 'blog')
    			,'tape' => __('tape', 'blog')
    			,'dvd' => __('dvd', 'blog')
    			,'other' => __('other', 'blog')
            )
            ,'columns' => 4
          )
          ,array(
            'type' => 'select'
            ,'field' => 'select_l'
            ,'value' => 'e'
            ,'choices' => array(
              'e' => 'English'
              ,'g' => 'German'
              ,'f' => 'French'
            )
            ,'columns' => 3
          )
        )
      ));

    Note: I did not remove Double Underscores “__” in the code.

    I am generating the api data with WordPress, using a defined post type in CPT UI. I was using Custom Fields to generate WordPress taxonomies for the different posts, but decided to switch to Piklist taxonomies instead. How can I get the Piklist taxonomies into the api data? (Before the switch I could see the taxonomy data. Now it is missing…)

    I noticed, it looks like the taxonomies are not making it to the wp_term_taxonomy table, but somehow are getting stored somewhere else!?! However, I do see piklist_demo_type data in the table, so somehow I need to figure out how to add new taxonomies to my defined post type.

    For later: how can I add taxonomy filters to my defined post type list?

    Do you suggest I keep each post as it’s own individual post (a new one for each language, to keep pretty permalinks and other WordPress functionalities in place – … and for speed,) and later find a way to cross-link them in the back-end UI? This would be best, I suppose, to link posts and languages linked.

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