afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] dw_dev 2009-09-27 03:58 pm (UTC)

[personal profile] sophie's comment triggered a memory, and got me looking into that area. To override the link that is created in, e.g., user tags, you can use the journal_base hook.

So, in a file, cgi-bin/DW/Hooks/JournalBase.pm, try this code:
package DW::Hooks::JournalBase;

use strict;

LJ::register_hook( 'journal_base', sub {
    my ( $u, $vhost ) = @_;
    if ( $vhost eq "users" ) {
        my $he_user = $u->user;
        $he_user =~ s/_/-/g;
        return "http://$he_user.$LJ::USER_DOMAIN:9999";
    }
} );

1;


Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org