sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)
Sophie ([personal profile] sophie) wrote in [site community profile] dw_dev 2009-09-27 12:34 pm (UTC)

$USER_DOMAIN shouldn't have the port number in it - just use:

$USER_DOMAIN = $DOMAIN;

As far as I can tell, everything else is fine.

(and I'm so sorry I never managed to reply to your PM! :/ It sounds like you don't need EveryDNS now, but if you want I can still try to help you. You're actually better off reaching me via IM - my IM names are on my profile if you want.)

[edit: Actually, thinking about it... hmm. I must admit I've never actually used user subdomains while simultaneously using different port numbers. It might not actually be possible to do that as the code stands; the above will work for accessing them manually, but won't work for creating links to users. Will try to find out more.]

[edit 2: Yeah, looking at the code a bit, it appears that it isn't possible as it stands. That's probably a bug; I'll get it filed.

In the meantime, you can work around it by altering the code manually. In cgi-bin/LJ/User.pm, around line 7747 you'll see this:

   if ($vhost eq "users") {
        my $he_user = $user;
        $he_user =~ s/_/-/g;
        return "http://$he_user.$LJ::USER_DOMAIN";
    } elsif ($vhost eq "tilde") {

Change that fourth line to read:

        return "http://$he_user.$LJ::USER_DOMAIN:9999";

This will make linking work, but it'll probably break as soon as you update the code again, of course. Like I said, it's a bug so I'll get it filed - it shouldn't take too long to resolve it.]

(sorry for the editspam! Was fixing stuff. I'm done now. Honest.)

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