Forum Replies Created

Viewing 15 replies - 46 through 60 (of 164 total)
  • Thread Starter Zoinks! Graphics

    (@zoinks)

    Sure can! Can I get “paid” with a Master License when I give you the solution?

    Just installed Pretty Link in a new WP install and my prli_clicks table is also completely missing. How do I regenerate that table? Can you provide an SQL Query I can run in my PHPmyAdmin? Thanks!

    PS: Could this have something to do with the latest WP update, and the warning: “This plugin has not been tested with your current version of WordPress.”

    PPS: I keep trying to add a link and it keeps saying “Your Pretty Link was Successfully Created” by none listed at /wp-admin/admin.php?page=pretty-link

    I had the same problem. I think this plugin only fixes permalinks in one direction, i.e. from just /%postname%/ to something like /%year%/%monthnum%/%day%/%postname%/

    The “Change Permalink Helper” plugin was able to redirect my posts when I went the other way, from /%year%/%monthnum%/%day%/%postname%/ to just /%postname%/

    https://wordpress.org/plugins/change-permalink-helper/

    Hope that helps!!

    Thread Starter Zoinks! Graphics

    (@zoinks)

    Thank you SO much, Nadia!! Here’s the completed test code, which will allow me to create my ACTUAL code…

    if(is_zg() && !is_admin())
    	{ add_action('wp_loaded','zg_after_plugins_check'); }
    
    function zg_after_plugins_check()
    	{
    	// echo zg_random_default_image(1);
    
    	$images = array(271, 279, 291, 326, 331, 494, 496, 498, 3041, 3043, 3044, 3045);
    
    	foreach($images as $imageID)
    		{
    		unset($labelarray);
    
    		$imageCats = get_the_terms($imageID,'media_category');
    		// var_dump($imageCats);
    
    		if($imageCats && !is_wp_error($imageCats))
    			{ foreach($imageCats as $cat) { $catArray[]=$cat->name; } }
    		else { $catArray[]=$imageID; }
    		}
    
    	$string = join( ", ", $catArray );
    	echo '<p>' . $string . '</p>';
    	}

    “is_zg()” is my custom code to check for logged in as “super-admin” (me)

    Thanks again!!

    Thread Starter Zoinks! Graphics

    (@zoinks)

    Ahhh, now you’ve pointed me in the right direction… It hadn’t occurred to me that I’m firing this before your plugin registers the taxonomy, more fool me! Let me do some digging into how to get this to register AFTER that. Thank you!!

    Thread Starter Zoinks! Graphics

    (@zoinks)

    And yes, the $images to start is an array of valid image IDs under Media.

    And here are snapshots of my “Media Library” and “Media Taxonomies” settings…

    Media Library settings

    Media Taxonomies settings

    Thread Starter Zoinks! Graphics

    (@zoinks)

    Thanks again! Full code is…

    $images = array(271, 279, 291, 326, 331, 494, 496, 498, 3041, 3043, 3044, 3045);
    
    foreach($images as $imageID)
    	{
    	unset($labelarray);
    
    	$imageCats = get_the_terms($imageID,'media_category');
    	var_dump($imageCats); // ADDED YOUR var_dump()
    
    	if($imageCats && !is_wp_error($imageCats))
    		{
    		foreach($imageCats as $cat) { $catArray[] = $cat->name; }
    		$string = join( ", ", $catArray );
    		}
    	else { $string=$imageID; }
    
    	echo '<div style="text-align:center;">' . $string . '</div>';
    	}

    With your var_dump($imageCats) added resulted in…

    object(WP_Error)#1739 (2) { [“errors”]=> array(1) { [“invalid_taxonomy”]=> array(1) { [0]=> string(17) “Invalid taxonomy.” } } [“error_data”]=> array(0) { } }
    271
    object(WP_Error)#1097 (2) { [“errors”]=> array(1) { [“invalid_taxonomy”]=> array(1) { [0]=> string(17) “Invalid taxonomy.” } } [“error_data”]=> array(0) { } }
    279
    object(WP_Error)#1739 (2) { [“errors”]=> array(1) { [“invalid_taxonomy”]=> array(1) { [0]=> string(17) “Invalid taxonomy.” } } [“error_data”]=> array(0) { } }
    291
    object(WP_Error)#1097 (2) { [“errors”]=> array(1) { [“invalid_taxonomy”]=> array(1) { [0]=> string(17) “Invalid taxonomy.” } } [“error_data”]=> array(0) { } }
    326
    object(WP_Error)#1739 (2) { [“errors”]=> array(1) { [“invalid_taxonomy”]=> array(1) { [0]=> string(17) “Invalid taxonomy.” } } [“error_data”]=> array(0) { } }
    331
    object(WP_Error)#1097 (2) { [“errors”]=> array(1) { [“invalid_taxonomy”]=> array(1) { [0]=> string(17) “Invalid taxonomy.” } } [“error_data”]=> array(0) { } }
    494
    object(WP_Error)#1739 (2) { [“errors”]=> array(1) { [“invalid_taxonomy”]=> array(1) { [0]=> string(17) “Invalid taxonomy.” } } [“error_data”]=> array(0) { } }
    496
    object(WP_Error)#1097 (2) { [“errors”]=> array(1) { [“invalid_taxonomy”]=> array(1) { [0]=> string(17) “Invalid taxonomy.” } } [“error_data”]=> array(0) { } }
    498
    object(WP_Error)#1739 (2) { [“errors”]=> array(1) { [“invalid_taxonomy”]=> array(1) { [0]=> string(17) “Invalid taxonomy.” } } [“error_data”]=> array(0) { } }
    3041
    object(WP_Error)#1097 (2) { [“errors”]=> array(1) { [“invalid_taxonomy”]=> array(1) { [0]=> string(17) “Invalid taxonomy.” } } [“error_data”]=> array(0) { } }
    3043
    object(WP_Error)#1739 (2) { [“errors”]=> array(1) { [“invalid_taxonomy”]=> array(1) { [0]=> string(17) “Invalid taxonomy.” } } [“error_data”]=> array(0) { } }
    3044
    object(WP_Error)#1097 (2) { [“errors”]=> array(1) { [“invalid_taxonomy”]=> array(1) { [0]=> string(17) “Invalid taxonomy.” } } [“error_data”]=> array(0) { } }
    3045

    Thread Starter Zoinks! Graphics

    (@zoinks)

    Thanks for the super-speedy response, Nadia!

    First, I do run the result of get_the_terms() through foreach($imageCategories as $category) so that should “de-array” it, no?

    Second, yes, I’ve been putting that “if not empty and no error” variable, which many times causes nothing to be output. That’s the heart of the problem, get_the_terms() using ‘media_category’ is either generating nothing or errors.

    Third, sorry, I left out that yes, I am assigning $imageID the actual image ID in the loop via $picID=get_the_ID(); And yes, it does generate valid image IDs that I’ve confirmed in the Media section.

    My suggestion: Try “Peter’s Login Redirect” plugin.

    Dang! That’s too bad. I love the design of your floating sidebar plugin, way more than others out there; nice and clean, and works great on mobile.

    I too wish there were added functionality for sharing, like maybe pop-outs when mouseover the Facebook button with “Like” and “Share” options, so it achieves EVERYTHING: allows viewers to GO to the site’s social media + ability to SHARE site content on viewer’s social media.

    Is that something that could be added in a future update? Or any ideas how to hook that into your existing plugin? Thanks!!

    • This reply was modified 9 years, 3 months ago by Zoinks! Graphics. Reason: (Forgot to check notifications)
    • This reply was modified 9 years, 3 months ago by Zoinks! Graphics.

    I love to get solutions from these Forums, so once again my turn to give back!

    Just add these lines to your theme’s style.css file for 50×50 buttons…

    .dpsp-networks-btns-wrapper .dpsp-network-btn { line-height:42px; height:50px; min-width:50px; max-height:50px; }
    
    .dpsp-networks-btns-wrapper .dpsp-network-btn:before { font-size:23px; width:50px; top:4px; }

    I too am having an issue with getting Subtitles to work with Modern Tribe’s “The Events Calendar”. Since the custom post type is “tribe_events” I am using the following code in my functions.php

    function theme_slug_add_subtitles_support()
    	{ add_post_type_support('tribe_events', 'subtitles'); }
    add_action('init', 'theme_slug_add_subtitles_support');

    However, the Subtitle text field does not display when I go to edit any of my events. Any feedback would be greatly appreciated!

    Thread Starter Zoinks! Graphics

    (@zoinks)

    Thanks for addressing so promptly, and thanks for such great software! May I recommend having the source code in the plugin hosted on the user’s website rather than on your site? That would keep issues like this from having such a deep impact on all your users…

    Appears to be broken again. Any updates pending?

    Thread Starter Zoinks! Graphics

    (@zoinks)

    The plugin code includes this line of code so it looks like something happened on your website…

    $pdfUrl = 'http://flowpaper.com/flipbook/?pdf=' . esc_attr( $value ) . (strpos(esc_attr($value),WP_CONTENT_URL)===0?"?wp-hosted=1":"");

Viewing 15 replies - 46 through 60 (of 164 total)