####################################################  INFORMATIONS ####################################################
Nom / Name : BBCode Compteur de clic / BBCode Click counter
Version : 1.1.2-dev
Compatible :  phpBB 3.1.x
Author : Many people (see source links below)
Package author : Galixte (http://www.galixte.com)
Sujet officiel / Official topic : http://www.ezcom-fr.com/viewtopic.php?f=11&t=157

Liens des sources du code / Source code links :
http://forums.phpbb-fr.com/coding-webmastering-securite/sujet203965-15.html#p1594553 (compteur.php)
http://webmasterparadies.de/scripting/php/175-link-counter-mit-php-und-mysql.html (compteur.php)
http://www.phpjabbers.com/free-banner-and-link-click-counter-script/?tab=4 (stats.php)

######################################### JOURNAL DES CHANGEMENTS / CHANGELOG #####################################

Version 1.0.0-dev (2015.03.05) :
- Version initiale

Version 1.1.0-dev (2015.03.16) :
- Ragencement des diffrents lments (texte, bouton et nombre de clics)
- Cration d'un bouton pour le style prosilver
- Ajout d'un fichier PSD (projet Adobe Photoshop) pour modifier le texte du bouton
- Modifications de la mise en forme de l'affichage :
  - Suppression de la table d'affichage, du tableau
  - Cration d'un cadre aux bords arrondis englobant l'ensemble des lments (texte, bouton et nombre de clics)

Version 1.1.1-dev (2015.03.16) :
- Correction du bouton pour le style prosilver
- Correction du fichier PSD (projet Adobe Photoshop) pour modifier le texte du bouton

Version 1.1.2-dev (2015.04.22) :
- Traduction des instructions en anglais.

####################################################  INSTRUCTIONS ####################################################

>>> Placer les fichiers suivants  la racine de votre forum / Put the files in the next folder of your board :

/compteur.php
/stats.php
/download_button.png

##########################

>>> Excuter l'une des requtes SQL suivantes au choix / Execute the SQL query of your choice :

>>> >>> Pour MyISAM / For MyISAM :

CREATE TABLE IF NOT EXISTS `phpbb_compteur_de_clic` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `url` varchar(250) NOT NULL,
  `clic` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

>>> >>> Pour InnoDB / For InnoDB :

CREATE TABLE IF NOT EXISTS `phpbb_compteur_de_clic` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `url` varchar(250) NOT NULL,
  `clic` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

##########################

>>> Dans le PCA, se rendre dans : Messages >> BBCodes >> Ajouter un nouveau BBCode / In ACP, go into : Posting >> BBCodes >> Add a new BBCode.

##########################

>>> Dans le champ "Utilisation du BBCode", saisir / In the field "BBCode usage", enter :
[click={URL}]{INTTEXT}[/click]

##########################

>>> Dans le champ "Code HTML de remplacement", saisir / In the field "HTML replacement", enter :
<div style="background-color: #d0e4f6; -moz-border-radius: 10px; -webkit-border-radius: 10px; border: 0px solid #666; padding: 10px; width: 200px; text-align:center;">{INTTEXT}<br /><a href="/compteur.php?url={URL}" target="_blank"><img src="/download_button.png" alt="{INTTEXT}" title="{INTTEXT}"/></a><iframe style="width: 190px; height: 39px" src="/stats.php?url={URL}" allowfullscreen="allowfullscreen" frameborder="0"></iframe></div>

##########################

>>> Dans le champ "Ligne daide", saisir / In the field "Help line", enter :
[click=Adresse URL]Nom du fichier[/click]

##########################

>>> Cocher la case "Afficher sur la page de rdaction dun message" / Check the box "Display on posting page".

##########################

>>> Enfin, valider la page / Then, submit the page.

#################################################### FIN / EOM ####################################################