$7 Secrets Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]

Author Topic: Here is another Free Script  (Read 835 times)

Blue Raven

  • Apprentice
  • **
  • Posts: 12
    • View Profile
Here is another Free Script
« on: October 03, 2009, 10:46:13 PM »

I was making a free wizard that would make a dynamic tweet this link for an affiliate tools page.

The wizard will also create a sample tools page but in the mean time I thought I would give anyone interested something to play with.

I will have a couple of buttons on the createed page and have been very lazy with this code. It is tested and works.

Save this code as affiliatetools.php and upload to your product folder to get an idea how it works.
Code: [Select]
<?php 
include("settings.php");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<script type="text/javascript">
var slink = "http://<?global $sys_domain; echo $sys_domain ?><?global $sys_script_folder; echo $sys_script_folder ?>";
function cemail(){
semail.document.open();
semail.document.write("Hello there \<br /\>\<br /\>"+slink+"?e="+document.frm.saff.value+"\<br /\>\<br /\> some more content.");
semail.document.close();
return;
}
</script>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>
      <?global $sys_item_name; echo $sys_item_name ?>  Affiliate Tools
    </title>
  </head>
  <body>
<center>
    <div style="padding: 5px;font-family: courier new,courier,monospace; font-size: 14pt; width: 700px; background-color: white; margin-left: auto; margin-right: auto; color: black; text-align: left;padding:20px; border: 1px solid #0000cc;">
    I have created some tools for you etc...<br /><br />
  <u>Step</u> <u>1</u> Enter Your Primary PayPal Address.<br />
<form name="frm" id="frm">
  <input type="text"size="30" maxlength="30" style="font-family: courier new,courier,monospace; font-size: 14pt;" name="saff" id="saff" onchange="javascript:cemail();" /><br /><br />
<center>Use the tools and receive $<?global $sys_item_cost; echo $sys_item_cost ?> for <?global $sys_item_percent; echo $sys_item_percent ?>% of your sales.<br />
<u>Step</u> <u>2</u> Click in this box to see sample Link.<br />
<iframe style="width:600px; height:400px;" name="semail" id="semail"></iframe></center>
</form>
</div>
</body>
</html>

You might be wondering how to convert your html to javascript for your tools. No Problems.

http://html2javascript.larrykeenan.com

Have a Great Day!
Larry Keenan
Logged
A 70 Year Old Cartoon I use as A Silly Squeez
http://larrykeenan.com/porky/
Pages: [1]