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] changelog2009-05-16 04:41 pm

[dw-free] Link to comm creation on create.bml

[commit: http://hg.dwscoalition.org/dw-free/rev/c281729b23e5]

http://bugs.dwscoalition.org/show_bug.cgi?id=1190

Add clarification for logged out users. (Thank you, [personal profile] ninetydegrees
for pointing this out!)

Patch by [staff profile] denise.

Files modified:
  • bin/upgrading/en.dat
  • cgi-bin/LJ/Widget/CreateAccountEnterCode.pm
--------------------------------------------------------------------------------
diff -r ff9a65c95f9a -r c281729b23e5 bin/upgrading/en.dat
--- a/bin/upgrading/en.dat	Sun May 17 00:25:55 2009 +0800
+++ b/bin/upgrading/en.dat	Sat May 16 16:40:32 2009 +0000
@@ -3907,7 +3907,9 @@ widget.createaccountentercode.error.inva
 
 widget.createaccountentercode.error.toofast=You are entering codes too quickly; please try again later.
 
-widget.createaccountentercode.comm=If you'd like to <a [[aopts]]>create a community</a> instead, you don't need an invite code.
+widget.createaccountentercode.comm=If you'd like to <a [[aopts]]>create a community</a> instead, you don't need an account creation code.
+
+widget.createaccountentercode.comm.loggedout=You should create or log into a personal account to be the maintainer. If you don't have a personal account yet, you will need a code to create that account, but you don't need one for the community itself.
 
 widget.createaccountentercode.info=To create a new account, enter an account creation code:
 
diff -r ff9a65c95f9a -r c281729b23e5 cgi-bin/LJ/Widget/CreateAccountEnterCode.pm
--- a/cgi-bin/LJ/Widget/CreateAccountEnterCode.pm	Sun May 17 00:25:55 2009 +0800
+++ b/cgi-bin/LJ/Widget/CreateAccountEnterCode.pm	Sat May 16 16:40:32 2009 +0000
@@ -71,7 +71,10 @@ sub render_body {
     if ( LJ::is_enabled( 'payments' ) ) {
         $ret .= "<p style='margin-top: 10px;'>";
         $ret .= $class->ml( 'widget.createaccountentercode.pay', { aopts => "href='$LJ::SITEROOT/shop/account?for=new'", sitename => $LJ::SITENAMESHORT } );
+        my $remote = LJ::get_remote(); 
         $ret .= " " . $class->ml( 'widget.createaccountentercode.comm', { aopts => "href='$LJ::SITEROOT/community/create.bml'" } );
+        $ret .= " " . $class->ml( 'widget.createaccountentercode.comm.loggedout', { aopts => "href='$LJ::SITEROOT/community/create.bml'" } ) unless $remote;
+        
         $ret .= "</p>";
     }
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
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