vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r21391: LJSUP-11511: pass product id parameter t...

Committer: vad
LJSUP-11511: pass product id parameter to tack this frame
U   trunk/htdocs/tools/embedcontent.bml
Modified: trunk/htdocs/tools/embedcontent.bml
===================================================================
--- trunk/htdocs/tools/embedcontent.bml	2012-03-13 10:35:27 UTC (rev 21390)
+++ trunk/htdocs/tools/embedcontent.bml	2012-03-13 10:59:43 UTC (rev 21391)
@@ -15,8 +15,9 @@
         return LJ::Maps->get_iframe_source(%GET);
     } elsif ($mode eq 'tackthis'){
         ##
-        my $api = $GET{api};
-        return qq|<script src="http://www.tackthis.com/widget-validate-iframe.php?api=$api" type="text/javascript"></script>|;
+        my $api     = $GET{api};
+        my $pid_arg = $GET{pid} ? "&pid=$GET{pid}" : ""; ## display specified product id
+        return qq|<script src="http://www.tackthis.com/widget-validate-iframe.php?api=$api$pid_arg" type="text/javascript"></script>|;
 
     } elsif ($mode eq 'lj-embed') {
         # we should have three GET params: journalid, moduleid, auth_token

Tags: bml, livejournal, vad, vadvs
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