/*/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^/*/
/*/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^/*/
/*/ Viet Affiliates v1.0.291202					/*/
/*/ Copyright (C) 2002 Deathly Smile				/*/
/*/ If you have any comments about Viet Affiliates,		/*/
/*/		please send email to dsmile@softhome.net	/*/
/*/ If you use this scripts for any purposes,			/*/
/*/please keep the line "Powered by VietPHP" in your html.  	/*/
/*/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^/*/
/*/ For more free PHP scripts,					/*/
/*/                visit Viet Affiliates's Homepage at		/*/
/*/				http://www.vietphp.com		/*/
/*/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^/*/
/*/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^/*/
Viet Affiliates version 1.1.290802
Homepage: http://www.vietphp.com
Copyright (C) 2002 Deathly Smile <dsmile@softhome.net>

/*/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^/*/
/*/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^/*/

* Features of v1.1.291202
+ Let others affiliate with your site by using button vaults which are in .gif or .jpg format and have the size of 88x31.
+ Templates : by using .htm templates, you can make affiliates fit to your site's layout easily
without touching any sourcecodes.
+ Control Panel : easy to edit/delete affiliated sites' info.

* Changes:
+ Add new function named setpage() in _functions.php
+ You can set the limit of links to show on each page when view all aff.
+ You can choose to check image size or not.
+ The random links now show smoothly.

* Downloading:
+ For newest version of Viet Affiliates, keep in touch with Viet Affiliates's Homepage.

* Requirements:
+ PHP & MySQL

* How to install Viet Affiliates:
+ Unzip only the content of VAfiliates (sub dir and files) to the same dir with your php file (where the affiliate links will be).
+ Open _config_vaff.php and fill it with your database information.
(This file also includes admin infor. and some other settings)
+ CHMOD 777 for affiliates images dir.
+ Run install.php from your browser.
+ If install scripts doesn't create the DB (you see nothing changes), you can use /sql/vaffiliates.sql to create tables yourself
+ Once the installation's completed, follow next instructions.

* How to use Viet Affiliates:
These Steps will tell you how to use Viet Affiliates for your site.
Step 1. Open the PHP file that you intend to show affiliated sites on.
Step 2. Put the code below into the file, right after <? or keep it on the head of anyother code of Viet Affiliates in that file. (view demo.php source)
-----------------------------------------
require "vaffiliates.php";
-----------------------------------------
Step 3. In HTML code that you wanna show affiliated sites, put these HTML code between <HEAD></HEAD> tags of that HTML (view index.htm if you cannot get what I mean)
----------------------------------------------------------------------------------
<SCRIPT LANGUAGE="JavaScript">
function BeAff() {
props=window.open('vaffiliates.php?dowot=viewallaff', 'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=1, width=600, height=350, left = 100, top = 80');
}
</script>
----------------------------------------------------------------------------------
Step 4. Still in that file, find a location in HTML code, where you wanna show affiliated sites and put these code into it.
----------------------------------------------------------------------------------
<? echo $showlinks ?><br><a href="javascript:BeAff()" title="And be affiliated with $sitename">View all Affiliates</a>
----------------------------------------------------------------------------------
	Incase you use templates like me, just put these code below into your templates
----------------------------------------------------------------------------------
$showlinks<br><a href="javascript:BeAff()" title="And be affiliated with $sitename">View all Affiliates</a>
----------------------------------------------------------------------------------

You know what ? You've Done !!

* Important Notice:
+ Remember to delete install.php after installing successful.
+ Don't change any .PHP filenames if you don't know how to edit the sourcecode.
. vaffiliates.php is main file that used to process everything in the front-end.
. vaffiliates_cp.php is manage file that lets you access the control panel and edit/delete data.
+ Found a bug ? please let me know.

* F.A.Q
+ Can I share this scripts to someone else ?
- Yeah, you can do it, but please keep its license.
+ Can I write mods for this scripts ?
- Good idea, but please let me know.
+ Where can I found more information about Viet Affiliates ?
- Go to Viet Affiliates's homepage at http://www.vietphp.com or contact me via dsmile@softhome.net
+ What did you use to write this scripts ?
- EditPlus v2.11 ( you can download it at http://www.editplus.com/ )

Thank you for choosing Viet Affiliates !
Deathly Smile

/*/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^/*/
  More free PHP scripts can be found at http://www.vietphp.com
/*/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^/*/