
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
NewsPost Affiliate Pro 4 is in development!New major version will be released in mid 2007. Check and suggest its features. 26 January 2007 New version 3.0.8 was released. Check the Changelog for list of changes or or Reasons for upgrade from version 2. KompatibilitaKompatibilný s takmer všetkými obchodnými účtami, platobnými bránami, nákupnými košmi a členskými systémami, zahŕňajúc:
Viac o kompatibilite...
Membership Software
Post Member Pro Only $149 one-time-fee. Professional Membership Software Zvoľte si násNáš softvér má najvyšší rating spomedzi komerčných programov na Hotscripts:
|
Home > Post Affiliate Pro > Resources > Displaying referring affiliate details
Displaying referring affiliate details on your page
This new feature allows you to display details of referring affiliate on your pages. This way you can have the page with label
This new feature is based on JavaScript, so it can be used also in non-PHP pages.
<script src="http://www.yoursite.com/affiliate/scripts/affdetails.php"></script>
Then on any place of the page where you want to display affiliate information you can call:
<script>showData('This site is sponsored by $Affiliate_name');</script>
And JavaScript will write the name of affiliate onto your page on that
place. If no affiliate referred the visitor, the function showData() returns false and does not display anything.
Example:
<HTML>
<HEAD>
<script src="http://www.yoursite.com/affiliate/scripts/affdetails.php"></script>
</HEAD>
<BODY>
<h1>Company page</h1>
<br>
<script>showData('Site sponsored by $Affiliate_name');</script>
<br>
Product description, etc.
</BODY>
</HTML>
The resulting page will contain text (example):Site sponsored by John Smith Where John Smith is name of referring affiliate.
Except $Affiliate_name you can use also constants:
Checking for referring affiliate is based on cookies, so if there exist affiliate cookie on your visitor computer, the script will read it and generate data for correct affiliate. You can force it to display data of another affiliate by passing parameter id to the first javascript code:
<script src="http://www.yoursite.com/affiliate/scripts/affdetails.php?id=AFFILIATEID&force=1"></script>
where:AFFILIATEID is ID of affiliate for whose you want to display data, for example '4h45jgj4'. force parameter can be 1 or 0. If 1, then 'id' parameter overrides what was saved in cookie. If 0, the 'id' parameter will be used only if cookie was not found.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
O nás | Privacy policy | Kontaktujte nás
Copyright Quality Unit, s.r.o., 2004-2005. All rights reserved. Worldwide (English) | Deutsch | Français | Italiano | Dutch | Português | Руccкий | Svenska | עברית | Česky | Magyar | Slovensky | Jananeses |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||