fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-03-08 07:02 am

[dw-free] Cannot gift an unknown random user

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

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

Add a link to purchase account for an unknown random user.

Patch by [personal profile] wyntarvox.

Files modified:
  • htdocs/shop/randomgift.bml
  • htdocs/shop/randomgift.bml.text
--------------------------------------------------------------------------------
diff -r ba00f4eb46b7 -r d250fd399c08 htdocs/shop/randomgift.bml
--- a/htdocs/shop/randomgift.bml	Tue Mar 08 14:58:16 2011 +0800
+++ b/htdocs/shop/randomgift.bml	Tue Mar 08 15:01:49 2011 +0800
@@ -42,7 +42,7 @@ body<=
     $ret .= "<p><a href='$LJ::SITEROOT/shop'>&lt;&lt; " . BML::ml( '.backlink', { sitename => $LJ::SITENAMESHORT } ) . "</a></p>";
 
     if ( $randomu ) {
-        $ret .= "<p>" . BML::ml( '.intro.'.$type, { aopts => "href='$LJ::SITEROOT/shop/randomgift?type=$type'" } ) . "</p>";
+        $ret .= "<p>" . BML::ml( '.intro.'.$type, { aopts => "href='$LJ::SITEROOT/shop/randomgift?type=$type'", aopts2 => "href='$LJ::SITEROOT/shop/account?for=random'" } ) . "</p>";
         $ret .= "<p><strong>$ML{'.label.username'}</strong> " . $randomu->ljuser_display . "<br />";
         $ret .= "<strong>$ML{'.label.createdate'}</strong> " . LJ::mysql_time( $randomu->timecreate ) . "<br />";
         $ret .= "<strong>$ML{'.label.lastupdated'}</strong> " . substr( LJ::mysql_time( $randomu->timeupdate ), 0, 10 ) . "<br />";
diff -r ba00f4eb46b7 -r d250fd399c08 htdocs/shop/randomgift.bml.text
--- a/htdocs/shop/randomgift.bml.text	Tue Mar 08 14:58:16 2011 +0800
+++ b/htdocs/shop/randomgift.bml.text	Tue Mar 08 15:01:49 2011 +0800
@@ -12,7 +12,7 @@
 
 .form.submit=Purchase a Paid Account for [[username]]
 
-.intro.P=Here is a random active free user who may appreciate a paid account.  If you'd like to find a different random user, just <a [[aopts]]>refresh</a>.
+.intro.P=Here is a random active free user who may appreciate a paid account.  If you'd like to find a different random user, just <a [[aopts]]>refresh</a>.  You can also <a [[aopts2]]>purchase a paid account for an unknown random user</a>.
 
 .intro.C=Here is a random active free community who may appreciate a paid account.  If you'd like to find a different random community, just <a [[aopts]]>refresh</a>.
 
--------------------------------------------------------------------------------

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