$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.)
no subject
$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:
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.)