• I’m having an issue with using thickbox and having permalinks/mod rewrite/htaccess, at least, that’s what I think the issue is. Everything was working fine (according to my knowledge) before about 4:30pm on October 30th. I have solved my other issues (documented in this thread) which were related to what was contained in my htaccess file. So, I’m thinking this issue is also related to htaccess.

    It appears as though when I use an anchor tag (which is required to get the modal popups via thickbox to work using an inline div), it defaults to https:///?TB_iframe=true&width=720&height=540.

    This is what the original HTML is in the post:
    <a title="Trustees" href="#TB_inline?height=300&width=500&inlineId=judyduda" class="thickbox">Judy "Judith" Duda</a>

    This is what I find when I use Firebug:
    <a class="thickbox" href="https://?TB_iframe=true&width=720&height=540" title="Trustees">Judy “Judith” Duda</a>

    Here’s my htaccess. I’ve tried hiding other items, but they don’t seem to affect what the link is changed to.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
    RewriteCond %{HTTP_REFERER} !^http:/cmfmedia.org/web/wp-admin
    # RewriteRule ^(.*)wp-content/uploads/(.*) /index.php?attachment=$2&scoper_rewrite=1 [NC,L]
    </IfModule>
    
    # END WordPress

    Why is wordpress changing my link? Is there something in my htaccess file that could be contributing to this?

    I have the plugin “Google Analytics for WordPress” installed, which I know formats links so GA can track them, but even when I un-installed this plugin, I was having the same issues. I’ve also got a plugin that supports this functionality called Thickbox Content.

    Here’s a list of all of my active plugins:
    Add to Any
    AJAZify FAQ-Tastic
    Akismet
    Analytics360
    Archives for a category
    Auto Thickbox
    FAQ-Tastic
    Get Recent Comments
    Google Analytics for WordPress
    Google XML Sitemaps
    Podcasting
    Role Scoper
    ThickBox Content
    WP Render Blogroll Links

Viewing 1 replies (of 1 total)
  • You are already running two thickbox plugins – Auto Thickbox and Thickbox Content. Most likely they are manipulating the URL’s as they are set up to work with galleries, not inline content.

    What happens when you disable those two plugins? Does it still mangle your URL?

    If you need those plugins to use with content in posts yet also want to display some inline content in an overlay, consider using a different overlay for the inline content, one that won’t conflict with any plugins or with WordPress itself.

    Here is one – the notation of what div to display in the overlay is passed in a rel attribute rather than in an a tag href attribute, so it won’t conflict. https://flowplayer.org/tools/overlay.html

    Go to the thickbox page and see a list of several others they suggest using instead of thickbox: https://jquery.com/demo/thickbox/

    The newer scripts rely on CSS for most of the configuration so you don’t have the issues of using query strings on URL’s to pass settings that are not related to what a link is designed to be used for.

Viewing 1 replies (of 1 total)
  • The topic ‘Using anchor tags with thickbox and permalinks/mod rewrite’ is closed to new replies.