Add a link to purchase account for an unknown random user.
Patch by wyntarvox.
diffs (24 lines):
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'><< " . 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>.
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog