Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter joo-joo

    (@joo-joo)

    Hello Max,
    could you, please, provide any URL links with live examples? (I don’t mean your help video).

    Just for looking at the correct syntax for fully functional URLs… (as I said, I am a bit surprised I cannot see any “id” or “type” $_GET parameters (typing error in my previous post) expected in URL for thickbox

    Thanks a lot, with regards,
    Joo

    Thread Starter joo-joo

    (@joo-joo)

    Hi Max,
    the SHORTCODE must be uncorectly transformed to URL!
    Back to my weird example – OK shortcode in editarea:
    ——————————————————
    [thkBC height=”300″ width=”500″ anchortext=”Link Anchor Text” title=”ThickBox Title XXX” type=”inline” inline_id=”xxx”]

    ERROR URL generated by plugin:
    ——————————
    http:///?TB_iframe=true&width=500&height=300

    OK URL – edited in FireBug:
    ——————————
    http://?TB_inline=true&width=500&height=300&inlineId=xxx
    By the way, “CSS #xxx{display:none;}” part was OK – no changes/inserting of code was required. That is really curious, because in your “shortcodes.php” it is under the same if-else part:
    !!!

    if($type = "inline" && $inline_id != ''){
    			$out = '<style type="text/css"><!-- #' . $inline_id . '{ display: none; } --></style>' . "\n";
    			$out .= $opentag . '<a' . $class . ' href="#TB_inline?height=' . $height . '&width=' . $width .'&inlineId=' . $inline_id .'" title="' . $title . '" class="thickbox"' . $hid . '>' . $anchortext .'</a>' . $closetag;
    		}else{

    Any help is welcomed.
    With best regards,
    Joo

    Plugin Author Max Chirkov

    (@maxchirkov)

    I’m running WordPress 3.1 with a ton of different plugins and I can’t reproduce the same issue that you described. I posted example below the form on this page http://delux.simplerealtytheme.com/contact/ – it says Test YouTube Video.

    Thread Starter joo-joo

    (@joo-joo)

    Hello Max,
    thank you for your reply – I deactivated all the plugins for the next search (it had to be the first step…) and then I have found the cause: “Auto Thickbox” plugin.

    Its iframe() function was too agile – the “TB_Inline” string in the URLs above has been replaced by “TB_Frame” and the URL resulted in the mess.

    Thank you for your work.
    With best regards, Joo.

    Plugin Author Max Chirkov

    (@maxchirkov)

    @joo, thanks for your work to pin-point the issue. So, just to be clear – the Auto Thickbox plugin conflicts with the Thickbox Content. Right?

    Thread Starter joo-joo

    (@joo-joo)

    Yes, you are right.
    The Auto Thickbox’s “add_filter(‘filter_anchor’, array(‘auto_thickbox’, ‘filter’))” really overwrites ‘<a href=”http://?TB_inline=true…&#8217; part of your plugin.

    I am not very advanced in PHP but I was able to fix it somehow so for me is everything OK. I am about to send a message (link) to this post to author of “Auto Thickbox”, I think it could be interesting for him, too.

    Cheers, Joo

    Plugin Author Max Chirkov

    (@maxchirkov)

    Great! Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: ThickBox Content] Inline Content – non valid URL’ is closed to new replies.