Forum Replies Created

Viewing 15 replies - 16 through 30 (of 121 total)
  • Thread Starter tzdk

    (@tzdk)

    Fixed thanks to WordPress Answer site πŸ™‚ See link in code for details.

    // http://wordpress.stackexchange.com/a/92250
    add_filter( 'plugin_action_links', 'disable_plugin_deactivation', 10, 4 );
    function disable_plugin_deactivation( $actions, $plugin_file, $plugin_data, $context ) {
    	if ( array_key_exists( 'deactivate', $actions ) && in_array( $plugin_file, array(
    		'minqueue/plugin.php'
    	)))
    		unset( $actions['deactivate'] );
    	return $actions;
    }
    Thread Starter tzdk

    (@tzdk)

    Thanks, nagging about small things is sign of brilliant plugin πŸ™‚

    Try this:

    /* Only needed if you have special CSS for images!
    #content also not needed if replaced with "!important" */
    #content .themeblvd-gmap .gm-style img { box-shadow: none; }
    
    /* Fiddle with marker */
    .themeblvd-gmap .gmap_marker { color: #000; }
    .themeblvd-gmap .gmnoprint img { max-width: none; } /* Fix for zoom img */
    
    /* One and only line of CSS in enqued file from plugin = silly */
    .themeblvd-gmap img { max-width: inherit; }

    May be also update jQuery script from Github http://github.com/marioestrada/jQuery-gMap Check if changes to old version 2.1 are relevant https://github.com/marioestrada/jQuery-gMap/commits/master/jquery.gmap.js

    And may be also not load 1 CSS file and that jQuery file on all pages. Most will only use it on 1 or a few. At least no reason to load a CSS file with only 1 line. Throw that in general CSS file or somewhere else.

    Can do something like this:

    // Themeblvd Map only loaded on page with certain slug
    add_action( 'wp_enqueue_scripts', 'strangle_themeblvd_map' );
    function strangle_themeblvd_map() {
    	remove_action( 'wp_print_styles', 'themeblvd_google_map_css' );
    	wp_dequeue_script( 'gmap' );
    	if ( is_page( 'contact' ) ) {
    		wp_enqueue_script ( 'gmap' );
    	}
    }

    I had same problem but JS error hinted no title was issue. And it was. I had made a bunch of widgets holding PHP code, none had title field. After adding that drop down got filled up again.

    http://wordpress.org/plugins/widget-css-classes/ can add what ever class to any widget, so “no-widget-title” is nifty if set to to “display: none” in CSS.

    Forum: Plugins
    In reply to: [Slimbox] Problem on WP3.6

    Seems like a loading/server problem? Works for me right now but Windguru widget loads an older version of jQuery.

    a.setAttribute("src","https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js")

    so does not help. Maybe causing conflicts. Code comes from 3rd party so I do not think you can do much about it. Ask widget supplier to stop loading jQuery perhaps. Or now I look, change how you do it http://www.windguru.cz/int/help_index.php?sec=distr More than one way. They link to this guy for WP plugin, http://davies-barnard.co.uk/windguru-plugin/ He run WordPress 3.6, his widgets are working and no old jQuery.

    You have 3 or 4 404 links, http://tools.pingdom.com/fpt/#!/ltFzz/http://oceanmind.net scroll down.

    Fontello font is not found (1 link is not 404 but “aborted”, so 2!), same for 2 images. gricon.png and sdown-666666.png

    Worse is a Javascript error because file from theme expect a .jflickrfeed function to be present. Is not so it give error. You can comment it out in mypassion.js file, Find section starting with “FLICKR FEED”.

    You should check your self, is easy http://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors

    Fixing that will remove error but not necessarily Lightbox issue. What you can do. Javascript/jQuery can work in mysterious ways so no errors is a must.

    Noticed this the other day btw. http://wordpress.org/plugins/wp-slimbox2/ so one more option for Slimbox. Just got updated. Better than light hacking.

    Forum: Plugins
    In reply to: [Slimbox] Problem on WP3.6

    Yep, I was too fast. slimbox.js vs. jquery.slimbox.js Also there are 2 of them

    http://www.ge.tt/2k4K4Ap/v/0 download that, has slimbox folder in there. That is what worked after my fiddling.

    You see his changes to file names in slimbox.php.

    Weird plugin but I was surprised to see Slimbox is even alive. Thought it was one of those from last decade. So that is something.

    Is not enqueΒ΄ed after the book but works. Change of file names and folders is only difference to normal load. Plus it act as a WP plugin.

    I was looking for an updated Ligthbox which works in all browsers. Not easy task, this is simple and works http://wordpress.org/plugins/theme-blvd-prettyphoto/ Tuned PrettyPhoto. No settings but works out of the box and can be manually initialized. Ok for now… Colorbox or Magnific popup + own jQuery is the future πŸ™‚

    Not sure if allowed to link to “direct” download but well hurry! Is clean as changelog for this plugin

    Forum: Plugins
    In reply to: [Slimbox] Problem on WP3.6

    No, much time could be saved if dev. was not so busy – or what it is. You can be dev. now.

    One thing I love about Drupal is this under each extention/module:

    Maintenance status: Actively maintained
    Development status: Under active development

    Not sure how accurate it is, but is right idea. Imagine it as filter when searching! Why waste peoples time? Even for “free” stuff that is a violation of common sense. We got pixel stars.

    Forum: Plugins
    In reply to: [Slimbox] Problem on WP3.6

    I had to help someone with this pluign yesterday. Fix is not to CSS hack, as suggested in other thread, but to do what developer should have done long time ago. 2 min job… Update Slimbox.js script

    http://www.digitalia.be/software/slimbox2#changelog note

    Backward-compatible fix for jQuery 1.9 and 2.0.

    and done. Almost.

    Plugin really does not do anything but load files from Slimbox. Does change filenames of images though. Reorganize in folders so this must be adjusted. For example:

    .lbLoading {
    	background: #fff url(loading.gif) no-repeat center;
    }

    from slimbox.js download must be changed to

    .lbLoading {
    	background: #fff url(../images/loading.gif) no-repeat center;
    }

    in CSS file of plugin, /slimbox/stylesheets/jquery.slimbox.css it is called. Do that for all in all 4 places and it work as before. Also note change of file names, Slimbox.js for example call one “nextlabel.gif” where plugin change to “next.gif” but easy update. You will notice if you overwrite plugins CSS file πŸ™‚

    /*jquery, gdsr_script, jquery-ui-core, jquery-ui-widget, jquery-ui-mouse, jquery-ui-draggable, mousewheel, sfx, slideshowfx, picochic_scripts, picochic_respond, comment-reply*/ /*

    so comment-reply is in there. If you remove it will only load on single view post and comments are open. Why he writes this in Helper window

    Remember some scripts are loaded conditionally (on certain pages, or for logged in users etc).

    Rest will be because files are not loaded via enque system, they just get spit out, like

    /**
             *  Include CSS-file in wordpress-head
             *  @return string
             */
            function IncludeCSS()
            {
                echo '<link type="text/css" rel="stylesheet" href="' . $this->PluginDir . '/style.css" />';
            }

    and

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    Star thing is some dynamik stuff with php extension.

    Piwik is ignored because on other domain, I think.

    I guess it must be a bug if Helper window show handles for these incompatible files. Does it?

    Forum: Plugins
    In reply to: [MinQueue] Doesn't work

    I bet you anything dev. is a github person. Look https://github.com/mattheu/MinQueue Show/Hide helper tool on github but not on .org πŸ™‚ So may be open “issue” there? And definitely download and install latest version – why not?

    And may be you should swear you have added correct handles and also tell if /wp-content/uploads/minqueue-cache folder is created or not. Might help.

    I thought you had PHP 5.2.x issue because dev said it wont work. Plugin does not check for PHP version though (I dont think). I tried outdated PHP and got white screen so he is right πŸ™‚ Or may be output depends on which PHP 5.2.x version? It wont work with any but you will know if relevant.

    Oops, now I look at error log it seems another plugin protested against old PHP, “parse error”. Might be the white screen I saw. Well as said this plugin require 5.3.x and up. I am not sure how you will notice PHP 5.2.x. Nothing happening at all might be output.

    Code? Mozilla just released a “beta 2” of Persona http://identity.mozilla.com/post/47541633049/persona-beta-2 so that might improve numbers.

    I do not tinker with Persona right now, but when I did I made it only work when login part of comment form was open. There is a hook or 2 that fits. Only time it is needed, at least if you do not want login to site itself. Helped. Was not horrible, also not super light. Must try new – perhaps this plugin need to be updated for beta 2 compatibility?

    Best fix would be zero loading at all. Not until you click a PERSONA button. Or if not click then very lazy loading, like some social bookmarking scripts offer. Socialite, in WordPress plugin http://wordpress.org/plugins/wpsocialite/ is one example. On Socialite github issues page there is a guy hiding it all via a button, I have tried that – works 100%. Action/load on hover or scrolling past button feels annoying to me. Also not performance proof.

    Now I rewind memory I am not sure Socialite github has ready to use code. I found some I did and it does not look like copy/paste, more like what ever works! There is talk about this, I know that. Must be tutorials and such?

    content is a variable for #content. I would like same effect for Persona. Even it means make a “light” version only working on comments.

    if ($("#social-buttons-load").length) {
    	Socialite.setup ({
    		twitter:	 { lang: 'da' },
    		googleplus:	 { lang: 'da' },
    		facebook:	 { lang: 'da_DK' }
    	});
    
    	Socialite.process(document.getElementById('social-buttons'));
    	var btn = document.getElementById('social-buttons-load');
    	btn.disabled = false;
    
    	$("#social-buttons-load").click(function() {
    		content.find("ul.social-buttons").css({display:"inline-block"});
    		$(this).css({display:"none"});
    	});
    }

    There is more, for injected HTML button one line is important:

    <input id="social-buttons-load" disabled="disabled" onclick="javascript:Socialite.load(document.getElementById('social-buttons'));this.disabled=true;return false;" type="button" value="CLICK ME!">

    Rest is just div, ul, li, a. Should be possible to do the same with Persona. There is a button already so not really a big change.

    tzdk

    (@tzdk)

    Minqueue handles itself perfectly but it might not be obvious to all that additional cache plugins, like Hyper Cache, Cachify etc., need to be rebuild after EVERY change to CSS/JS files handled by Minqueue. Static cached pages will have “old” invalidated file names from Minqueue so result will be white screen or crappy formatted pages – depending on what is included in Minqueue.

    Fix is not to fiddle about with “production” sites. Or rather do it correctly…

    tzdk

    (@tzdk)

    Hmm, actually non-MP6 menu icon is not visible for me.

    Is because of a typo error – https://github.com/bungeshea/code-snippets/blob/develop/includes/class-admin.php#L176

    There is no /images/ folder, icon is now in /assets/ πŸ™‚

    Thread Starter tzdk

    (@tzdk)

    Yes much better.

    May be a good idea to make number of plugins listed on 1 page optional – or increase from 10 to 25?

    Last column “compatible versions” should list “If the plugin is compatible with the WordPress version you are using.” but output is a bit weird. Like

    1.1.0 - 1.1.1 - 1.1.2 - 1.2.0 - 1.2.1 - 1.3.0
    Can not determine compatible versions.

    Always say “Can not determine compatible versions.” – regardless if there are any or not.

    May be I misunderstand column but I would expect it to show direct info from .org entry, “Compatible up to 3.5.1” or just “3.5.1”. If plugin then put WordPress version number at the top, for those who use this type plugin and have no clue what WordPress version they have… + made any non-matching entry RED it would be more useful? If I am on WordPress 3.5.1 and X plugin is only compatible up to 3.4.2 there should be a warning – or notification.

    Is a bit tricky as old plugins can be ok and some devs. dont care for that number. I have a dream of .org site automatically placing all plugins not compatible with latest WordPress in an “archive” repository. Or somehow keep them out of std. search/lists. You will see devs. suddenly getting very interested in keeping up πŸ™‚ Also easier to separate/ignore plugins that seem alive because not THAT old, but really are dying as dev. have left the building long ago.

    Another thing. For any non-org entry it says “An unexpected error occured” in all columns. Correct from view point of plugin code but seem a bit dramatic? “No info available” would do. Since plugin can only check .org plugins why even try checking the rest? Will give error again and again, is 100% expected. But may be not possible to separate .org from non-org before running the check?

    If you simply removed all non-org entries I think I would nod.

    tzdk

    (@tzdk)

    Primary Lightbox Settings –> Interface –> Overlay Close

    Tick it.

Viewing 15 replies - 16 through 30 (of 121 total)