XsAFF
This plug lets affiliates signup to be displayed on your site.

Author: Xiode
Developed at: XiodeStudios.Com
Purpose: Seditio 110+ Plugin


Questions


Answers
[Back To Top]
1 : What is XsAFF?
Updated: Monday 29th of January 2007 03:14 PM Asked By: Xiode

This plug lets affiliates signup to be desplayed on your site. I wanted a way for others to be able to sign up on my site and place their own image on my site. A way to show support. So I created a way for the site's users to add links to the site. This plugin comes with many features.

Features:
- Image Upload
- Pagination (default & SEDPlus)
- Edit
- Full Administration
- Delete images when affiliate is deleted.
- Old image is deleted when a new one is uploaded.
- Extensive error checking
- You can turn the terms on & off.
- Create your terms with the easy use of the textboxer2
- Captcha image verification.
- Rotating banner for header.tpl
- Plus more.


[Back To Top]
2 : How do I install XsAFF?
Updated: Wednesday 09th of May 2007 08:16 PM Asked By: Xiode

Upload

FOLDERS
www/plugins/xsaff/ => plugins/xsaff/
www/plugins/xsaff/lang/ => plugins/xsaff/lang/
www/plugins/xsaff/affimg/ => plugins/xsaff/affimg/
www/plugins/xsaff/inc/ => plugins/xsaff/inc/
www/plugins/xsaff/inc/fonts => plugins/xsaff/inc/fonts


FILES
www/plugins/xsaff/xsaff.php => plugins/xsaff/xsaff.php
www/plugins/xsaff/xsaff.setup.php => plugins/xsaff/xsaff.setup.php
www/plugins/xsaff/xsaff.tpl => plugins/xsaff/xsaff.tpl
www/plugins/xsaff/xsaff.copy.php => plugins/xsaff/xsaff.copy.php
www/plugins/xsaff/xsaff.header.php => plugins/xsaff/xsaff.header.php
www/plugins/xsaff/xsaff.admin.php => plugins/xsaff/xsaff.admin.php
www/plugins/xsaff/lang/xsmm.en.lang.php => plugins/xsaff/lang/xsaff.en.lang.php
www/plugins/xsaff/inc/xsaff.funtions.php => plugins/xsaff/inc/xsaff.funtions.php
www/plugins/xsaff/inc/xsaff.tb.php => plugins/xsaff/inc/xsaff.tb.php
www/plugins/xsaff/inc/php-captcha.inc.php => plugins/xsaff/inc/php-captcha.inc.php
www/plugins/xsaff/inc/captcha.php => plugins/xsaff/inc/captcha.php
www/plugins/xsaff/inc/fonts/Dekadens.ttf => plugins/xsaff/inc/fonts/Dekadens.ttf
www/plugins/xsaff/inc/fonts/SwatchIt.ttf => plugins/xsaff/inc/fonts/SwatchIt.ttf
www/plugins/xsaff/inc/fonts/VeraMoBd.ttf => plugins/xsaff/inc/fonts/VeraMoBd.ttf



CHMOD
CHMOD the plugins/xsaff/affimg/ folder to 777

MYSQL
Open up your favorite mysql admin, and run this
SQL
CREATE TABLE `sed_xsaff_aff` (
`aff_id` mediumint(8) unsigned NOT NULL auto_increment,
`aff_name` varchar(255) NOT NULL default '',
`aff_uname` varchar(255) NOT NULL default '',
`aff_uid` int(11) NOT NULL default '0',
`aff_desc` text NOT NULL,
`aff_img` varchar(255) NOT NULL default '',
`aff_url` varchar(255) NOT NULL default '',
`aff_hits` mediumint(8) unsigned default '0',
`aff_broke` int(11) NOT NULL default '0',
`aff_active` int(11) NOT NULL default '0',
PRIMARY KEY (`aff_id`)
) ENGINE=MyISAM;

CREATE TABLE `sed_xsaff_terms` (
`terms_text` text NOT NULL
) TYPE=MyISAM;


INSTALL
Go into the administration panel, then tab Plugins, click XsAffiliates, and at bottom of the plugin properties, select Install all. Once you have finished installing it get to configuring it.

CORE HACKS
OPEN
www/datas/config.php

FIND
?>

BEFORE ADD
$db_xsaff_aff = 'sed_xsaff_aff';
$db_xsaff_terms = 'sed_xsaff_terms';


CORE CONFIGURATION
Navigate to http://www.yourdomain.com/admin.php?m=config&n=edit&o=plug&p=xsaff. Here you will see 3 choices.
- How many should be listed before pagination occurs? This is a drop down where you can select the amount of affiliates to show per page.
- Pagination method (sedplus only if installed) If you have sedplus installed you can use it's pagination.
- Make them agree to your terms? This is where you can turn this feature on/off. If you don't wantto use it then just switch it to off.

SKIN INTEGRATION
If you want to integrate the xsaff.tpl into your own skin. All you have to do is rename the file to xsaff.standalone.tpl and place it in your skin's folder.

SKIN MODIFICATION
If you want to display the random affiliate then all you have to do is add {XSAFF} to your header.tpl where ever you want it to be displayed. {XSAFF} only outputs a div with the image centered. You will have to build the box around it. If you want it to display on the index or such just modify the hook and tag accordingly.


Copyright
Copyright © 2006 XiodeStudios.Com. All Rights Reserved.


End-User License Agreement
Please check http://www.xiodestudios.com for the most up to date copy of these terms.

NOTICE TO USER: PLEASE READ THIS CONTRACT CAREFULLY. BY USING ALL OR ANY PORITION OF THE SOFTWARE YOU ACCEPT ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT.

(i) The XsAFF source code may be modified at the user's risk, but the software (altered or otherwise) may NOT be distributed to other entities without the explicit written permission of XiodeStudios.Com. In other words, XsAFF may be modified for your use only. Under no circumstances may any modified or unmodified part of XsAFF be distributed unless an explicit written permission is granted by XiodeStudios.Com.

(ii) All XiodeStudios.Com copyright notices can not be modified and must remain visible.

(iii) The Redistributable Code is the property of XiodeStudios.Com and is protected by copyright law and international treaty provisions. You are not authorized to reproduce and distribute the Redistributable Code. XiodeStudios.Com, reserves all rights not expressly granted.

THE REDISTRIBUTABLE CODE IS PROVIDED TO YOU "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. YOU ASSUME THE ENTIRE RISK AS TO THE ACCURACY AND THE USE OF THE REDISTRIBUTABLE CODE. XIODESTUDIOS.COM, SHALL NOT BE LIABLE FOR ANY DAMAGES WHATSOEVER ARISING OUT OF THE USE OF OR INABILITY TO USE THE REDISTRIBUTABLE CODE, EVEN IF XIODESTUDIOS.COM, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.