WordPress.org

Ready to get started?Download WordPress

Forums

Better WordPress External Links
[resolved] Making TLDs Subdomains Always Local (8 posts)

  1. Joe Banks
    Member
    Posted 3 years ago #

    The Issue: We manage sites at this subdomain level:

    something.grc.nasa.gov

    But need to make ANY domain at nasa.gov local:

    *.nasa.gov

    For example:

    http://www.nasa.gov
    anything.grc.nasa.gov
    as.long.as.it.gets.who.cares.nasa.gov

    Right now, we can only make nasa.gov local by entering this into "Forced Local Domains":

    nasa.gov

    But I'd like to be able to enter, for example:

    *.nasa.gov

    http://wordpress.org/extend/plugins/bwp-external-links/

  2. Khang Minh
    Member
    Plugin Author

    Posted 3 years ago #

    Wow hi, are you really from the Nasa website team??? I'm kinda shocked...

    Wildcards, ahh... Okay I will look into it and such feature will be available in 1.1.0, soon :).

  3. Joe Banks
    Member
    Posted 3 years ago #

    Actually, yes, not with the overall NASA or NASA Glenn webteam, but this specific group here, who uses WordPress to build sites at NASA Glenn Research Center:

    http://wordpress.grc.nasa.gov

    One of our requirements for NASA sites is to mark external links for any non-NASA site. Using a plug-in to do so greatly saves time. We're upgrading to WordPress Multisite for our group, which means the old external links plug-in we were using stopped working correctly. So I found your plugin today and set it up pronto. It's working on our NASA GRC WordPress Users Guide site, now.

    Thanks for taking the request into consideration.

  4. Khang Minh
    Member
    Plugin Author

    Posted 3 years ago #

    Nice! I got the NASA + WP feeling from that site :).

    The 'Forced Local Domains' is actually meant to force other external domains to be local. How about making the 'All subdomains' option to act just like *.nasa.gov?

  5. Joe Banks
    Member
    Posted 3 years ago #

    Perfect!

  6. Khang Minh
    Member
    Plugin Author

    Posted 3 years ago #

    Hi, 1.1.0 should be available tomorrow, make sure you get it ;).

  7. Joe Banks
    Member
    Posted 3 years ago #

    I see it! Installed and it's working right now. I'll have to look at my settings later.

    In the meantime, I wanted to share how we style external links (seems to be a convention), adding a bonus hover effect. Edit as you see fit.

    ==========================================

    a.ext-link, a.ext-link:link
    {
    background: url(images/external.png) no-repeat 100% 0;
    padding-right: 13px;
    }

    a.ext-link:visited, a.ext-link:visited
    {
    /*color: purple;*/
    background: url(images/external.png) no-repeat 100% -100px;
    padding-right: 13px;
    }

    a.ext-link:hover, a.ext-link:active
    {
    /*color: red;*/
    background: url(images/external.png) no-repeat 100% -200px;
    padding-right: 13px;
    }

    Here's the image referenced above.

    http://wordpress.grc.nasa.gov/wp-content/themes/nasa-genesis/images/external.png

  8. Khang Minh
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for the contribution, I think I will add it to 1.1.1, very nice effect indeed. And yes, I see the plugin working nicely there!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic