July 30, 2010, 10:19:46 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Alternative FF download location here !
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: FacileForms and Post Affiliate Pro integration  (Read 1541 times)
Elias
Newbie

Offline Offline

Posts: 6


« on: October 07, 2009, 11:37:58 am »

Hallo,

I would like to integrate script for Post Affiliate Pro to my form.

Script need to place after submiting:

<script id="pap_x2s6dfaa" src="http://www.mysite.com/scripts/salejs.php" type="text/javascript">
</script>
<script type="text/javascript">
var sale = PostAffTracker.createSale();
sale.setTotalCost('FF price');
sale.setOrderID('FF client_id');
sale.setProductID('Order from form');

PostAffTracker.register();
</script>


What I need, when someone fill and submit form > validate > use script with filled fields price, client_id > ff_submittedhome

Can someone help, it looks simple, but I cannīt get it working.
Logged
Elias
Newbie

Offline Offline

Posts: 6


« Reply #1 on: October 08, 2009, 09:19:35 am »

It looks little dead on FacileForms forum, can anybody help with this?
Logged
boldee
Administrator
Living Legend
*****
Offline Offline

Posts: 1352



« Reply #2 on: October 08, 2009, 07:42:37 pm »

Have you tried using the script in the "submitted script" part of your form? It may have to be adapted to suit your needs though.
Logged

Nick

Please read the forum rules first!
Please do not use PM for generic questions!
Please visit...
Protean MMO
Elias
Newbie

Offline Offline

Posts: 6


« Reply #3 on: November 05, 2009, 11:04:38 am »

Hi, so I try it but probably was not succesfull, can anybody help me with it?
Logged
boldee
Administrator
Living Legend
*****
Offline Offline

Posts: 1352



« Reply #4 on: November 05, 2009, 10:14:16 pm »

If you attach your form we could take a look.
Logged

Nick

Please read the forum rules first!
Please do not use PM for generic questions!
Please visit...
Protean MMO
Elias
Newbie

Offline Offline

Posts: 6


« Reply #5 on: November 09, 2009, 03:01:27 pm »

So, Iīm not sure what to do.


$this->execPieceByName('ff_SubmitLib');
$this->execPieceByName('ff_InitLib');

$postaffiliateprotrackpath ='http://www.mysite.com/scripts/salejs.php';
$price = ff_getSubmit('price');
$id = ff_getSubmit('id');
$subject = 'Online form';

if ($price) {

$this->

<script id="pap_x2s6dfaa" src="'.$postaffiliateprotrackpath.'" type="text/javascript"></script>'
                  . '<script type="text/javascript"><!--'
                  . "var sale = PostAffTracker.createSale();"
                  . "sale.setTotalCost("'.$price.'");"
                  . "sale.setOrderID("'.$id.'");"
                  . "sale.setProductID("'.$subject.'");"
                  . 'PostAffTracker.register();'
                  . '--></script>

);
}



Send me your paypal email, I will donate your work.
Logged
boldee
Administrator
Living Legend
*****
Offline Offline

Posts: 1352



« Reply #6 on: November 09, 2009, 07:03:19 pm »

Go to ff configuration and use the "Create package" option to create a package, it will make an xml file that you can then attach to your post.
Logged

Nick

Please read the forum rules first!
Please do not use PM for generic questions!
Please visit...
Protean MMO
Elias
Newbie

Offline Offline

Posts: 6


« Reply #7 on: February 24, 2010, 05:08:13 pm »

Hi,

  here is package, can you please take a look a tell me how to do this,

thank you very very much
« Last Edit: February 26, 2010, 11:18:40 am by Elias » Logged
Elias
Newbie

Offline Offline

Posts: 6


« Reply #8 on: February 24, 2010, 07:43:08 pm »

Hi,

   can be solution place 2nd page to form? Submit button on first page > go to 2nd page where will be script (donīt know how to place it :/ )

<script id="pap_x2s6dfaa" src="'.$postaffiliateprotrackpath.'" type="text/javascript"></script>'
                  . '<script type="text/javascript"><!--'
                  . "var sale = PostAffTracker.createSale();"
                  . "sale.setTotalCost("'.$price.'");"
                  . "sale.setOrderID("'.$id xx saved to databse with ID xx.'");"
                  . "sale.setProductID("'.$subject.'");"
                  . 'PostAffTracker.register();'
                  . '--></script>

Is it possible to do so? And how? Cheesy

___________________________________________

So I make header redirection to thank you page where I placed code, and now I dont know how to get values to:

                  . "sale.setTotalCost("'.$price.'");"
                  . "sale.setOrderID("'.$id xx saved to databse with ID xx.'");"

Script is placed via Jumi PHP code everywhere module, when form is submited so I can see in HTTP sniffer what is sending, but when I try it so it was empty without any values placed here...
___________________________________________

It would be nice to have it in submit pieces, end submit, I here have code:

$this->execPieceByName('ff_SubmitLib');
$this->execPieceByName('ff_InitLib');

$from = 'my@email.com';
$name = 'From WWW';

$message = 'Blah blah
';

$message .= 'blah

';

$subject = 'On-line form';

$email = ff_getSubmit('email');

if ($email) {

$this->sendMail(
$from, // senders email
$name, // senders name
$email, // recipient email
$subject, // subject line
$message // the message

);
}

header("Location:{mossite}/send");

--- Can I have here code ?



Thank you.
« Last Edit: February 25, 2010, 02:28:55 pm by Elias » Logged
qualityunit
Newbie

Offline Offline

Posts: 1


« Reply #9 on: March 04, 2010, 05:02:21 pm »

you can not call any code after using header() function in PHP, because it is redirected and does nothing. I am support agent from QulityUnit... you can contact us and we can help you with the integration directly.
check our main site to get the contact, I do not want to publish it here.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by SMF © 2001-2006 Lewis Media
| Terms of Use | Privacy | Sitemap |