Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter quasarkitten

    (@quasarkitten)

    I missed that somehow. Doh!

    Since opening a new window is consider a behavior. It’s best to create this functionality with JavaScript.

    I like using the jquery library. So here is how you would do it with jquery. Make sure to link to you jquery library file in the head of your document.

    Next I like to use an initiate.js to place all my ‘working’ javascript into. In this file paste:

    $(document).ready( function() {
    		$('.twitter-link').addClass('extlink');
    		$('.extlink').click( function() {
            window.open( $(this).attr('href') );
            return false;
        });
    });

    The Twitter for WordPress plugin automatically adds the class twitter-link to every link. So then I’m just using that as a selector to add another class called extlink to all links that already has a class of twitter-link. Any link that has a class of extlink will now open in a new window.

    You could just directly apply the the window.open directly to twitter-link, but by doing it as I have done above you can now add .extlink to any link anywhere in you blog. For example in a post or a page.

    Hope this helps.

    Here is what I see is going on. Two issues: one with twitter limiting request and the other with WP 2.7 + version 1.9.2 + caching.

    joelennon posted a fix above for people using 2.7. Apparently having this plugin do caching in WP 2.7 causes the sidebar to break. (?) So the solution was to turn caching off within the plugin.

    The problem with this is Twitter limits request of your RSS feed to 100 per hour. Which is why it stops working after a set amount of time, then start working again.

    Proposed Fix: if you not using WP 2.7 turn caching on in the plugin. If you are using 2.7 then wait for an update or just hope you don’t have more than 100 request per hour.

    FYI: This is just my hypothesis about what is going on.

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