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

integration postaffiliatepro | Forum

Didi Webmaster
Didi Webmaster Jun 4 '15
we use postaffiliatepro to get PPL to our Webmaster....


the integration Code is:


<script type="text/javascript">document.write(unescape("%3Cscript id=%27pap_x2s6df8d%27 src=%27" + (("https:" == document.location.protocol) ? "" : "") + "************.com/scripts/trackjs.js%27 type=%27text/javascript%27%3E%3C/script%3E"));  </script>

<script type="text/javascript">

PostAffTracker.setAccountId('default1');

var sale = PostAffTracker.createAction('Lead');

sale.setOrderID();sale.setProductID();

sale.setData1('<?php echo {$username}; ?>');

sale.setStatus('P');
PostAffTracker.register();

</script>


This one will catch the Username, but it dont work :-( I try different sample, but no way...

sale.setData1('<?php echo {$username}; ?>');

sale.setData1('<?php echo $username; ?>');

sale.setData1('{$username}');

sale.setData1('$username');


Any Idea how it will works ?


The Code is insert in ow_system_plugins/base/views/controllers/static_document_index.html

The Forum post is edited by Didi Webmaster Jun 4 '15
Didi Webmaster
Didi Webmaster Jun 8 '15

i need in a Trackingcode to catch the username and i try it as

<?php echo {$username}; ?> but it dosent work. 


A other Customer with a PHP Problem get this Solution:

<?php echo 'this text'; ?>    means to make {if ($label == "Messages") }TEST{/if}


Now, after reading this Post i belive i need a code like above , but i am not smart enough to found it.....

my PHP Code is: <?php echo {$username}; ?> 


Anybody has a idea what is the right code for me ?



Greetings


Dietmar

The Forum post is edited by Didi Webmaster Jun 8 '15