We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Share link - Affiliates | Forum

Valentin
Valentin May 5 '19

I want to make share button with aid affiliate user


<div class="fb-share-button" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button" data-size="small" data-mobile-iframe="true"><a target="_blank" href="" id="fb_share" class="fb-xfbml-parse-ignore">Share</a></div>


<script>

    window.onload = function() {

        fb_share.href ='http://www.facebook.com/share.php?u=' + encodeURIComponent(location.href) + '?aid=' + {$affiliate->id}; 

    }  

</script>


This work only in affiliate_banners


You can help me introduce this to blog, photo ?


You do not have permission to reply this topic