// ------------------------------------------------------------------------- // // E-Xoops: Content Management for the Masses // // < http://www.e-xoops.com > // // ------------------------------------------------------------------------- // // Original Author: Gert Schmidt and E-Xoops France // Author Website : http://www.backnang-online.info http://www.e-xoopsfr.com // Licence Type : GPL // ------------------------------------------------------------------------- // Credits: I took over more or less some code of the admin section of the great allopass-donation module designed by Philipe the webmaster of e-xoops France. ------------------------------------------------------ a l l o p a s s r e g i s t e r f o r e - x o o p s ------------------------------------------------------ Installation: Before you begin: It may be difficult to install for e-xoops beginners and takes time to set up properly. BACKUP your original /register.php and /include/registerform.php on your harddisk, don't leave these files on your server, rename it to something.old.php or something similar, otherwise these files will be overwritten !!! Install the module exactly, step by step in the following order 1.) Install this module like any other e-xoops module in the modules folder. In the allopass module folder CHMOD 777 the cache folder and 666 the config.php and disclaimer.php 2.) Give the permissions ONLY to the anonymous users group and Admin. NOT to Registered users and set Order to 0 (hide). 3.) Go to E_Xoops Admin Preferences, click on the Register module icon. The admin section of this module has a preferences section and disclaimer section. For preferences section if you have not yet a registered account with allopass.com, click on the allopass logo. This will lead you to the www.allopass.com website with my referral code. 4.) Register yourself and enter the necessary data. Add a document page set and enter following page URL's which have to declared in order to match the module's structure: DOCUMENT NAME: allopass.index (any name will do) THE PAGE WHICH CONTAINS THE ALLOPASS SCRIPT: http://www.yourSite.com/modules/register/code.php THE PAGE TO WHICH THE VISITOR WILL GO, ONCE HE GOT THE ALLOPASS CODE: http://www.yourSite.com/allopassregister.php THE PAGE WHICH WILL BE SHOWN IN CASE OF WRONG CODE ENTERED BY THE VISITOR: http://www.yourSite.com/modules/register/error.php Enter the required levels of calling fees Defaults values in allopass form : France 1,68 EUR/call - you earn 1,00 EUR/call Belgium 2,24 EUR/call - you earn 0,96 EUR/call Switzerland 2,50 CHF/call - you earn 0,84 EUR/call Germany 1,86 EUR/call - you earn 0,82 EUR/call United Kingdom 1,50 GBP/call - you earn 0,83 EUR/call Canada 3,00 CAD/call - you earn 0,66 EUR/call Holland 1,15 EUR/call - you earn 0,49 EUR/call Spain 1,09 EUR/call - you earn 0,38 EUR/call Austria 3,63 EUR/call - you earn 1,32 EUR/call Luxembourg 2,23 EUR/call - you earn 0,93 EUR/call Italy 1,57 EUR/call - you earn 0,62 EUR/call Hong-Kong 10,00 HKD/call - you earn 0,29 EUR/call News-Zelande 2,99 NZD/call - you earn 0,41 EUR/call For the other countries credit card 2.00 EUR/code - you earn 1.20 EUR/code We suggest you to start with these values. Any changes of the fees will change the allopass script in the /modules/register/index.php In this case you have to edit manually the allopass script. Find your site ID Number: Example SITE_ID=28228 Find your doc ID Number: Example DOC_ID=72725 Your own ID's can be found in the installation script shown on the allopass webpage. Write your registration disclaimer... 5.) Make sure the register.php supplied with THIS archive (NOT the one you have backed up) is located in the same folder as your mainfile.php (usually the root of your server) 6.) Edit if need it line 3 of this register.php according to your server path. 7.) Make sure the allopassregister.php supplied with this archive is located in the same folder as your mainfile.php (usually the root of your server) 8.) Edit if need it line 3 of this allopassregister.php according to your server path. 9.) According to your own preferences change the text in the language files so it reflects your own site policies and requirements. 10.) Personalize your comparison table according to your own website's features. ( /modules/register/index.php and the corresponding language defines in /modules/register/language/english...french) In file /modules/register/index.php for example before ligne 91 : echo " <tr>"; echo " <td>"._NEWMODULE."</td>"; echo " <td width='50' align='center'><img src='".XOOPS_URL."/modules/register/images/no.gif'></td>"; echo " <td width='50' align='center'><img src='".XOOPS_URL."/modules/register/images/yes.gif'></td>"; echo " </tr>"; Add in file /modules/register/language/yourlanguage/main.php define("_NEWMODULE","Description of your new website's features"); Take your time and pay special attention to step 6 and 8. **************************************************************************************************************************************************************************************************************** ------------------------------------------------------ a l l o p a s s r e g i s t e r f o r e - x o o p s ------------------------------------------------------ Installation: Avant de commencer : Cela peut être difficile pour des débutants e-xoops et prend un peu de temps pour l'installer correctement. SAUVEGARDER vos fichiers originaux /register.php et /include/registerform.php sur votre disque dur, ces fichiers seront remplacés !!! Installez le module exactement, point par point dans l'ordre suivant : 1.) Installez ce module comme un autre module. Mettre /modules/register/cache en CHMOD 777 en CHMOD 666 les fichiers config.php et disclaimer.php 2.) Donnez les permissions SEULEMENT pour le Groupe "anonymous users" et Admin. PAS pour le groupe "Registered users" et mettre l'Ordre à 0 (caché). 3.) Allez dans votre section Admin, cliquez sur l'icône Register. La section admin de ce module a une partie Configuration et Configuration Charte utilisateur. Pour la partie configuration, si vous n'avez pas de compte allopass.com, cliquez sur le logo allopass. C'est un lien vers allopass avec mon id de parrainage. 4.) Enregistrez-vous et saisir les renseignements demandés. Allez dans "Gestion de vos documents" Ajouter éventuellement votre site puis un document et saisir les informations suivantes pour le bon fonctionnement du module : Nom du document : Inscription allopass (peut importe, ce que vous voulez) URL de la page d'accès : http://www.yourSite.com/modules/register/code.php URL du document : http://www.yourSite.com/allopassregister.php URL d'erreur : http://www.yourSite.com/modules/register/error.php Entrez un code (uniquement des lettres) qui vous permettra de tester l'accès au document. Choisir les Tarifs d'appel Les valeurs par défaut utilisées par le module : France 1,68 EUR/appel - vous recevez 1,00 EUR/appel Belgique 2,24 EUR/appel - vous recevez 0,96 EUR/appel Suisse 2,50 CHF/appel - vous recevez 0,84 EUR/appel Allemagne 1,86 EUR/appel - vous recevez 0,82 EUR/appel Royaume Uni 1,50 GBP/appel - vous recevez 0,83 EUR/appel Canada 3,00 CAD/appel - vous recevez 0,66 EUR/appel Hollande 1,15 EUR/appel - vous recevez 0,49 EUR/appel Espagne 1,09 EUR/appel - vous recevez 0,38 EUR/appel Autriche 3,63 EUR/appel - vous recevez 1,32 EUR/appel Luxembourg 2,23 EUR/appel - vous recevez 0,93 EUR/appel Italie 1,57 EUR/appel - vous recevez 0,62 EUR/appel Hong-Kong 10,00 HKD/appel - vous recevez 0,29 EUR/appel Nouvelle-Zelande 2,99 NZD/appel - vous recevez 0,41 EUR/appel Carte bancaire 2.00 EUR/code - Vous recevez 1.20 EUR/code Nous vous suggérons pour commencer par ces valeurs. Si vous choisissez d'autre valeurs vous devez modifier manuellement le fichier /modules/register/code.php. Vos ID sont visibles dans la page "installer ce script pour ce document". Recherchez dans le script Allopass : Votre site ID : Exemple SITE_ID=20508 Votre doc ID : Exemple DOC_ID=77545 Saisir vos ID dans la partie Configuration Allopass de l'admin du module... Ecrivez votre Charte utilisateur dans l'admin du module... 5.) Soyez sûr que le fichier register.php soit celui de cette archive est dans le même répertoire que votre mainfile.php (normallement à la racine de votre site) 6.) Editez si besoin la ligne 3 du fichier register.php selon votre chemin de serveur. 7.) Soyez sûr que le fichier allopassregister.php est dans le même répertoire que votre mainfile.php (normallement à la racine de votre site) 8.) Editez si besoin la ligne 2 du fichier allopassregister.php selon votre chemin de serveur. 9.) Complètez selon vos propre changements le texte de langue et vos conditions d'utilisation de votre site (Configuration charte utilisateur dans l'admin). 10.) Personalisez la table avec les fonctions disponibles sur le votre site. ( /modules/register/index.php et les defines de langue dans /modules/register/language/english...french) Dans le fichier /modules/register/index.php par exemple avant la ligne 91 : echo " <tr>"; echo " <td>"._NEWMODULE."</td>"; echo " <td width='50' align='center'><img src='".XOOPS_URL."/modules/register/images/no.gif'></td>"; echo " <td width='50' align='center'><img src='".XOOPS_URL."/modules/register/images/yes.gif'></td>"; echo " </tr>"; Ajouter dans le fichier /modules/register/language/yourlanguage/main.php define("_NEWMODULE","Description de votre nouveau service"); Prenez votre temps et prêtez une attention particulière à l'étape 6 et 8.