Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nk111

    (@nk111)

    Yes, if you want to DISABLE photon within top 10 then the second link sounds most promising.

    But maybe an option to actually make USE of photon would still be a good idea? That way we wouldn’t need the custom thumbnail size and the user wouldn’t have to regenerate thumbnails?

    Thread Starter nk111

    (@nk111)

    Actually I did not bypass photon. I just modified the photon link to get a cropped square thumbnail instead of a thumb resized to just one dimension.

    Thanks for the links. The first one I stumbled upon earlier but couldn’t find it anymore. I would not want to disable photon for a whole page but maybe it’s also possible to exclude just a specific section of the page?

    Anyway. In my case my little modification is working great. I want square thumbs and now I get optimized square thumbs over photon. That’s all I need.

    The original poster meant that the callback property of the widgets gets replaced. Therefore other plugins which want to access that property (which is an array which doesn’t only store the callback function!) might fail afterwards.

    Exactly that happend to me. My themes widgets did not work properly with widget logic activated.

    So thats why i restore the callback property after widgets logics condition check and everything works!

    And yes… this should be done in widget-logic-redirected-callback.

    @digitalnature:

    Thank you so much for your post! I had issues with widget logic and a Yootheme theme where some widgets looked strange because after I installed Widget Logic.

    You are right. The replacement of the whole callback array was the cause. So i fixed this by replacing the callback property again after Widget Logic does it evals…

    like this:

    $wp_registered_widgets[$id]['callback'] = $callback;
    call_user_func_array($callback,params); // if so callback with original params!

    This solved my theme issues!

Viewing 4 replies - 1 through 4 (of 4 total)