juks (juks) wrote in changelog,
juks
juks
changelog

[ljcom] r10083: LJSUP-7445 Try & buy

Committer: iaskarov
LJSUP-7445 Try & buy
U   trunk/cgi-bin/LJ/Pay.pm
U   trunk/htdocs/community/account.bml
Modified: trunk/cgi-bin/LJ/Pay.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay.pm	2011-02-18 10:47:02 UTC (rev 10082)
+++ trunk/cgi-bin/LJ/Pay.pm	2011-02-18 11:19:45 UTC (rev 10083)
@@ -405,7 +405,7 @@
     $ret .= '<td class="b-accstats-subhead b-accstats-voice"><span>' . BML::ml('pay.widget.voiceposts.title') . '</span></td>' unless $is_comm || $is_identity;
     
     if ($show_trynbuy) {
-        $ret .= $is_comm ? '<td rowspan="3" class="b-accstats-button b-accstats-button-tnb"><a href="' . $LJ::SITEROOT .'/community/account.bml?authas=' . $u->user . '" class="b-accstats-trynbuy">' . BML::ml('pay.widget.trynbuy') . '</a></td>' : '<td rowspan="3" class="b-accstats-button"><a href="' . $LJ::SITEROOT .'/manage/account/?changelevel=2" class="b-accstats-trynbuy">' . BML::ml('pay.widget.trynbuy') . '</a></td>';
+        $ret .= $is_comm ? '<td rowspan="3" class="b-accstats-button b-accstats-button-tnb"><a href="' . $LJ::SITEROOT .'/free-trial/?journal=' . $u->user . '" class="b-accstats-trynbuy">' . BML::ml('pay.widget.trynbuy') . '</a></td>' : '<td rowspan="3" class="b-accstats-button"><a href="' . $LJ::SITEROOT .'/manage/account/?changelevel=2" class="b-accstats-trynbuy">' . BML::ml('pay.widget.trynbuy') . '</a></td>';
     }
     
     if(!$u->get_cap('paid')) {    

Modified: trunk/htdocs/community/account.bml
===================================================================
--- trunk/htdocs/community/account.bml	2011-02-18 10:47:02 UTC (rev 10082)
+++ trunk/htdocs/community/account.bml	2011-02-18 11:19:45 UTC (rev 10083)
@@ -101,6 +101,7 @@
                 $switchto_trynbuy_text
             p?>
             <form action="$LJ::SITEROOT/free-trial/" method="get" target="_blank">
+                <input type="hidden" name="journal" value="$authas" />
                 <button type="submit">$ML{'.btn.totrynbuy'}</button>
             </form>
         };

Tags: bml, juks, ljcom, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments